18#include <descrobject.h>
38#include "RNA_prototypes.hh"
49 {
nullptr,
nullptr, 0,
nullptr},
50 {
nullptr,
nullptr, 0,
nullptr},
51 {
nullptr,
nullptr, 0,
nullptr},
52 {
nullptr,
nullptr, 0,
nullptr},
53 {
nullptr,
nullptr, 0,
nullptr},
63 {
nullptr,
nullptr, 0,
nullptr},
64 {
nullptr,
nullptr, 0,
nullptr},
65 {
nullptr,
nullptr, 0,
nullptr},
75 {
nullptr,
nullptr, 0,
nullptr},
76 {
nullptr,
nullptr, 0,
nullptr},
86 {
nullptr,
nullptr, 0,
nullptr},
87 {
nullptr,
nullptr, 0,
nullptr},
97 {
nullptr,
nullptr, 0,
nullptr},
98 {
nullptr,
nullptr, 0,
nullptr},
99 {
nullptr,
nullptr, 0,
nullptr},
113 pyrna_WindowManager_clipboard_doc,
114 "Clipboard text storage.\n"
123 if (text !=
nullptr) {
131 PyObject *value_coerce =
nullptr;
133 if (text ==
nullptr) {
137 Py_XDECREF(value_coerce);
149 pyrna_draw_cursor_add_doc,
150 ".. classmethod:: draw_cursor_add(callback, args, space_type, region_type)\n"
152 " Add a new draw cursor handler to this space type.\n"
153 " It will be called every time the cursor for the specified region in the space "
154 "type will be drawn.\n"
155 " Note: All arguments are positional only for now.\n"
158 " A function that will be called when the cursor is drawn.\n"
159 " It gets the specified arguments as input with the mouse position (tuple) as last "
161 " :type callback: Callable[[Any, ..., tuple[int, int]], Any]\n"
162 " :arg args: Arguments that will be passed to the callback.\n"
163 " :type args: tuple[Any, ...]\n"
164 " :arg space_type: The space type the callback draws in; for example ``VIEW_3D``. "
165 "(:class:`bpy.types.Space.type`)\n"
166 " :type space_type: str\n"
167 " :arg region_type: The region type the callback draws in; usually ``WINDOW``. "
168 "(:class:`bpy.types.Region.type`)\n"
169 " :type region_type: str\n"
170 " :return: Handler that can be removed later on.\n"
171 " :rtype: object\n");
175 pyrna_draw_cursor_remove_doc,
176 ".. classmethod:: draw_cursor_remove(handler)\n"
178 " Remove a draw cursor handler that was added previously.\n"
180 " :arg handler: The draw cursor handler that should be removed.\n"
181 " :type handler: object\n");
186 METH_VARARGS | METH_CLASS,
187 pyrna_draw_cursor_add_doc},
188 {
"draw_cursor_remove",
190 METH_VARARGS | METH_CLASS,
191 pyrna_draw_cursor_remove_doc},
192 {
nullptr,
nullptr, 0,
nullptr},
199 pyrna_WindowManager_clipboard_doc,
201 {
nullptr,
nullptr,
nullptr,
nullptr,
nullptr}
211 {
nullptr,
nullptr, 0,
nullptr},
212 {
nullptr,
nullptr, 0,
nullptr},
223 pyrna_draw_handler_add_doc,
224 ".. classmethod:: draw_handler_add(callback, args, region_type, draw_type)\n"
226 " Add a new draw handler to this space type.\n"
227 " It will be called every time the specified region in the space type will be drawn.\n"
228 " Note: All arguments are positional only for now.\n"
231 " A function that will be called when the region is drawn.\n"
232 " It gets the specified arguments as input, it's return value is ignored.\n"
233 " :type callback: Callable[[Any, ...], Any]\n"
234 " :arg args: Arguments that will be passed to the callback.\n"
235 " :type args: tuple[Any, ...]\n"
236 " :arg region_type: The region type the callback draws in; usually ``WINDOW``. "
237 "(:class:`bpy.types.Region.type`)\n"
238 " :type region_type: str\n"
239 " :arg draw_type: Usually ``POST_PIXEL`` for 2D drawing and ``POST_VIEW`` for 3D drawing. "
240 "In some cases ``PRE_VIEW`` can be used. ``BACKDROP`` can be used for backdrops in the node "
242 " :type draw_type: str\n"
243 " :return: Handler that can be removed later on.\n"
248 pyrna_draw_handler_remove_doc,
249 ".. classmethod:: draw_handler_remove(handler, region_type)\n"
251 " Remove a draw handler that was added previously.\n"
253 " :arg handler: The draw handler that should be removed.\n"
254 " :type handler: object\n"
255 " :arg region_type: Region type the callback was added to.\n"
256 " :type region_type: str\n");
261 METH_VARARGS | METH_CLASS,
262 pyrna_draw_handler_add_doc},
263 {
"draw_handler_remove",
265 METH_VARARGS | METH_CLASS,
266 pyrna_draw_handler_remove_doc},
267 {
nullptr,
nullptr, 0,
nullptr},
#define ARRAY_SET_ITEMS(...)
Read Guarded memory(de)allocation.
PyMethodDef BPY_library_load_method_def
PyMethodDef BPY_library_write_method_def
void pyrna_struct_type_extend_capi(StructRNA *srna, PyMethodDef *method, PyGetSetDef *getset)
PyObject * pyrna_callback_classmethod_remove(PyObject *, PyObject *args)
PyObject * pyrna_callback_classmethod_add(PyObject *, PyObject *args)
void bpy_rna_context_types_init()
PyMethodDef BPY_rna_context_temp_override_method_def
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
PyMethodDef BPY_rna_operator_poll_message_set_method_def
PyMethodDef BPY_rna_region_from_string_method_def
PyMethodDef BPY_rna_region_as_string_method_def
static PyMethodDef pyrna_uilayout_methods[]
static PyMethodDef pyrna_blenddata_methods[]
PyDoc_STRVAR(pyrna_WindowManager_clipboard_doc, "Clipboard text storage.\n" "\n" ":type: str")
static PyMethodDef pyrna_blenddatalibraries_methods[]
static PyMethodDef pyrna_context_methods[]
static PyMethodDef pyrna_windowmanager_methods[]
static PyMethodDef pyrna_text_methods[]
static int pyrna_WindowManager_clipboard_set(PyObject *, PyObject *value, void *)
static PyMethodDef pyrna_operator_methods[]
static PyGetSetDef pyrna_windowmanager_getset[]
static PyMethodDef pyrna_space_methods[]
static PyObject * pyrna_WindowManager_clipboard_get(PyObject *, void *)
void BPY_rna_types_extend_capi()
PyMethodDef BPY_rna_uilayout_introspect_method_def
void MEM_freeN(void *vmemh)
PyObject * PyC_UnicodeFromBytesAndSize(const char *str, Py_ssize_t size)
const char * PyC_UnicodeAsBytes(PyObject *py_str, PyObject **r_coerce)
void WM_clipboard_text_set(const char *buf, bool selection)
char * WM_clipboard_text_get(bool selection, bool ensure_utf8, int *r_len)