Blender V5.0
bpy_operator_wrap.hh File Reference
#include <Python.h>

Go to the source code of this file.

Functions

PyObject * PYOP_wrap_macro_define (PyObject *self, PyObject *args)
void BPY_RNA_operator_wrapper (wmOperatorType *ot, void *userdata)
void BPY_RNA_operator_macro_wrapper (wmOperatorType *ot, void *userdata)

Function Documentation

◆ BPY_RNA_operator_macro_wrapper()

void BPY_RNA_operator_macro_wrapper ( 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 99 of file bpy_operator_wrap.cc.

References data, operator_properties_init(), ot, RNA_def_struct_translation_context(), and RNA_struct_translation_context().

◆ BPY_RNA_operator_wrapper()

void BPY_RNA_operator_wrapper ( 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 83 of file bpy_operator_wrap.cc.

References operator_properties_init(), ot, RNA_def_struct_translation_context(), and RNA_struct_translation_context().

◆ PYOP_wrap_macro_define()

PyObject * PYOP_wrap_macro_define ( PyObject * self,
PyObject * args )
nodiscard

These are used for operator methods, used by bpy_operator.cc.

Accessed via sub-classes of bpy.types.Macro using the define method.

Definition at line 120 of file bpy_operator_wrap.cc.

References OP_MAX_TYPENAME, ot, pyrna_struct_as_srna(), pyrna_struct_CreatePyObject(), RNA_pointer_create_discrete(), RNA_struct_identifier(), WM_operator_bl_idname(), WM_operator_bl_idname_is_valid(), WM_operatortype_find(), and WM_operatortype_macro_define().