18#include <descrobject.h>
35#include "RNA_prototypes.hh"
44 {
nullptr,
nullptr, 0,
nullptr},
45 {
nullptr,
nullptr, 0,
nullptr},
46 {
nullptr,
nullptr, 0,
nullptr},
47 {
nullptr,
nullptr, 0,
nullptr},
48 {
nullptr,
nullptr, 0,
nullptr},
49 {
nullptr,
nullptr, 0,
nullptr},
50 {
nullptr,
nullptr, 0,
nullptr},
60 {
nullptr,
nullptr, 0,
nullptr},
61 {
nullptr,
nullptr, 0,
nullptr},
62 {
nullptr,
nullptr, 0,
nullptr},
72 {
nullptr,
nullptr, 0,
nullptr},
73 {
nullptr,
nullptr, 0,
nullptr},
83 {
nullptr,
nullptr, 0,
nullptr},
84 {
nullptr,
nullptr, 0,
nullptr},
94 {
nullptr,
nullptr, 0,
nullptr},
95 {
nullptr,
nullptr, 0,
nullptr},
96 {
nullptr,
nullptr, 0,
nullptr},
106 {
nullptr,
nullptr, 0,
nullptr},
107 {
nullptr,
nullptr, 0,
nullptr},
108 {
nullptr,
nullptr, 0,
nullptr},
117 {
nullptr,
nullptr,
nullptr,
nullptr,
nullptr},
127 {
nullptr,
nullptr, 0,
nullptr},
128 {
nullptr,
nullptr, 0,
nullptr},
138 {
nullptr,
nullptr, 0,
nullptr},
139 {
nullptr,
nullptr, 0,
nullptr},
150 pyrna_draw_handler_add_doc,
151 ".. classmethod:: draw_handler_add(callback, args, region_type, draw_type)\n"
153 " Add a new draw handler to this space type.\n"
154 " It will be called every time the specified region in the space type will be drawn.\n"
155 " Note: All arguments are positional only for now.\n"
157 " :param callback:\n"
158 " A function that will be called when the region is drawn.\n"
159 " It gets the specified arguments as input, it's return value is ignored.\n"
160 " :type callback: Callable[..., Any]\n"
161 " :param args: Arguments that will be passed to the callback.\n"
162 " :type args: tuple[Any, ...]\n"
163 " :param region_type: The region type the callback draws in; usually ``WINDOW``. "
164 "(:class:`bpy.types.Region.type`)\n"
165 " :type region_type: str\n"
166 " :param draw_type: Usually ``POST_PIXEL`` for 2D drawing and ``POST_VIEW`` for 3D drawing. "
167 "In some cases ``PRE_VIEW`` can be used. ``BACKDROP`` can be used for backdrops in the node "
169 " :type draw_type: str\n"
170 " :return: Handler that can be removed later on.\n"
171 " :rtype: object\n");
174 pyrna_draw_handler_remove_doc,
175 ".. classmethod:: draw_handler_remove(handler, region_type)\n"
177 " Remove a draw handler that was added previously.\n"
179 " :param handler: The draw handler that should be removed.\n"
180 " :type handler: object\n"
181 " :param region_type: Region type the callback was added to.\n"
182 " :type region_type: str\n");
187 METH_VARARGS | METH_CLASS,
188 pyrna_draw_handler_add_doc},
189 {
"draw_handler_remove",
191 METH_VARARGS | METH_CLASS,
192 pyrna_draw_handler_remove_doc},
193 {
nullptr,
nullptr, 0,
nullptr},
219 "Unexpected number of methods")
#define ARRAY_SET_ITEMS(...)
PyGetSetDef BPY_rna_windowmanager_clipboard_getset_def
PyMethodDef BPY_rna_region_from_string_method_def
BLI_STATIC_ASSERT(ARRAY_SIZE(data_mode_strings)==CTX_MODE_NUM+1, "Must have a string for each context mode") const char *CTX_data_mode_string(const bContext *C)
PyMethodDef BPY_rna_window_screenshot_method_def
static PyMethodDef pyrna_operator_methods[]
PyMethodDef BPY_library_write_method_def
PyMethodDef BPY_rna_windowmanager_draw_cursor_remove_method_def
PyMethodDef BPY_rna_id_collection_orphans_purge_method_def
static PyMethodDef pyrna_windowmanager_methods[]
PyMethodDef BPY_rna_id_collection_batch_remove_method_def
PyDoc_STRVAR(bpy_bm_new_doc, ".. function:: new(*, use_operators=True)\n" "\n" " :param use_operators: Support calling operators in :mod:`bmesh.ops` (uses some " "extra memory per vert/edge/face).\n" " :type use_operators: bool\n" " :return: Return a new, empty BMesh.\n" " :rtype: :class:`bmesh.types.BMesh`\n")
PyMethodDef BPY_rna_operator_poll_message_set_method_def
static PyMethodDef pyrna_uilayout_methods[]
static PyMethodDef pyrna_space_methods[]
PyMethodDef BPY_rna_data_context_method_def
PyMethodDef BPY_rna_windowmanager_draw_cursor_add_method_def
static PyGetSetDef pyrna_windowmanager_getset[]
PyObject * pyrna_callback_classmethod_add(PyObject *, PyObject *args)
void pyrna_struct_type_extend_capi(StructRNA *srna, PyMethodDef *method, PyGetSetDef *getset)
static PyMethodDef pyrna_context_methods[]
static PyMethodDef pyrna_blenddatalibraries_methods[]
constexpr size_t ARRAY_SIZE(const T(&arg)[N]) noexcept
PyMethodDef BPY_rna_uilayout_introspect_method_def
PyMethodDef BPY_rna_id_collection_user_map_method_def
static PyMethodDef pyrna_blenddata_methods[]
PyObject * pyrna_callback_classmethod_remove(PyObject *, PyObject *args)
static PyMethodDef pyrna_window_methods[]
PyMethodDef BPY_rna_id_collection_file_path_map_method_def
PyMethodDef BPY_rna_context_temp_override_method_def
void bpy_rna_context_types_init(PyObject *bpy_types)
PyMethodDef BPY_rna_region_as_string_method_def
PyMethodDef BPY_library_load_method_def
void BPY_rna_types_extend_capi(PyObject *bpy_types)
PyMethodDef BPY_rna_id_collection_file_path_foreach_method_def
static PyMethodDef pyrna_text_methods[]