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_prototypes.h"
#include "bpy_intern_string.h"
#include "bpy_operator_wrap.h"
#include "bpy_rna.h"
Go to the source code of this file.
Functions | |
static void | operator_properties_init (wmOperatorType *ot) |
void | BPY_RNA_operator_wrapper (wmOperatorType *ot, void *userdata) |
void | BPY_RNA_operator_macro_wrapper (wmOperatorType *ot, void *userdata) |
PyObject * | PYOP_wrap_macro_define (PyObject *UNUSED(self), PyObject *args) |
This file exposes functionality for defining to define operators that C can call into. The generic callback functions for python operators are defines in 'rna_wm.c', some calling into functions here to do python specific functionality.
Definition in file bpy_operator_wrap.c.
void BPY_RNA_operator_macro_wrapper | ( | struct wmOperatorType * | ot, |
void * | userdata | ||
) |
Generic function used by all Python defined macro-operators it's passed as an argument to WM_operatortype_append_ptr in for operator registration.
Definition at line 121 of file bpy_operator_wrap.c.
References data, wmOperatorType::description, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, operator_properties_init(), ot, wmOperatorType::pyop_poll, RNA_def_struct_translation_context(), wmOperatorType::rna_ext, RNA_struct_translation_context(), ExtensionRNA::srna, wmOperatorType::srna, and wmOperatorType::ui.
void BPY_RNA_operator_wrapper | ( | struct wmOperatorType * | ot, |
void * | userdata | ||
) |
Generic function used by all Python defined operators it's passed as an argument to WM_operatortype_append_ptr in for operator registration.
Definition at line 105 of file bpy_operator_wrap.c.
References operator_properties_init(), ot, RNA_def_struct_translation_context(), wmOperatorType::rna_ext, RNA_struct_translation_context(), ExtensionRNA::srna, and wmOperatorType::srna.
|
static |
Definition at line 27 of file bpy_operator_wrap.c.
References bpy_intern_str_bl_property, ExtensionRNA::data, wmOperatorType::idname, NULL, ot, wmOperatorType::prop, ptr, pyrna_deferred_register_class(), RNA_def_struct_identifier_no_struct_map(), wmOperatorType::rna_ext, RNA_pointer_create(), RNA_struct_blender_type_set(), RNA_struct_find_property(), ExtensionRNA::srna, and wmOperatorType::srna.
Referenced by BPY_RNA_operator_macro_wrapper(), and BPY_RNA_operator_wrapper().
PyObject* PYOP_wrap_macro_define | ( | PyObject * | UNUSEDself, |
PyObject * | args | ||
) |
Definition at line 142 of file bpy_operator_wrap.c.
References NULL, ot, pyrna_struct_as_srna(), pyrna_struct_CreatePyObject(), RNA_pointer_create(), RNA_struct_identifier(), WM_operatortype_find(), and WM_operatortype_macro_define().