Blender V5.3
blender::Panel_Runtime Struct Reference

#include <BKE_screen.hh>

Public Attributes

int region_ofsx = 0
PointerRNA * custom_data_ptr = nullptr
ui::Block * block = nullptr
bContextStore * context = nullptr
LayoutPanels layout_panels
ListBaseT< LayoutPanelState > * layout_panel_states_storage = nullptr

Detailed Description

Definition at line 580 of file BKE_screen.hh.

Member Data Documentation

◆ block

◆ context

bContextStore* blender::Panel_Runtime::context = nullptr

Non-owning pointer. The context is stored in the block.

Definition at line 600 of file BKE_screen.hh.

Referenced by blender::ui::panel_context_pointer_set(), and blender::ui::reorder_instanced_panel_list().

◆ custom_data_ptr

PointerRNA* blender::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 591 of file BKE_screen.hh.

Referenced by blender::ui::panel_add_instanced(), blender::ui::panel_custom_data_get(), blender::ui::panel_custom_data_set(), blender::ui::panel_custom_data_set_recursive(), and blender::ui::paneltype_draw_impl().

◆ layout_panel_states_storage

ListBaseT<LayoutPanelState>* blender::Panel_Runtime::layout_panel_states_storage = nullptr

Custom storage for saving the open-close-state of layout panels created with layout.panel(...). This precedes #Panel::layout_panel_states when storing layout panel state.

Definition at line 610 of file BKE_screen.hh.

Referenced by blender::BKE_panel_layout_panel_state_ensure(), blender::file_panel_operator(), blender::ui::hud_panel_operator_redo_draw(), blender::ui::popup_dummy_panel_set(), and blender::ui::template_collection_exporters().

◆ layout_panels

◆ region_ofsx

int blender::Panel_Runtime::region_ofsx = 0

Applied to Panel.ofsx, but saved separately so we can track changes between redraws.

Definition at line 582 of file BKE_screen.hh.

Referenced by blender::ui::panel_calculate_size_recursive().


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