Changeset View
Changeset View
Standalone View
Standalone View
source/blender/makesdna/DNA_screen_types.h
| Show First 20 Lines • Show All 148 Lines • ▼ Show 20 Lines | typedef struct Panel_Runtime { | ||||
| * \note A panel and its sub-panels share the same custom data pointer. | * \note A panel and its sub-panels share the same custom data pointer. | ||||
| * This avoids freeing the same pointer twice when panels are removed. | * This avoids freeing the same pointer twice when panels are removed. | ||||
| */ | */ | ||||
| struct PointerRNA *custom_data_ptr; | struct PointerRNA *custom_data_ptr; | ||||
| /* Pointer to the panel's block. Useful when changes to panel #uiBlocks | /* Pointer to the panel's block. Useful when changes to panel #uiBlocks | ||||
| * need some context from traversal of the panel "tree". */ | * need some context from traversal of the panel "tree". */ | ||||
| struct uiBlock *block; | struct uiBlock *block; | ||||
| /* Non-owning pointer. The context is stored in the block. */ | |||||
| struct bContextStore *context; | |||||
| } Panel_Runtime; | } Panel_Runtime; | ||||
| /** The part from uiBlock that needs saved in file. */ | /** The part from uiBlock that needs saved in file. */ | ||||
| typedef struct Panel { | typedef struct Panel { | ||||
| struct Panel *next, *prev; | struct Panel *next, *prev; | ||||
| /** Runtime. */ | /** Runtime. */ | ||||
| struct PanelType *type; | struct PanelType *type; | ||||
| ▲ Show 20 Lines • Show All 597 Lines • Show Last 20 Lines | |||||