Blender V4.3
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
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
77 short tag;
78
85 int mode;
86
95
99
109typedef struct WorkSpaceLayout {
111
113 /* The name of this layout, we override the RNA name of the screen with this
114 * (but not ID name itself) */
116 char name[64];
118
120typedef struct wmOwnerID {
121 struct wmOwnerID *next, *prev;
123 char name[128];
125
126typedef struct WorkSpace {
128
131 /* Store for each hook (so for each window) which layout has
132 * been activated the last time this workspace was visible. */
135
136 /* Feature tagging (use for addons) */
139
142
146
147 char _pad[4];
148
150
152 int flags;
153
155 int order;
156
159
163
171
209
225
ID and Library types, which are fundamental for SDNA.
struct bToolRef bToolRef
struct WorkSpaceDataRelation WorkSpaceDataRelation
struct WorkSpaceInstanceHook WorkSpaceInstanceHook
@ WORKSPACE_USE_FILTER_BY_ORIGIN
@ WORKSPACE_USE_PIN_SCENE
struct WorkSpaceLayout WorkSpaceLayout
Wrapper for bScreen.
struct WorkSpaceRuntimeHandle WorkSpaceRuntimeHandle
@ TOOLREF_FLAG_FALLBACK_KEYMAP
@ TOOLREF_FLAG_USE_BRUSHES
struct wmOwnerID wmOwnerID
struct WorkSpace WorkSpace
struct bToolRef_Runtime bToolRef_Runtime
Definition DNA_ID.h:413
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
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]
struct bToolRef * next
struct wmOwnerID * prev
struct wmOwnerID * next