Blender  V2.93
DNA_workspace_types.h
Go to the documentation of this file.
1 /*
2  * This program is free software; you can redistribute it and/or
3  * modify it under the terms of the GNU General Public License
4  * as published by the Free Software Foundation; either version 2
5  * of the License, or (at your option) any later version.
6  *
7  * This program is distributed in the hope that it will be useful,
8  * but WITHOUT ANY WARRANTY; without even the implied warranty of
9  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
10  * GNU General Public License for more details.
11  *
12  * You should have received a copy of the GNU General Public License
13  * along with this program; if not, write to the Free Software Foundation,
14  * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
15  */
16 
23 #pragma once
24 
25 #include "DNA_ID.h"
26 
27 #ifdef __cplusplus
28 extern "C" {
29 #endif
30 
31 #
32 #
33 typedef struct bToolRef_Runtime {
34  int cursor;
35 
37  char keymap[64];
38  char gizmo_group[64];
39  char data_block[64];
40 
42  char keymap_fallback[64];
43 
45  char op[64];
46 
48  int index;
50 
51 /* Stored per mode. */
52 typedef struct bToolRef {
53  struct bToolRef *next, *prev;
54  char idname[64];
55 
57  char idname_fallback[64];
58 
60  short tag;
61 
63  short space_type;
68  int mode;
69 
78 
82 
92 typedef struct WorkSpaceLayout {
94 
95  struct bScreen *screen;
96  /* The name of this layout, we override the RNA name of the screen with this
97  * (but not ID name itself) */
99  char name[64];
101 
103 typedef struct wmOwnerID {
104  struct wmOwnerID *next, *prev;
106  char name[64];
108 
109 typedef struct WorkSpace {
111 
114  /* Store for each hook (so for each window) which layout has
115  * been activated the last time this workspace was visible. */
118 
119  /* Feature tagging (use for addons) */
122 
125 
126  char _pad[4];
127 
129 
131  int flags;
132 
134  int order;
135 
137  char *status_text;
139 
163 typedef struct WorkSpaceDataRelation {
165 
169  void *parent;
171  void *value;
172 
174  int parentid;
175  char _pad_0[4];
177 
182 typedef struct WorkSpaceInstanceHook {
185 
191 
192 typedef enum eWorkSpaceFlags {
195 
196 #ifdef __cplusplus
197 }
198 #endif
ID and Library types, which are fundamental for sdna.
struct bToolRef bToolRef
struct WorkSpaceDataRelation WorkSpaceDataRelation
struct WorkSpaceInstanceHook WorkSpaceInstanceHook
eWorkSpaceFlags
@ WORKSPACE_USE_FILTER_BY_ORIGIN
struct WorkSpaceLayout WorkSpaceLayout
Wrapper for bScreen.
struct wmOwnerID wmOwnerID
struct WorkSpace WorkSpace
struct bToolRef_Runtime bToolRef_Runtime
Definition: DNA_ID.h:273
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
ListBase owner_ids
ListBase hook_layout_relations
IDProperty * properties
char idname[64]
bToolRef_Runtime * runtime
struct bToolRef * prev
char idname_fallback[64]
struct bToolRef * next
struct wmOwnerID * prev
struct wmOwnerID * next