Blender V5.0
DNA_workspace_types.h
Go to the documentation of this file.
1/* SPDX-FileCopyrightText: 2023 Blender Authors
2 *
3 * SPDX-License-Identifier: GPL-2.0-or-later */
4
10
11#pragma once
12
13#include "DNA_ID.h"
14#include "DNA_asset_types.h"
16
17#ifdef __cplusplus
18namespace blender::bke {
19struct WorkSpaceRuntime;
20}
22#else
24#endif
25
27enum {
34};
35
36#
37#
38typedef struct bToolRef_Runtime {
39 int cursor;
40
42 char keymap[64];
43 char gizmo_group[64];
44 char data_block[64];
53
56
58 char op[64];
59
61 int index;
63 int flag;
65
69typedef struct bToolRef {
70 struct bToolRef *next, *prev;
71 char idname[64];
72
75
91
93 short tag;
94
103 int mode;
104
113
117
127typedef struct WorkSpaceLayout {
129
131 /* The name of this layout, we override the RNA name of the screen with this
132 * (but not ID name itself) */
133 char name[/*MAX_NAME*/ 64];
135
137typedef struct wmOwnerID {
138 struct wmOwnerID *next, *prev;
140 char name[128];
142
143typedef struct WorkSpace {
144#ifdef __cplusplus
146 static constexpr ID_Type id_type = ID_WS;
147#endif
148
150
153 /* Store for each hook (so for each window) which layout has
154 * been activated the last time this workspace was visible. */
157
158 /* Feature tagging (use for addons) */
161
164
168
169 /* Scene that is used by the sequence editors in this workspace. */
171
172 char _pad[4];
173
175
177 int flags;
178
180 int order;
181
184
188
196
234
250
251typedef enum eWorkSpaceFlags {
254 /* Used for syncing time between sequencer scene strips and the active scene. */
ID and Library types, which are fundamental for SDNA.
ID_Type
@ ID_WS
@ WORKSPACE_USE_FILTER_BY_ORIGIN
@ WORKSPACE_SYNC_SCENE_TIME
@ WORKSPACE_USE_PIN_SCENE
struct WorkSpaceRuntimeHandle WorkSpaceRuntimeHandle
@ TOOLREF_FLAG_FALLBACK_KEYMAP
@ TOOLREF_FLAG_USE_BRUSHES
Definition DNA_ID.h:414
struct WorkSpaceDataRelation * prev
struct WorkSpaceDataRelation * next
struct WorkSpaceLayout * act_layout
struct WorkSpaceLayout * temp_layout_store
Wrapper for bScreen.
struct bScreen * screen
struct WorkSpaceLayout * next
struct WorkSpaceLayout * prev
AssetLibraryReference asset_library_ref
struct Scene * sequencer_scene
WorkSpaceRuntimeHandle * runtime
ListBase hook_layout_relations
ViewerPath viewer_path
struct Scene * pin_scene
IDProperty * properties
bToolRef_Runtime * runtime
struct bToolRef * prev
char idname_fallback[64]
char idname_pending[64]
struct bToolRef * next
struct wmOwnerID * prev
struct wmOwnerID * next