Blender V5.3
blender::bToolRef_Runtime Struct Reference

#include <DNA_workspace_types.h>

Public Attributes

int cursor = 0
char keymap [64] = ""
char gizmo_group [64] = ""
char data_block [64] = ""
int brush_type = 0
char keymap_fallback [64] = ""
char op [64] = ""
int index = 0
ebToolRef_Runtime_Flag flag = {}

Detailed Description

Definition at line 38 of file DNA_workspace_types.h.

Member Data Documentation

◆ brush_type

int blender::bToolRef_Runtime::brush_type = 0

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 blender::brush_type_matches_active_tool(), blender::toolsystem_brush_activate_from_toolref_for_object_paint(), and blender::WM_toolsystem_activate_brush_and_tool().

◆ cursor

◆ data_block

char blender::bToolRef_Runtime::data_block[64] = ""

◆ flag

◆ gizmo_group

◆ index

int blender::bToolRef_Runtime::index = 0

Index when a tool is a member of a group.

Definition at line 61 of file DNA_workspace_types.h.

◆ keymap

char blender::bToolRef_Runtime::keymap[64] = ""

◆ keymap_fallback

char blender::bToolRef_Runtime::keymap_fallback[64] = ""

Keymap for #bToolRef.idname_fallback, if set.

Definition at line 55 of file DNA_workspace_types.h.

Referenced by blender::wm_event_get_keymap_from_toolsystem_ex(), and blender::WM_toolsystem_ref_set_from_runtime().

◆ op

char blender::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: