|
Blender V5.3
|
#include <DNA_workspace_types.h>
Public Attributes | |
| struct bToolRef * | next = nullptr |
| struct bToolRef * | prev = nullptr |
| char | idname [64] = "" |
| char | idname_fallback [64] = "" |
| char | idname_pending [64] = "" |
| short | tag = 0 |
| short | space_type = 0 |
| int | mode = 0 |
| IDProperty * | properties = nullptr |
| bToolRef_Runtime * | runtime = nullptr |
Definition at line 69 of file DNA_workspace_types.h.
| char blender::bToolRef::idname[64] = "" |
Definition at line 71 of file DNA_workspace_types.h.
Referenced by blender::BKE_workspace_tool_id_replace_table(), blender::ed::vse::blade_paint_cursor_poll(), blender::blo_do_versions_403(), blender::blo_do_versions_404(), blender::ED_paint_brush_type_update_sticky_shading_color(), blender::ED_paint_brush_type_use_canvas(), blender::paint_brush_type_shading_color_follows_last_used_tool(), blender::toolsystem_brush_sync_for_texture_paint(), blender::toolsystem_ref_set_by_id_pending(), blender::toolsystem_reinit_ensure_toolref(), blender::toolsystem_reinit_with_toolref(), blender::update_paint_modes_for_brush_assets(), blender::view3d_interactive_add_begin(), blender::ed::transform::WIDGETGROUP_gizmo_setup(), blender::wm_event_get_keymap_from_toolsystem_ex(), blender::WM_toolsystem_ref_properties_ensure_idprops(), blender::WM_toolsystem_ref_properties_get_idprops(), blender::WM_toolsystem_ref_set_by_id_ex(), blender::WM_toolsystem_ref_set_from_runtime(), and blender::WM_toolsystem_ref_sync_from_context().
| char blender::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 blender::WM_toolsystem_ref_set_from_runtime().
| char blender::bToolRef::idname_pending[64] = "" |
A pending request to switch to a different tool, this will be performed as part of the areas tool initialization. (see #toolsystem_ref_set_by_id_pending).
Notes:
Definition at line 90 of file DNA_workspace_types.h.
Referenced by blender::toolsystem_ref_set_by_id_pending(), blender::toolsystem_reinit_with_toolref(), and blender::WM_toolsystem_ref_set_from_runtime().
| int blender::bToolRef::mode = 0 |
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.
See: #eSpaceImageMode for SPACE_IMAGE, eContextObjectMode for SPACE_VIEW3D, etc
Definition at line 103 of file DNA_workspace_types.h.
Referenced by blender::BKE_paintmode_get_from_tool(), blender::BKE_workspace_tool_id_replace_table(), blender::blo_do_versions_404(), blender::toolsystem_brush_activate_from_toolref(), blender::toolsystem_brush_sync_for_texture_paint(), blender::toolsystem_refresh_screen_from_active_tool(), blender::toolsystem_reinit_with_toolref(), blender::update_paint_modes_for_brush_assets(), blender::WM_toolsystem_ref_ensure(), blender::WM_toolsystem_ref_find(), blender::WM_toolsystem_ref_sync_from_context(), and blender::WM_toolsystem_refresh_screen_area().
Definition at line 70 of file DNA_workspace_types.h.
Definition at line 70 of file DNA_workspace_types.h.
| IDProperty* blender::bToolRef::properties = nullptr |
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 112 of file DNA_workspace_types.h.
Referenced by blender::BKE_workspace_tool_remove(), blender::WM_toolsystem_ref_properties_ensure_idprops(), blender::WM_toolsystem_ref_properties_get_idprops(), blender::workspace_blend_read_data(), and blender::workspace_blend_write().
| bToolRef_Runtime* blender::bToolRef::runtime = nullptr |
Variables needed to operate the tool.
Definition at line 115 of file DNA_workspace_types.h.
Referenced by blender::BKE_workspace_tool_remove(), blender::ed::sculpt_paint::brush_tool_get(), blender::brush_type_matches_active_tool(), blender::ed::sculpt_paint::is_brush_related_tool(), blender::ed::sculpt_paint::paint_brush_cursor_poll(), blender::tool_generic_create_gizmo(), blender::toolsystem_brush_activate_from_toolref(), blender::toolsystem_brush_activate_from_toolref_for_object_paint(), blender::toolsystem_brush_activate_from_toolref_for_object_particle(), blender::toolsystem_ref_link(), blender::toolsystem_refresh_ref(), blender::toolsystem_unlink_ref(), blender::ed::transform::WIDGETGROUP_gizmo_poll_context(), blender::WM_cursor_set_from_tool(), blender::wm_event_get_keymap_from_toolsystem_ex(), blender::wm_handler_operator_call(), blender::WM_toolsystem_activate_brush_and_tool(), blender::WM_toolsystem_init(), blender::WM_toolsystem_ref_set_from_runtime(), blender::WM_toolsystem_ref_sync_from_context(), blender::WM_toolsystem_runtime_find(), blender::WM_toolsystem_runtime_from_context(), blender::WM_toolsystem_unlink(), blender::WM_toolsystem_unlink_all(), and blender::workspace_blend_read_data().
| short blender::bToolRef::space_type = 0 |
bToolKey (space-type, mode), used in 'WM_api.hh'
Definition at line 96 of file DNA_workspace_types.h.
Referenced by blender::BKE_paintmode_get_from_tool(), blender::BKE_workspace_tool_id_replace_table(), blender::blo_do_versions_403(), blender::blo_do_versions_404(), blender::tool_generic_create_gizmo(), blender::toolsystem_brush_activate_from_toolref(), blender::toolsystem_brush_sync_for_texture_paint(), blender::toolsystem_refresh_screen_from_active_tool(), blender::toolsystem_reinit_with_toolref(), blender::update_paint_modes_for_brush_assets(), blender::WM_toolsystem_ref_ensure(), blender::WM_toolsystem_ref_find(), blender::WM_toolsystem_ref_sync_from_context(), blender::WM_toolsystem_refresh_screen_area(), and blender::WM_toolsystem_refresh_screen_window().
| short blender::bToolRef::tag = 0 |
Use to avoid initializing the same tool multiple times.
Definition at line 93 of file DNA_workspace_types.h.
Referenced by blender::WM_toolsystem_reinit_all(), and blender::WM_toolsystem_unlink_all().