Blender V4.3
Panel_Runtime Struct Reference

#include <BKE_screen.hh>

Public Attributes

int region_ofsx = 0
 
PointerRNAcustom_data_ptr = nullptr
 
uiBlockblock = nullptr
 
bContextStorecontext = nullptr
 
LayoutPanels layout_panels
 

Detailed Description

Definition at line 396 of file BKE_screen.hh.

Member Data Documentation

◆ block

◆ context

bContextStore* Panel_Runtime::context = nullptr

Definition at line 414 of file BKE_screen.hh.

Referenced by reorder_instanced_panel_list(), and UI_panel_context_pointer_set().

◆ custom_data_ptr

PointerRNA* Panel_Runtime::custom_data_ptr = nullptr

Pointer for storing which data the panel corresponds to. Useful when there can be multiple instances of the same panel type.

Note
A panel and its sub-panels share the same custom data pointer. This avoids freeing the same pointer twice when panels are removed.

Definition at line 407 of file BKE_screen.hh.

Referenced by panel_add_instanced(), UI_panel_custom_data_get(), UI_panel_custom_data_set(), ui_panel_custom_data_set_recursive(), and ui_paneltype_draw_impl().

◆ layout_panels

◆ region_ofsx

int Panel_Runtime::region_ofsx = 0

Definition at line 398 of file BKE_screen.hh.

Referenced by panel_calculate_size_recursive(), and uiAlignPanelStep().


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