|
Blender
V3.3
|
#include "BLI_utildefines.h"#include <Python.h>#include "BKE_callbacks.h"#include "RNA_access.h"#include "RNA_types.h"#include "bpy_app_handlers.h"#include "bpy_rna.h"#include "../generic/python_utildefines.h"#include "BPY_extern.h"Go to the source code of this file.
Macros | |
| #define | APP_CB_OTHER_FIELDS 1 |
| #define | PERMINENT_CB_ID "_bpy_persistent" |
Functions | |
| void | bpy_app_generic_callback (struct Main *main, struct PointerRNA **pointers, const int pointers_num, void *arg) |
| static PyObject * | bpy_app_handlers_persistent_new (PyTypeObject *UNUSED(type), PyObject *args, PyObject *UNUSED(kwds)) |
| static PyObject * | make_app_cb_info (void) |
| PyObject * | BPY_app_handlers_struct (void) |
| void | BPY_app_handlers_reset (const bool do_all) |
| static PyObject * | choose_arguments (PyObject *func, PyObject *args_all, PyObject *args_single) |
| void | bpy_app_generic_callback (struct Main *UNUSED(main), struct PointerRNA **pointers, const int pointers_num, void *arg) |
Variables | |
| static PyTypeObject | BlenderAppCbType |
| static PyStructSequence_Field | app_cb_info_fields [] |
| static PyStructSequence_Desc | app_cb_info_desc |
| static PyTypeObject | BPyPersistent_Type |
| static PyObject * | py_cb_array [BKE_CB_EVT_TOT] = {NULL} |
This file defines a 'PyStructSequence' accessed via 'bpy.app.handlers', which exposes various lists that the script author can add callback functions into (called via blenders generic BLI_cb api)
Definition in file bpy_app_handlers.c.
| #define APP_CB_OTHER_FIELDS 1 |
| #define PERMINENT_CB_ID "_bpy_persistent" |
Definition at line 99 of file bpy_app_handlers.c.
| void bpy_app_generic_callback | ( | struct Main * | main, |
| struct PointerRNA ** | pointers, | ||
| const int | pointers_num, | ||
| void * | arg | ||
| ) |
Referenced by BPY_app_handlers_struct().
| void bpy_app_generic_callback | ( | struct Main * | UNUSEDmain, |
| struct PointerRNA ** | pointers, | ||
| const int | pointers_num, | ||
| void * | arg | ||
| ) |
Definition at line 317 of file bpy_app_handlers.c.
References choose_arguments(), NULL, POINTER_AS_INT, pos, py_cb_array, pyrna_struct_CreatePyObject(), and ret.
|
static |
Definition at line 101 of file bpy_app_handlers.c.
References NULL, and PERMINENT_CB_ID.
Definition at line 253 of file bpy_app_handlers.c.
References BKE_CB_EVT_TOT, NULL, PERMINENT_CB_ID, pos, and py_cb_array.
Referenced by BPY_python_reset().
| PyObject* BPY_app_handlers_struct | ( | void | ) |
Definition at line 213 of file bpy_app_handlers.c.
References bCallbackFuncStore::alloc, app_cb_info_desc, bCallbackFuncStore::arg, BKE_callback_add(), BKE_CB_EVT_TOT, BlenderAppCbType, BLI_assert_msg, bpy_app_generic_callback(), BPyPersistent_Type, bCallbackFuncStore::func, make_app_cb_info(), NULL, POINTER_FROM_INT, pos, and ret.
Referenced by make_app_info().
|
static |
Definition at line 304 of file bpy_app_handlers.c.
Referenced by bpy_app_generic_callback().
|
static |
Definition at line 187 of file bpy_app_handlers.c.
References app_cb_info_fields, APP_CB_OTHER_FIELDS, BKE_CB_EVT_TOT, BlenderAppCbType, BPyPersistent_Type, NULL, pos, and py_cb_array.
Referenced by BPY_app_handlers_struct().
|
static |
Definition at line 84 of file bpy_app_handlers.c.
Referenced by BPY_app_handlers_struct().
|
static |
See BKE_callbacks.h eCbEvent declaration for the policy on naming.
Definition at line 35 of file bpy_app_handlers.c.
Referenced by make_app_cb_info().
|
static |
Definition at line 30 of file bpy_app_handlers.c.
Referenced by BPY_app_handlers_struct(), and make_app_cb_info().
|
static |
Definition at line 136 of file bpy_app_handlers.c.
Referenced by BPY_app_handlers_struct(), and make_app_cb_info().
|
static |
Definition at line 185 of file bpy_app_handlers.c.
Referenced by bpy_app_generic_callback(), BPY_app_handlers_reset(), and make_app_cb_info().