Blender
V3.3
|
#include <Python.h>
#include "BLI_utildefines.h"
#include "WM_api.h"
#include "WM_types.h"
#include "RNA_access.h"
#include "RNA_define.h"
#include "RNA_enum_types.h"
#include "bpy_gizmo_wrap.h"
#include "bpy_intern_string.h"
#include "bpy_rna.h"
#include "../generic/py_capi_rna.h"
Go to the source code of this file.
Functions | |
Gizmo | |
static bool | bpy_gizmotype_target_property_def (wmGizmoType *gzt, PyObject *item) |
static void | gizmo_properties_init (wmGizmoType *gzt) |
void | BPY_RNA_gizmo_wrapper (wmGizmoType *gzt, void *userdata) |
Gizmo Group | |
static void | gizmogroup_properties_init (wmGizmoGroupType *gzgt) |
void | BPY_RNA_gizmogroup_wrapper (wmGizmoGroupType *gzgt, void *userdata) |
This file is so Python can define widget-group's that C can call into. The generic callback functions for Python widget-group are defines in 'rna_wm.c', some calling into functions here to do python specific functionality.
Definition in file bpy_gizmo_wrap.c.
|
static |
Definition at line 38 of file bpy_gizmo_wrap.c.
References id, NULL, params, PROP_FLOAT, pyrna_enum_value_parse_string(), rna_enum_property_type_items, RNA_MAX_ARRAY_LENGTH, EnumPropertyItem::value, and WM_gizmotype_target_property_def().
Referenced by gizmo_properties_init().
void BPY_RNA_gizmo_wrapper | ( | wmGizmoType * | gzt, |
void * | userdata | ||
) |
Definition at line 143 of file bpy_gizmo_wrap.c.
References gizmo_properties_init(), RNA_def_struct_translation_context(), RNA_struct_translation_context(), wmGizmoType::srna, and wmGizmoType::struct_size.
void BPY_RNA_gizmogroup_wrapper | ( | wmGizmoGroupType * | gzgt, |
void * | userdata | ||
) |
Definition at line 186 of file bpy_gizmo_wrap.c.
References gizmogroup_properties_init(), RNA_def_struct_translation_context(), wmGizmoGroupType::rna_ext, RNA_struct_translation_context(), ExtensionRNA::srna, and wmGizmoGroupType::srna.
|
static |
Definition at line 92 of file bpy_gizmo_wrap.c.
References bpy_gizmotype_target_property_def(), bpy_intern_str_bl_target_properties, ExtensionRNA::data, wmGizmoType::idname, BPy_EnumProperty_Parse::items, NULL, pyrna_deferred_register_class(), RNA_def_struct_identifier_no_struct_map(), wmGizmoType::rna_ext, RNA_struct_blender_type_set(), ExtensionRNA::srna, and wmGizmoType::srna.
Referenced by BPY_RNA_gizmo_wrapper().
|
static |
Definition at line 170 of file bpy_gizmo_wrap.c.
References ExtensionRNA::data, wmGizmoGroupType::idname, pyrna_deferred_register_class(), RNA_def_struct_identifier_no_struct_map(), wmGizmoGroupType::rna_ext, RNA_struct_blender_type_set(), ExtensionRNA::srna, and wmGizmoGroupType::srna.
Referenced by BPY_RNA_gizmogroup_wrapper().