Blender  V3.3
Public Attributes | List of all members
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 52 of file DNA_workspace_types.h.

Member Data Documentation

◆ idname

char bToolRef::idname[64]

◆ idname_fallback

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

◆ mode

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

◆ next

struct bToolRef* bToolRef::next

Definition at line 53 of file DNA_workspace_types.h.

◆ prev

struct bToolRef * bToolRef::prev

Definition at line 53 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 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().

◆ runtime

bToolRef_Runtime* bToolRef::runtime

◆ space_type

short bToolRef::space_type

◆ tag

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


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