Blender  V3.3
Public Attributes | List of all members
WorkSpaceDataRelation Struct Reference

#include <DNA_workspace_types.h>

Public Attributes

struct WorkSpaceDataRelationnext
 
struct WorkSpaceDataRelationprev
 
voidparent
 
voidvalue
 
int parentid
 
char _pad_0 [4]
 

Detailed Description

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.

Usage

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.

Member Data Documentation

◆ _pad_0

char WorkSpaceDataRelation::_pad_0[4]

Definition at line 183 of file DNA_workspace_types.h.

◆ next

struct WorkSpaceDataRelation* WorkSpaceDataRelation::next

Definition at line 172 of file DNA_workspace_types.h.

◆ parent

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().

◆ parentid

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().

◆ prev

struct WorkSpaceDataRelation * WorkSpaceDataRelation::prev

Definition at line 172 of file DNA_workspace_types.h.

◆ value

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().


The documentation for this struct was generated from the following file: