Blender V4.3
bToolRef Struct Reference

#include <DNA_workspace_types.h>

Public Attributes

struct bToolRefnext
 
struct bToolRefprev
 
char idname [64]
 
char idname_fallback [64]
 
short tag
 
short space_type
 
int mode
 
IDPropertyproperties
 
bToolRef_Runtimeruntime
 

Detailed Description

Note
Stored per mode.

Definition at line 69 of file DNA_workspace_types.h.

Member Data Documentation

◆ idname

◆ idname_fallback

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().

◆ mode

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().

◆ next

struct bToolRef* bToolRef::next

Definition at line 70 of file DNA_workspace_types.h.

◆ prev

struct bToolRef * bToolRef::prev

Definition at line 70 of file DNA_workspace_types.h.

◆ properties

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().

◆ runtime

◆ space_type

◆ tag

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().


The documentation for this struct was generated from the following file: