stmm-games-doc  0.32.0
Public Member Functions | List of all members
stmg::BoxWidget::Init Struct Reference
Inheritance diagram for stmg::BoxWidget::Init:
Inheritance graph
[legend]

Public Member Functions

void setVertical (bool bVertical) noexcept
 
void setInvertChildren (bool bInvertChildren) noexcept
 
void setSwitchable (bool bVertical, bool bInvertIfSwitched, bool bFill) noexcept
 
- Public Member Functions inherited from stmg::GameWidget::Init
void setHorizExpand (bool bExpand) noexcept
 
void setVertExpand (bool bExpand) noexcept
 
void setExpand (bool bExpand) noexcept
 
void setHorizAlign (WidgetAxisFit::ALIGN eAlign) noexcept
 
void setVertAlign (WidgetAxisFit::ALIGN eAlign) noexcept
 
void setAlign (WidgetAxisFit::ALIGN eAlign) noexcept
 

Additional Inherited Members

- Public Attributes inherited from stmg::GameWidget::Init
std::array< WidgetAxisFit, g_nTotLayoutConfigs > m_aHorizAxisFit = {{WidgetAxisFit(), WidgetAxisFit()}}
 Widget alignment for the x axis for each layout config. More...
 
std::array< WidgetAxisFit, g_nTotLayoutConfigs > m_aVertAxisFit = {{WidgetAxisFit{}, WidgetAxisFit{}}}
 Widget alignment for the y axis. More...
 
int32_t m_nTeam = -1
 The team the widget belongs to. More...
 
int32_t m_nMate = -1
 The mate the widget belongs to. More...
 
int32_t m_nViewWidgetNameIdx = -1
 The name that might be used to select the view (ThemeWidget). More...
 
std::string m_sName
 The name of the widget. More...
 
- Public Attributes inherited from stmg::ContainerWidget::LocalInit
std::vector< shared_ptr< GameWidget > > m_aChildWidgets
 The child widgets. More...
 
- Public Attributes inherited from stmg::BoxWidget::LocalInit
std::array< bool, g_nTotLayoutConfigs > m_aVertical = {{false, false}}
 Whether the children are stacked vertically or horizontally. More...
 
std::array< bool, g_nTotLayoutConfigs > m_aInvertChildren = {{false, false}}
 Whether the order of the children should be inverted. More...
 

Member Function Documentation

◆ setInvertChildren()

void stmg::BoxWidget::Init::setInvertChildren ( bool  bInvertChildren)
inlinenoexcept

◆ setSwitchable()

void stmg::BoxWidget::Init::setSwitchable ( bool  bVertical,
bool  bInvertIfSwitched,
bool  bFill 
)
inlinenoexcept

◆ setVertical()

void stmg::BoxWidget::Init::setVertical ( bool  bVertical)
inlinenoexcept