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 288 Lines • ▼ Show 20 Lines | typedef struct ARegion_Runtime { | ||||
| * The visible part of the region, use with region overlap not to draw | * The visible part of the region, use with region overlap not to draw | ||||
| * on top of the overlapping regions. | * on top of the overlapping regions. | ||||
| * | * | ||||
| * Lazy initialize, zero'd when unset, relative to #ARegion.winrct x/y min. */ | * Lazy initialize, zero'd when unset, relative to #ARegion.winrct x/y min. */ | ||||
| rcti visible_rect; | rcti visible_rect; | ||||
| /* The offset needed to not overlap with window scrollbars. Only used by HUD regions for now. */ | /* The offset needed to not overlap with window scrollbars. Only used by HUD regions for now. */ | ||||
| int offset_x, offset_y; | int offset_x, offset_y; | ||||
| /* Maps uiBlock->name to uiBlock for faster lookups. */ | |||||
| struct GHash *block_name_map; | |||||
| } ARegion_Runtime; | } ARegion_Runtime; | ||||
| typedef struct ARegion { | typedef struct ARegion { | ||||
| struct ARegion *next, *prev; | struct ARegion *next, *prev; | ||||
| /** 2D-View scrolling/zoom info (most regions are 2d anyways). */ | /** 2D-View scrolling/zoom info (most regions are 2d anyways). */ | ||||
| View2D v2d; | View2D v2d; | ||||
| /** Coordinates of region. */ | /** Coordinates of region. */ | ||||
| ▲ Show 20 Lines • Show All 293 Lines • Show Last 20 Lines | |||||