|
Blender V5.3
|
#include <Python.h>#include <descrobject.h>#include "BLI_utildefines.hh"#include "bpy_library.hh"#include "bpy_rna.hh"#include "bpy_rna_callback.hh"#include "bpy_rna_context.hh"#include "bpy_rna_data.hh"#include "bpy_rna_id_collection.hh"#include "bpy_rna_text.hh"#include "bpy_rna_types_capi.hh"#include "bpy_rna_ui.hh"#include "bpy_rna_wm.hh"#include "bpy_rna_operator.hh"#include "RNA_prototypes.hh"Go to the source code of this file.
Namespaces | |
| namespace | blender |
| BMesh Iterators. | |
Functions | |
Public API | |
| void | blender::BPY_rna_types_extend_capi (PyObject *bpy_types) |
Variables | |
Blend Data | |
| static PyMethodDef | blender::pyrna_blenddata_methods [] |
Blend Data Libraries | |
| static PyMethodDef | blender::pyrna_blenddatalibraries_methods [] |
UI Layout | |
| static PyMethodDef | blender::pyrna_uilayout_methods [] |
Operator | |
| static PyMethodDef | blender::pyrna_operator_methods [] |
Text Editor | |
| static PyMethodDef | blender::pyrna_text_methods [] |
Window Manager Type | |
| static PyMethodDef | blender::pyrna_windowmanager_methods [] |
| static PyGetSetDef | blender::pyrna_windowmanager_getset [] |
Window Type | |
| static PyMethodDef | blender::pyrna_window_methods [] |
Context Type | |
| static PyMethodDef | blender::pyrna_context_methods [] |
Space Type | |
| static PyMethodDef | blender::pyrna_space_methods [] |
| blender::PyDoc_STRVAR (pyrna_draw_handler_add_doc, ".. classmethod:: 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, it's return value is ignored.\n" " :type callback: Callable[..., Any]\n" " :param args: Arguments that will be passed to the callback.\n" " :type args: tuple[Any, ...]\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\n") | |
| blender::PyDoc_STRVAR (pyrna_draw_handler_remove_doc, ".. classmethod:: draw_handler_remove(handler, region_type)\n" "\n" " Remove a draw handler that was added previously.\n" "\n" " :param handler: The draw handler that should be removed.\n" " :type handler: object\n" " :param region_type: Region type the callback was added to.\n" " :type region_type: str\n") | |
This file extends RNA types from bpy.types with C/Python API methods and attributes.
We should avoid adding code here, and prefer:
Otherwise functions can be added here as a last resort.
Definition in file bpy_rna_types_capi.cc.