Blender
V3.3
|
#include <DNA_workspace_types.h>
Public Attributes | |
struct WorkSpaceDataRelation * | next |
struct WorkSpaceDataRelation * | prev |
void * | parent |
void * | value |
int | parentid |
char | _pad_0 [4] |
Generic (and simple/primitive) struct for storing a history of assignments/relations of workspace data to non-workspace data in a listbase inside the workspace.
Using this we can restore the old state of a workspace if the user switches back to it.
When activating a workspace, it should activate the screen-layout that was active in that workspace before in this window. More concretely:
Definition at line 171 of file DNA_workspace_types.h.
char WorkSpaceDataRelation::_pad_0[4] |
Definition at line 183 of file DNA_workspace_types.h.
struct WorkSpaceDataRelation* WorkSpaceDataRelation::next |
Definition at line 172 of file DNA_workspace_types.h.
void* WorkSpaceDataRelation::parent |
The data used to identify the relation (e.g. to find screen-layout (= value) from/for a hook). NOTE: Now runtime only.
Definition at line 177 of file DNA_workspace_types.h.
Referenced by workspace_relation_add(), and workspace_relation_ensure_updated().
int WorkSpaceDataRelation::parentid |
Reference to the actual parent window, wmWindow->winid. Used in read/write code.
Definition at line 182 of file DNA_workspace_types.h.
Referenced by workspace_relation_add().
struct WorkSpaceDataRelation * WorkSpaceDataRelation::prev |
Definition at line 172 of file DNA_workspace_types.h.
void* WorkSpaceDataRelation::value |
The value for this parent-data/workspace relation.
Definition at line 179 of file DNA_workspace_types.h.
Referenced by workspace_relation_add(), workspace_relation_ensure_updated(), and workspace_relation_get_data_matching_parent().