Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesdna/DNA_workspace_types.h
| Show All 23 Lines | |||||
| #include "DNA_ID.h" | #include "DNA_ID.h" | ||||
| #include "DNA_asset_types.h" | #include "DNA_asset_types.h" | ||||
| #ifdef __cplusplus | #ifdef __cplusplus | ||||
| extern "C" { | extern "C" { | ||||
| #endif | #endif | ||||
| /** #bToolRef_Runtime.flag */ | |||||
| enum { | |||||
| /** | |||||
| * This tool should use the fallback key-map. | |||||
| * Typically gizmos handle this but some tools (such as the knife tool) don't use a gizmo. | |||||
| */ | |||||
| TOOLREF_FLAG_FALLBACK_KEYMAP = (1 << 0), | |||||
| }; | |||||
| # | # | ||||
| # | # | ||||
| typedef struct bToolRef_Runtime { | typedef struct bToolRef_Runtime { | ||||
| int cursor; | int cursor; | ||||
| /** One of these 3 must be defined. */ | /** One of these 3 must be defined. */ | ||||
| char keymap[64]; | char keymap[64]; | ||||
| char gizmo_group[64]; | char gizmo_group[64]; | ||||
| char data_block[64]; | char data_block[64]; | ||||
| /** Keymap for #bToolRef.idname_fallback, if set. */ | /** Keymap for #bToolRef.idname_fallback, if set. */ | ||||
| char keymap_fallback[64]; | char keymap_fallback[64]; | ||||
| /** Use to infer primary operator to use when setting accelerator keys. */ | /** Use to infer primary operator to use when setting accelerator keys. */ | ||||
| char op[64]; | char op[64]; | ||||
| /** Index when a tool is a member of a group. */ | /** Index when a tool is a member of a group. */ | ||||
| int index; | int index; | ||||
| /** Options: `TOOLREF_FLAG_*`. */ | |||||
| int flag; | |||||
| } bToolRef_Runtime; | } bToolRef_Runtime; | ||||
| /* Stored per mode. */ | /* Stored per mode. */ | ||||
| typedef struct bToolRef { | typedef struct bToolRef { | ||||
| struct bToolRef *next, *prev; | struct bToolRef *next, *prev; | ||||
| char idname[64]; | char idname[64]; | ||||
| /** Optionally use these when not interacting directly with the primary tools gizmo. */ | /** Optionally use these when not interacting directly with the primary tools gizmo. */ | ||||
| ▲ Show 20 Lines • Show All 146 Lines • Show Last 20 Lines | |||||