Blender V5.3
blender::ui::PopupLayoutPanelStates Struct Reference

Public Member Functions

 PopupLayoutPanelStates (StringRef idname)
 ~PopupLayoutPanelStates ()

Public Attributes

std::string idname
ListBaseT< LayoutPanelState > states = {}

Detailed Description

Persistent storage of open-close-state of layout panels in popups.

Usually this state is stored in each region's panels, however since these regions are temporally allocated this state is lost when the popup is closed and the region is freed. See #152631.

Definition at line 624 of file interface_region_popup.cc.

Constructor & Destructor Documentation

◆ PopupLayoutPanelStates()

blender::ui::PopupLayoutPanelStates::PopupLayoutPanelStates ( StringRef idname)
inline

Definition at line 629 of file interface_region_popup.cc.

References idname.

◆ ~PopupLayoutPanelStates()

blender::ui::PopupLayoutPanelStates::~PopupLayoutPanelStates ( )
inline

Definition at line 631 of file interface_region_popup.cc.

References blender::BLI_remlink(), state, and states.

Member Data Documentation

◆ idname

std::string blender::ui::PopupLayoutPanelStates::idname

#PanelType::idname or #OperatorType::idname.

Definition at line 626 of file interface_region_popup.cc.

Referenced by PopupLayoutPanelStates().

◆ states

ListBaseT<LayoutPanelState> blender::ui::PopupLayoutPanelStates::states = {}

Definition at line 627 of file interface_region_popup.cc.

Referenced by ~PopupLayoutPanelStates().


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