Blender V2.61 - r43446
|
#include <Python.h>
#include "RNA_types.h"
#include "BPY_extern.h"
#include "bpy_operator.h"
#include "bpy_operator_wrap.h"
#include "bpy_rna.h"
#include "bpy_util.h"
#include "../generic/bpy_internal_import.h"
#include "BLI_utildefines.h"
#include "BLI_string.h"
#include "RNA_access.h"
#include "RNA_enum_types.h"
#include "WM_api.h"
#include "WM_types.h"
#include "MEM_guardedalloc.h"
#include "BLI_ghash.h"
#include "BKE_report.h"
#include "BKE_context.h"
Go to the source code of this file.
Defines | |
#define | BPY_RELEASE_GIL |
Functions | |
static PyObject * | pyop_poll (PyObject *UNUSED(self), PyObject *args) |
static PyObject * | pyop_call (PyObject *UNUSED(self), PyObject *args) |
static PyObject * | pyop_as_string (PyObject *UNUSED(self), PyObject *args) |
static PyObject * | pyop_dir (PyObject *UNUSED(self)) |
static PyObject * | pyop_getrna (PyObject *UNUSED(self), PyObject *value) |
static PyObject * | pyop_getinstance (PyObject *UNUSED(self), PyObject *value) |
PyObject * | BPY_operator_module (void) |
Variables | |
static struct PyMethodDef | bpy_ops_methods [] |
static struct PyModuleDef | bpy_ops_module |
This file defines '_bpy.ops', an internal python module which gives python the ability to inspect and call both C and Python defined operators.
Definition in file bpy_operator.c.
#define BPY_RELEASE_GIL |
Definition at line 62 of file bpy_operator.c.
PyObject* BPY_operator_module | ( | void | ) |
Definition at line 471 of file bpy_operator.c.
Referenced by BPy_init_modules().
static PyObject* pyop_as_string | ( | PyObject * | UNUSEDself, |
PyObject * | args | ||
) | [static] |
Definition at line 305 of file bpy_operator.c.
References BPy_GetContext(), C, MEM_freeN(), NULL, pyrna_pydict_to_props(), RNA_pointer_create(), wmOperatorType::srna, TRUE, WM_operator_properties_free(), WM_operator_pystring(), and WM_operatortype_find().
static PyObject* pyop_call | ( | PyObject * | UNUSEDself, |
PyObject * | args | ||
) | [static] |
Definition at line 135 of file bpy_operator.c.
References BKE_reports_clear(), BKE_reports_init(), BKE_reports_string(), BPy_enum_as_string(), BPy_GetContext(), bpy_import_main_set(), BPY_modules_update(), BPy_reports_to_error(), C, CTX_data_main(), CTX_py_dict_get(), CTX_py_dict_set(), CTX_wm_operator_poll_msg_get(), CTX_wm_operator_poll_msg_set(), FALSE, ListBase::first, ReportList::flag, ReportList::list, MEM_freeN(), MEM_mallocN(), NULL, OPERATOR_CANCELLED, operator_context_items, operator_return_items, pyrna_enum_bitfield_to_py(), pyrna_pydict_to_props(), pyrna_write_check(), RNA_enum_value_from_id(), RPT_FREE, RPT_OP_HOLD, RPT_STORE, TRUE, WM_OP_EXEC_DEFAULT, WM_operator_name_call(), WM_operator_poll_context(), WM_operator_properties_create_ptr(), WM_operator_properties_free(), WM_operator_properties_sanitize(), and WM_operatortype_find().
static PyObject* pyop_dir | ( | PyObject * | UNUSEDself | ) | [static] |
Definition at line 364 of file bpy_operator.c.
References BLI_ghashIterator_free(), BLI_ghashIterator_getValue(), BLI_ghashIterator_isDone(), BLI_ghashIterator_step(), wmOperatorType::idname, and WM_operatortype_iter().
static PyObject* pyop_getinstance | ( | PyObject * | UNUSEDself, |
PyObject * | value | ||
) | [static] |
Definition at line 413 of file bpy_operator.c.
References BLI_strncpy(), wmOperator::idname, MEM_callocN(), NULL, BPy_StructRNA::ptr, wmOperator::ptr, pyrna_struct_CreatePyObject(), RNA_Operator, RNA_pointer_create(), TRUE, wmOperator::type, and WM_operatortype_find().
static PyObject* pyop_getrna | ( | PyObject * | UNUSEDself, |
PyObject * | value | ||
) | [static] |
Definition at line 381 of file bpy_operator.c.
References NULL, pyrna_struct_CreatePyObject(), TRUE, WM_operator_properties_create_ptr(), WM_operator_properties_sanitize(), and WM_operatortype_find().
static PyObject* pyop_poll | ( | PyObject * | UNUSEDself, |
PyObject * | args | ||
) | [static] |
Definition at line 65 of file bpy_operator.c.
References BPy_enum_as_string(), BPy_GetContext(), C, CTX_py_dict_get(), CTX_py_dict_set(), MEM_freeN(), NULL, operator_context_items, RNA_enum_value_from_id(), TRUE, WM_OP_EXEC_DEFAULT, WM_operator_poll_context(), and WM_operatortype_find().
struct PyMethodDef bpy_ops_methods[] [static] |
{ {"poll", (PyCFunction) pyop_poll, METH_VARARGS, NULL}, {"call", (PyCFunction) pyop_call, METH_VARARGS, NULL}, {"as_string", (PyCFunction) pyop_as_string, METH_VARARGS, NULL}, {"dir", (PyCFunction) pyop_dir, METH_NOARGS, NULL}, {"get_rna", (PyCFunction) pyop_getrna, METH_O, NULL}, {"get_instance", (PyCFunction) pyop_getinstance, METH_O, NULL}, {"macro_define", (PyCFunction) PYOP_wrap_macro_define, METH_VARARGS, NULL}, {NULL, NULL, 0, NULL} }
Definition at line 451 of file bpy_operator.c.
struct PyModuleDef bpy_ops_module [static] |
{ PyModuleDef_HEAD_INIT, "_bpy.ops", NULL, -1, bpy_ops_methods, NULL, NULL, NULL, NULL }
Definition at line 462 of file bpy_operator.c.