52 {0,
nullptr, 0,
nullptr,
nullptr},
166static void rna_Context_engine_get(
PointerRNA *
ptr,
char *value)
170 strcpy(value, engine_type->
idname);
177 return strlen(engine_type->
idname);
212static Depsgraph *rna_Context_evaluated_depsgraph_get(
bContext *C)
276 "The current space, may be None in background-mode, "
277 "when the cursor is outside the window or "
278 "when using menu-search");
290 prop,
"Popup Region",
"The temporary region for pop-ups (including menus and pop-overs)");
326 prop,
"rna_Context_engine_get",
"rna_Context_engine_length",
nullptr);
337 prop,
"rna_Context_layer_collection_get",
nullptr,
nullptr,
nullptr);
354 func =
RNA_def_function(srna,
"evaluated_depsgraph_get",
"rna_Context_evaluated_depsgraph_get");
357 "Get the dependency graph for the current scene and view layer, to access to data-blocks "
358 "with animation and modifiers applied. If any data-blocks have been edited, the dependency "
359 "graph will be updated. This invalidates all references to evaluated data-blocks from the "
360 "dependency graph.");
361 parm =
RNA_def_pointer(func,
"depsgraph",
"Depsgraph",
"",
"Evaluated dependency graph");
WorkSpace * CTX_wm_workspace(const bContext *C)
bScreen * CTX_wm_screen(const bContext *C)
LayerCollection * CTX_data_layer_collection(const bContext *C)
void * CTX_wm_region_data(const bContext *C)
ARegion * CTX_wm_region_popup(const bContext *C)
@ CTX_MODE_VERTEX_GPENCIL_LEGACY
@ CTX_MODE_WEIGHT_GPENCIL_LEGACY
@ CTX_MODE_EDIT_POINT_CLOUD
@ CTX_MODE_SCULPT_GPENCIL_LEGACY
@ CTX_MODE_PAINT_GREASE_PENCIL
@ CTX_MODE_PAINT_GPENCIL_LEGACY
@ CTX_MODE_SCULPT_GREASE_PENCIL
@ CTX_MODE_EDIT_GREASE_PENCIL
@ CTX_MODE_WEIGHT_GREASE_PENCIL
@ CTX_MODE_VERTEX_GREASE_PENCIL
@ CTX_MODE_EDIT_GPENCIL_LEGACY
Depsgraph * CTX_data_ensure_evaluated_depsgraph(const bContext *C)
ScrArea * CTX_wm_area(const bContext *C)
wmWindow * CTX_wm_window(const bContext *C)
RenderEngineType * CTX_data_engine_type(const bContext *C)
SpaceLink * CTX_wm_space_data(const bContext *C)
Scene * CTX_data_scene(const bContext *C)
class blender::asset_system::AssetRepresentation * CTX_wm_asset(const bContext *C)
Main * CTX_data_main(const bContext *C)
wmGizmoGroup * CTX_wm_gizmo_group(const bContext *C)
ToolSettings * CTX_data_tool_settings(const bContext *C)
ARegion * CTX_wm_region(const bContext *C)
Collection * CTX_data_collection(const bContext *C)
wmWindowManager * CTX_wm_manager(const bContext *C)
View3D * CTX_wm_view3d(const bContext *C)
enum eContextObjectMode CTX_data_mode_enum(const bContext *C)
ViewLayer * CTX_data_view_layer(const bContext *C)
#define BPy_BEGIN_ALLOW_THREADS
#define BPy_END_ALLOW_THREADS
ID and Library types, which are fundamental for SDNA.
constexpr PointerRNA PointerRNA_NULL
const Depsgraph * depsgraph
PointerRNA rna_pointer_inherit_refine(const PointerRNA *ptr, StructRNA *type, void *data)
PointerRNA RNA_pointer_create(ID *id, StructRNA *type, void *data)
PointerRNA RNA_id_pointer_create(ID *id)
const EnumPropertyItem rna_enum_context_mode_items[]
void RNA_def_context(BlenderRNA *brna)
void RNA_def_property_string_funcs(PropertyRNA *prop, const char *get, const char *length, const char *set)
void RNA_def_function_return(FunctionRNA *func, PropertyRNA *ret)
void RNA_def_property_ui_text(PropertyRNA *prop, const char *name, const char *description)
void RNA_def_struct_ui_text(StructRNA *srna, const char *name, const char *description)
void RNA_def_property_enum_items(PropertyRNA *prop, const EnumPropertyItem *item)
void RNA_def_struct_sdna(StructRNA *srna, const char *structname)
FunctionRNA * RNA_def_function(StructRNA *srna, const char *identifier, const char *call)
PropertyRNA * RNA_def_pointer(StructOrFunctionRNA *cont_, const char *identifier, const char *type, const char *ui_name, const char *ui_description)
void RNA_def_property_struct_type(PropertyRNA *prop, const char *type)
void RNA_def_function_ui_description(FunctionRNA *func, const char *description)
PropertyRNA * RNA_def_property(StructOrFunctionRNA *cont_, const char *identifier, int type, int subtype)
void RNA_def_property_enum_funcs(PropertyRNA *prop, const char *get, const char *set, const char *item)
StructRNA * RNA_def_struct(BlenderRNA *brna, const char *identifier, const char *from)
void RNA_def_property_clear_flag(PropertyRNA *prop, PropertyFlag flag)
void RNA_def_property_pointer_funcs(PropertyRNA *prop, const char *get, const char *set, const char *type_fn, const char *poll)