|
Blender V5.3
|
#include <DNA_workspace_types.h>
Public Attributes | |
| struct WorkSpaceDataRelation * | next = nullptr |
| struct WorkSpaceDataRelation * | prev = nullptr |
| void * | parent = nullptr |
| void * | value = nullptr |
| int | parentid = 0 |
| 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 223 of file DNA_workspace_types.h.
| char blender::WorkSpaceDataRelation::_pad_0[4] = {} |
Definition at line 235 of file DNA_workspace_types.h.
| struct WorkSpaceDataRelation* blender::WorkSpaceDataRelation::next = nullptr |
Definition at line 224 of file DNA_workspace_types.h.
| void* blender::WorkSpaceDataRelation::parent = nullptr |
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 229 of file DNA_workspace_types.h.
Referenced by blender::workspace_relation_add(), and blender::workspace_relation_ensure_updated().
| int blender::WorkSpaceDataRelation::parentid = 0 |
Reference to the actual parent window, #wmWindow.winid. Used in read/write code.
Definition at line 234 of file DNA_workspace_types.h.
Referenced by blender::workspace_relation_add().
| struct WorkSpaceDataRelation * blender::WorkSpaceDataRelation::prev = nullptr |
Definition at line 224 of file DNA_workspace_types.h.
| void* blender::WorkSpaceDataRelation::value = nullptr |
The value for this parent-data/workspace relation.
Definition at line 231 of file DNA_workspace_types.h.
Referenced by blender::workspace_blend_read_data(), blender::workspace_relation_add(), blender::workspace_relation_ensure_updated(), and blender::workspace_relation_get_data_matching_parent().