Blender
V3.3
|
#include <DNA_workspace_types.h>
Public Attributes | |
struct bToolRef * | next |
struct bToolRef * | prev |
char | idname [64] |
char | idname_fallback [64] |
short | tag |
short | space_type |
int | mode |
IDProperty * | properties |
bToolRef_Runtime * | runtime |
Definition at line 52 of file DNA_workspace_types.h.
char bToolRef::idname[64] |
Definition at line 54 of file DNA_workspace_types.h.
Referenced by ED_paint_tool_update_sticky_shading_color(), ED_paint_tool_use_canvas(), paint_tool_shading_color_follows_last_used_tool(), toolsystem_reinit_ensure_toolref(), toolsystem_reinit_with_toolref(), view3d_interactive_add_begin(), WIDGETGROUP_gizmo_setup(), WM_toolsystem_ref_properties_ensure_idprops(), WM_toolsystem_ref_properties_get_idprops(), WM_toolsystem_ref_set_by_id_ex(), WM_toolsystem_ref_set_from_runtime(), and WM_toolsystem_ref_sync_from_context().
char bToolRef::idname_fallback[64] |
Optionally use these when not interacting directly with the primary tools gizmo.
Definition at line 57 of file DNA_workspace_types.h.
Referenced by WM_toolsystem_ref_set_from_runtime().
int bToolRef::mode |
Value depends on the 'space_type', object mode for 3D view, image editor has own mode too. RNA needs to handle using item function.
Definition at line 68 of file DNA_workspace_types.h.
Referenced by BKE_paintmode_get_from_tool(), toolsystem_ref_link(), toolsystem_refresh_screen_from_active_tool(), toolsystem_reinit_with_toolref(), WM_toolsystem_ref_ensure(), and WM_toolsystem_ref_sync_from_context().
struct bToolRef* bToolRef::next |
Definition at line 53 of file DNA_workspace_types.h.
struct bToolRef * bToolRef::prev |
Definition at line 53 of file DNA_workspace_types.h.
IDProperty* bToolRef::properties |
Use for tool options, each group's name must match a tool name:
{"Tool Name": {"SOME_OT_operator": {...}, ..}, ..}
This is done since different tools may call the same operators with their own options.
Definition at line 77 of file DNA_workspace_types.h.
Referenced by BKE_workspace_tool_remove(), WM_toolsystem_ref_properties_ensure_idprops(), and WM_toolsystem_ref_properties_get_idprops().
bToolRef_Runtime* bToolRef::runtime |
Variables needed to operate the tool.
Definition at line 80 of file DNA_workspace_types.h.
Referenced by BKE_workspace_tool_remove(), brush_add_gpencil_exec(), gpencil_get_brush_preset_from_tool(), PAINT_brush_tool_poll(), tool_generic_create_gizmo(), toolsystem_ref_link(), toolsystem_refresh_ref(), toolsystem_unlink_ref(), WIDGETGROUP_gizmo_poll_context(), wm_handler_operator_call(), WM_toolsystem_ref_set_from_runtime(), WM_toolsystem_ref_sync_from_context(), WM_toolsystem_runtime_find(), WM_toolsystem_runtime_from_context(), and WM_toolsystem_unlink().
short bToolRef::space_type |
bToolKey (spacetype, mode), used in 'WM_api.h'
Definition at line 63 of file DNA_workspace_types.h.
Referenced by BKE_paintmode_get_from_tool(), tool_generic_create_gizmo(), toolsystem_ref_link(), toolsystem_refresh_screen_from_active_tool(), toolsystem_reinit_with_toolref(), WM_toolsystem_ref_ensure(), and WM_toolsystem_ref_sync_from_context().
short bToolRef::tag |
Use to avoid initializing the same tool multiple times.
Definition at line 60 of file DNA_workspace_types.h.
Referenced by WM_toolsystem_reinit_all().