Blender V2.61 - r43446
|
#include <Python.h>
#include "bpy_operator_wrap.h"
#include "WM_api.h"
#include "WM_types.h"
#include "BLI_utildefines.h"
#include "RNA_access.h"
#include "RNA_define.h"
#include "bpy_rna.h"
Go to the source code of this file.
Functions | |
static void | operator_properties_init (wmOperatorType *ot) |
void | operator_wrapper (wmOperatorType *ot, void *userdata) |
void | macro_wrapper (wmOperatorType *ot, void *userdata) |
PyObject * | PYOP_wrap_macro_define (PyObject *UNUSED(self), PyObject *args) |
This file is so python can 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 macro_wrapper | ( | wmOperatorType * | ot, |
void * | userdata | ||
) |
Definition at line 84 of file bpy_operator_wrap.c.
References data, wmOperatorType::description, wmOperatorType::ext, wmOperatorType::flag, wmOperatorType::idname, wmOperatorType::name, operator_properties_init(), wmOperatorType::pyop_poll, and wmOperatorType::ui.
static void operator_properties_init | ( | wmOperatorType * | ot | ) | [static] |
Definition at line 46 of file bpy_operator_wrap.c.
References ExtensionRNA::data, wmOperatorType::ext, wmOperatorType::idname, pyrna_deferred_register_class(), RNA_def_struct_identifier(), RNA_struct_blender_type_set(), ExtensionRNA::srna, and wmOperatorType::srna.
Referenced by macro_wrapper(), and operator_wrapper().
void operator_wrapper | ( | wmOperatorType * | ot, |
void * | userdata | ||
) |
Definition at line 62 of file bpy_operator_wrap.c.
References NULL, operator_properties_init(), wmOperatorType::prop, RNA_pointer_create(), RNA_struct_find_property(), and wmOperatorType::srna.
PyObject* PYOP_wrap_macro_define | ( | PyObject * | UNUSEDself, |
PyObject * | args | ||
) |
Definition at line 100 of file bpy_operator_wrap.c.
References NULL, pyrna_struct_CreatePyObject(), RNA_OperatorMacro, RNA_pointer_create(), RNA_struct_identifier(), srna_from_self(), TRUE, WM_operatortype_find(), and WM_operatortype_macro_define().