stmm-games-doc  0.32.0
Public Member Functions | Public Attributes | List of all members
stmg::GameWidget::Init Struct Reference

Instance initialization data. More...

Inheritance diagram for stmg::GameWidget::Init:
Inheritance graph
[legend]

Public Member Functions

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
 

Public Attributes

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...
 

Detailed Description

Instance initialization data.

Member Function Documentation

◆ setAlign()

void stmg::GameWidget::Init::setAlign ( WidgetAxisFit::ALIGN  eAlign)
inlinenoexcept

◆ setExpand()

void stmg::GameWidget::Init::setExpand ( bool  bExpand)
inlinenoexcept

◆ setHorizAlign()

void stmg::GameWidget::Init::setHorizAlign ( WidgetAxisFit::ALIGN  eAlign)
inlinenoexcept

◆ setHorizExpand()

void stmg::GameWidget::Init::setHorizExpand ( bool  bExpand)
inlinenoexcept

◆ setVertAlign()

void stmg::GameWidget::Init::setVertAlign ( WidgetAxisFit::ALIGN  eAlign)
inlinenoexcept

◆ setVertExpand()

void stmg::GameWidget::Init::setVertExpand ( bool  bExpand)
inlinenoexcept

Member Data Documentation

◆ m_aHorizAxisFit

std::array<WidgetAxisFit, g_nTotLayoutConfigs> stmg::GameWidget::Init::m_aHorizAxisFit = {{WidgetAxisFit(), WidgetAxisFit()}}

Widget alignment for the x axis for each layout config.

◆ m_aVertAxisFit

std::array<WidgetAxisFit, g_nTotLayoutConfigs> stmg::GameWidget::Init::m_aVertAxisFit = {{WidgetAxisFit{}, WidgetAxisFit{}}}

Widget alignment for the y axis.

◆ m_nMate

int32_t stmg::GameWidget::Init::m_nMate = -1

The mate the widget belongs to.

Default: -1.

◆ m_nTeam

int32_t stmg::GameWidget::Init::m_nTeam = -1

The team the widget belongs to.

Default: -1.

◆ m_nViewWidgetNameIdx

int32_t stmg::GameWidget::Init::m_nViewWidgetNameIdx = -1

The name that might be used to select the view (ThemeWidget).

Index into Named::widgets(). Default: -1.

◆ m_sName

std::string stmg::GameWidget::Init::m_sName

The name of the widget.

Can be empty.