30 #include <descrobject.h>
44 #include "../generic/py_capi_utils.h"
111 PyObject *value_coerce =
NULL;
117 Py_XDECREF(value_coerce);
130 METH_VARARGS | METH_CLASS,
132 {
"draw_cursor_remove",
134 METH_VARARGS | METH_CLASS,
155 pyrna_draw_handler_add_doc,
156 ".. method:: draw_handler_add(callback, args, region_type, draw_type)\n"
158 " Add a new draw handler to this space type.\n"
159 " It will be called every time the specified region in the space type will be drawn.\n"
160 " Note: All arguments are positional only for now.\n"
162 " :param callback:\n"
163 " A function that will be called when the region is drawn.\n"
164 " It gets the specified arguments as input.\n"
165 " :type callback: function\n"
166 " :param args: Arguments that will be passed to the callback.\n"
167 " :type args: tuple\n"
168 " :param region_type: The region type the callback draws in; usually ``WINDOW``. "
169 "(:class:`bpy.types.Region.type`)\n"
170 " :type region_type: str\n"
171 " :param draw_type: Usually ``POST_PIXEL`` for 2D drawing and ``POST_VIEW`` for 3D drawing. "
172 "In some cases ``PRE_VIEW`` can be used. ``BACKDROP`` can be used for backdrops in the node "
174 " :type draw_type: str\n"
175 " :return: Handler that can be removed later on.\n"
179 ".. method:: draw_handler_remove(handler, region_type)\n"
181 " Remove a draw handler that was added previously.\n"
183 " :param handler: The draw handler that should be removed.\n"
184 " :type handler: object\n"
185 " :param region_type: Region type the callback was added to.\n"
186 " :type region_type: str\n");
191 METH_VARARGS | METH_CLASS,
192 pyrna_draw_handler_add_doc},
193 {
"draw_handler_remove",
195 METH_VARARGS | METH_CLASS,
196 pyrna_draw_handler_remove_doc},
#define ARRAY_SET_ITEMS(...)
Read Guarded memory(de)allocation.
StructRNA RNA_BlendDataLibraries
StructRNA RNA_WindowManager
PyMethodDef BPY_library_load_method_def
PyMethodDef BPY_library_write_method_def
void pyrna_struct_type_extend_capi(struct StructRNA *srna, struct PyMethodDef *method, struct PyGetSetDef *getset)
PyObject * pyrna_callback_classmethod_remove(PyObject *UNUSED(self), PyObject *args)
PyObject * pyrna_callback_classmethod_add(PyObject *UNUSED(self), PyObject *args)
PyMethodDef BPY_rna_data_context_method_def
PyMethodDef BPY_rna_id_collection_batch_remove_method_def
PyMethodDef BPY_rna_id_collection_orphans_purge_method_def
PyMethodDef BPY_rna_id_collection_user_map_method_def
static int pyrna_WindowManager_clipboard_set(PyObject *UNUSED(self), PyObject *value, void *UNUSED(flag))
static PyObject * pyrna_WindowManager_clipboard_get(PyObject *UNUSED(self), void *UNUSED(flag))
static struct PyMethodDef pyrna_uilayout_methods[]
static struct PyMethodDef pyrna_blenddatalibraries_methods[]
static struct PyGetSetDef pyrna_windowmanager_getset[]
void BPY_rna_types_extend_capi(void)
static struct PyMethodDef pyrna_space_methods[]
PyDoc_STRVAR(pyrna_draw_handler_add_doc, ".. method:: draw_handler_add(callback, args, region_type, draw_type)\n" "\n" " Add a new draw handler to this space type.\n" " It will be called every time the specified region in the space type will be drawn.\n" " Note: All arguments are positional only for now.\n" "\n" " :param callback:\n" " A function that will be called when the region is drawn.\n" " It gets the specified arguments as input.\n" " :type callback: function\n" " :param args: Arguments that will be passed to the callback.\n" " :type args: tuple\n" " :param region_type: The region type the callback draws in; usually ``WINDOW``. " "(:class:`bpy.types.Region.type`)\n" " :type region_type: str\n" " :param draw_type: Usually ``POST_PIXEL`` for 2D drawing and ``POST_VIEW`` for 3D drawing. " "In some cases ``PRE_VIEW`` can be used. ``BACKDROP`` can be used for backdrops in the node " "editor.\n" " :type draw_type: str\n" " :return: Handler that can be removed later on.\n" " :rtype: object")
static struct PyMethodDef pyrna_blenddata_methods[]
static struct PyMethodDef pyrna_windowmanager_methods[]
PyMethodDef BPY_rna_uilayout_introspect_method_def
void(* MEM_freeN)(void *vmemh)
const char * PyC_UnicodeAsByte(PyObject *py_str, PyObject **coerce)
PyObject * PyC_UnicodeFromByteAndSize(const char *str, Py_ssize_t size)
void WM_clipboard_text_set(const char *buf, bool selection)
char * WM_clipboard_text_get(bool selection, int *r_len)