Blender
V3.3
|
#include <Python.h>
#include "../generic/py_capi_rna.h"
#include "../generic/python_utildefines.h"
#include "DNA_space_types.h"
#include "RNA_access.h"
#include "RNA_enum_types.h"
#include "RNA_prototypes.h"
#include "BKE_screen.h"
#include "WM_api.h"
#include "ED_space_api.h"
#include "BPY_extern.h"
#include "bpy_capi_utils.h"
#include "bpy_rna.h"
#include "bpy_rna_callback.h"
Go to the source code of this file.
Functions | |
static void | cb_region_draw (const bContext *C, ARegion *UNUSED(region), void *customdata) |
static PyObject * | PyC_Tuple_CopySized (PyObject *src, int len_dst) |
static void | cb_wm_cursor_draw (bContext *C, int x, int y, void *customdata) |
static eSpace_Type | rna_Space_refine_reverse (StructRNA *srna) |
static void | cb_rna_capsule_destructor (PyObject *capsule) |
PyObject * | pyrna_callback_classmethod_add (PyObject *UNUSED(self), PyObject *args) |
PyObject * | pyrna_callback_classmethod_remove (PyObject *UNUSED(self), PyObject *args) |
Public API | |
static void | cb_customdata_free (void *customdata) |
void | BPY_callback_screen_free (struct ARegionType *art) |
void | BPY_callback_wm_free (struct wmWindowManager *wm) |
Variables | |
static const char * | rna_capsual_id = "RNA_HANDLE" |
static const char * | rna_capsual_id_invalid = "RNA_HANDLE_REMOVED" |
static const EnumPropertyItem | region_draw_mode_items [] |
This file currently exposes callbacks for interface regions but may be extended later.
Definition in file bpy_rna_callback.c.
void BPY_callback_screen_free | ( | struct ARegionType * | art | ) |
Definition at line 487 of file bpy_rna_callback.c.
References cb_customdata_free(), cb_region_draw(), and ED_region_draw_cb_remove_by_type().
Referenced by spacetype_free().
void BPY_callback_wm_free | ( | struct wmWindowManager * | wm | ) |
Definition at line 492 of file bpy_rna_callback.c.
References cb_customdata_free(), cb_wm_cursor_draw(), and WM_paint_cursor_remove_by_type().
Referenced by wm_close_and_free().
Definition at line 470 of file bpy_rna_callback.c.
Referenced by BPY_callback_screen_free(), and BPY_callback_wm_free().
Definition at line 45 of file bpy_rna_callback.c.
References bpy_context_clear(), bpy_context_set(), C, and result.
Referenced by BPY_callback_screen_free(), and pyrna_callback_classmethod_add().
|
static |
Definition at line 251 of file bpy_rna_callback.c.
Referenced by pyrna_callback_classmethod_add().
Definition at line 81 of file bpy_rna_callback.c.
References bpy_context_clear(), bpy_context_set(), C, PyC_Tuple_CopySized(), PyTuple_SET_ITEMS, result, x, and y.
Referenced by BPY_callback_wm_free(), and pyrna_callback_classmethod_add().
|
static |
Definition at line 68 of file bpy_rna_callback.c.
References BLI_assert, and src.
Referenced by cb_wm_cursor_draw().
PyObject* pyrna_callback_classmethod_add | ( | PyObject * | UNUSEDself, |
PyObject * | args | ||
) |
Definition at line 257 of file bpy_rna_callback.c.
References BKE_regiontype_from_id(), BKE_spacetype_from_id(), cb_region_draw(), cb_rna_capsule_destructor(), cb_wm_cursor_draw(), ED_region_draw_cb_activate(), NULL, params, pyrna_enum_value_parse_string(), pyrna_struct_as_srna(), region_draw_mode_items, ret, RGN_TYPE_ANY, rna_capsual_id, rna_enum_region_type_items, rna_enum_space_type_items, rna_Space_refine_reverse(), RNA_struct_identifier(), RNA_struct_is_a(), SPACE_EMPTY, SPACE_TYPE_ANY, usdtokens::st(), EnumPropertyItem::value, and WM_paint_cursor_activate().
PyObject* pyrna_callback_classmethod_remove | ( | PyObject * | UNUSEDself, |
PyObject * | args | ||
) |
Definition at line 366 of file bpy_rna_callback.c.
References BKE_regiontype_from_id(), BKE_spacetype_from_id(), ED_region_draw_cb_exit(), NULL, params, pyrna_enum_value_parse_string(), pyrna_struct_as_srna(), rna_capsual_id, rna_capsual_id_invalid, rna_enum_region_type_items, rna_Space_refine_reverse(), RNA_struct_identifier(), RNA_struct_is_a(), SPACE_EMPTY, usdtokens::st(), and WM_paint_cursor_end().
|
static |
Definition at line 198 of file bpy_rna_callback.c.
References SPACE_ACTION, SPACE_CLIP, SPACE_CONSOLE, SPACE_EMPTY, SPACE_FILE, SPACE_GRAPH, SPACE_IMAGE, SPACE_INFO, SPACE_NLA, SPACE_NODE, SPACE_OUTLINER, SPACE_PROPERTIES, SPACE_SEQ, SPACE_SPREADSHEET, SPACE_TEXT, SPACE_USERPREF, and SPACE_VIEW3D.
Referenced by pyrna_callback_classmethod_add(), and pyrna_callback_classmethod_remove().
|
static |
Definition at line 37 of file bpy_rna_callback.c.
Referenced by pyrna_callback_classmethod_add().
|
static |
Definition at line 34 of file bpy_rna_callback.c.
Referenced by pyrna_callback_classmethod_add(), and pyrna_callback_classmethod_remove().
|
static |
Definition at line 35 of file bpy_rna_callback.c.
Referenced by pyrna_callback_classmethod_remove().