16 #include <descrobject.h>
34 #include "../generic/py_capi_utils.h"
37 #include "RNA_prototypes.h"
110 PyDoc_STRVAR(pyrna_WindowManager_clipboard_doc,
"Clipboard text storage.\n\n:type: string");
126 PyObject *value_coerce =
NULL;
132 Py_XDECREF(value_coerce);
145 METH_VARARGS | METH_CLASS,
147 {
"draw_cursor_remove",
149 METH_VARARGS | METH_CLASS,
158 pyrna_WindowManager_clipboard_doc,
181 pyrna_draw_handler_add_doc,
182 ".. method:: draw_handler_add(callback, args, region_type, draw_type)\n"
184 " Add a new draw handler to this space type.\n"
185 " It will be called every time the specified region in the space type will be drawn.\n"
186 " Note: All arguments are positional only for now.\n"
188 " :param callback:\n"
189 " A function that will be called when the region is drawn.\n"
190 " It gets the specified arguments as input.\n"
191 " :type callback: function\n"
192 " :param args: Arguments that will be passed to the callback.\n"
193 " :type args: tuple\n"
194 " :param region_type: The region type the callback draws in; usually ``WINDOW``. "
195 "(:class:`bpy.types.Region.type`)\n"
196 " :type region_type: str\n"
197 " :param draw_type: Usually ``POST_PIXEL`` for 2D drawing and ``POST_VIEW`` for 3D drawing. "
198 "In some cases ``PRE_VIEW`` can be used. ``BACKDROP`` can be used for backdrops in the node "
200 " :type draw_type: str\n"
201 " :return: Handler that can be removed later on.\n"
205 ".. method:: draw_handler_remove(handler, region_type)\n"
207 " Remove a draw handler that was added previously.\n"
209 " :param handler: The draw handler that should be removed.\n"
210 " :type handler: object\n"
211 " :param region_type: Region type the callback was added to.\n"
212 " :type region_type: str\n");
217 METH_VARARGS | METH_CLASS,
218 pyrna_draw_handler_add_doc},
219 {
"draw_handler_remove",
221 METH_VARARGS | METH_CLASS,
222 pyrna_draw_handler_remove_doc},
#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(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)
void bpy_rna_context_types_init(void)
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 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 PyMethodDef pyrna_context_methods[]
static struct PyGetSetDef pyrna_windowmanager_getset[]
PyDoc_STRVAR(pyrna_WindowManager_clipboard_doc, "Clipboard text storage.\n\n:type: string")
void BPY_rna_types_extend_capi(void)
static struct PyMethodDef pyrna_space_methods[]
static struct PyMethodDef pyrna_text_methods[]
static struct PyMethodDef pyrna_operator_methods[]
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)