|
Blender V4.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 69 of file DNA_workspace_types.h.
| char bToolRef::idname[64] |
Definition at line 71 of file DNA_workspace_types.h.
Referenced by BKE_workspace_tool_id_replace_table(), ED_image_paint_brush_type_update_sticky_shading_color(), ED_image_paint_brush_type_use_canvas(), image_paint_brush_type_shading_color_follows_last_used_tool(), sequencer_main_cursor(), 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 74 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 its own mode too. RNA needs to handle using item function.
Definition at line 85 of file DNA_workspace_types.h.
Referenced by BKE_paintmode_get_from_tool(), toolsystem_brush_activate_from_toolref(), 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 70 of file DNA_workspace_types.h.
| struct bToolRef * bToolRef::prev |
Definition at line 70 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 94 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 97 of file DNA_workspace_types.h.
Referenced by BKE_workspace_tool_remove(), brush_type_matches_active_tool(), is_brush_related_tool(), blender::ed::sculpt_paint::paint_brush_cursor_poll(), sequencer_main_cursor(), tool_generic_create_gizmo(), toolsystem_brush_activate_from_toolref(), toolsystem_brush_activate_from_toolref_for_object_paint(), toolsystem_brush_activate_from_toolref_for_object_particle(), toolsystem_ref_link(), toolsystem_refresh_ref(), toolsystem_refresh_screen_from_active_tool(), toolsystem_unlink_ref(), WIDGETGROUP_gizmo_poll_context(), WIDGETGROUP_gizmo_setup(), wm_event_get_keymap_from_toolsystem_ex(), wm_handler_operator_call(), WM_toolsystem_activate_brush_and_tool(), WM_toolsystem_ref_from_context(), WM_toolsystem_ref_set_from_runtime(), WM_toolsystem_ref_sync_from_context(), WM_toolsystem_refresh_active(), WM_toolsystem_refresh_screen_area(), WM_toolsystem_runtime_find(), WM_toolsystem_runtime_from_context(), and WM_toolsystem_unlink().
| short bToolRef::space_type |
bToolKey (space-type, mode), used in 'WM_api.hh'
Definition at line 80 of file DNA_workspace_types.h.
Referenced by BKE_paintmode_get_from_tool(), tool_generic_create_gizmo(), toolsystem_brush_activate_from_toolref(), 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 77 of file DNA_workspace_types.h.
Referenced by WM_toolsystem_reinit_all().