Blender V4.3
bToolRef_Runtime Struct Reference

#include <DNA_workspace_types.h>

Public Attributes

int cursor
 
char keymap [64]
 
char gizmo_group [64]
 
char data_block [64]
 
int brush_type
 
char keymap_fallback [64]
 
char op [64]
 
int index
 
int flag
 

Detailed Description

Definition at line 38 of file DNA_workspace_types.h.

Member Data Documentation

◆ brush_type

int bToolRef_Runtime::brush_type

The brush type this tool is limited too, if TOOLREF_FLAG_USE_BRUSHES is set. Note that this is a different enum in different modes, e.g. eBrushSculptType in sculpt mode, eBrushVertexPaintType in vertex paint mode.

-1 means any brush type may be used (0 is used by brush type enums of some modes).

Definition at line 52 of file DNA_workspace_types.h.

Referenced by brush_type_matches_active_tool(), toolsystem_brush_activate_from_toolref_for_object_paint(), and WM_toolsystem_activate_brush_and_tool().

◆ cursor

◆ data_block

char bToolRef_Runtime::data_block[64]

◆ flag

◆ gizmo_group

◆ index

int bToolRef_Runtime::index

Index when a tool is a member of a group.

Definition at line 61 of file DNA_workspace_types.h.

◆ keymap

char bToolRef_Runtime::keymap[64]

One of these 4 must be defined.

Definition at line 42 of file DNA_workspace_types.h.

Referenced by is_brush_related_tool(), tool_generic_create_gizmo(), and wm_event_get_keymap_from_toolsystem_ex().

◆ keymap_fallback

char bToolRef_Runtime::keymap_fallback[64]

◆ op

char bToolRef_Runtime::op[64]

Use to infer primary operator to use when setting accelerator keys.

Definition at line 58 of file DNA_workspace_types.h.


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