|
stmm-games-doc
0.32.0
|

Public Member Functions | |
| void | setTitleAlign (const WidgetAxisFit::ALIGN &eTitleAlign) noexcept |
| void | setValueAlign (const WidgetAxisFit::ALIGN &eValueAlign) noexcept |
Public Attributes | |
| std::string | m_sTitle |
| The title that describes the variable. More... | |
| int32_t | m_nTitleFactorPerc = 30 |
| The percentage of widget space for the title. More... | |
| bool | m_bTitleBesideValue = false |
| Whether title is left or right of the value or above or below. More... | |
| int32_t | m_nVarId = -1 |
| The variable id. More... | |
| OwnerType | m_eVarOwnerType = OwnerType::GAME |
| The variable owner type. More... | |
| int32_t | m_nVarDigits = 5 |
| The maximum number of digits of values. More... | |
| std::array< WidgetAxisFit::ALIGN, g_nTotLayoutConfigs > | m_aTitleAlign = {WidgetAxisFit::ALIGN_FILL, WidgetAxisFit::ALIGN_FILL} |
| The alignment of the title for each layout config. More... | |
| std::array< WidgetAxisFit::ALIGN, g_nTotLayoutConfigs > | m_aValueAlign = {WidgetAxisFit::ALIGN_FILL, WidgetAxisFit::ALIGN_FILL} |
| The alignment of the value for each layout config. More... | |
|
inlinenoexcept |
|
inlinenoexcept |
| std::array<WidgetAxisFit::ALIGN, g_nTotLayoutConfigs> stmg::VarWidget::LocalInit::m_aTitleAlign = {WidgetAxisFit::ALIGN_FILL, WidgetAxisFit::ALIGN_FILL} |
The alignment of the title for each layout config.
If ALIGN_FILL is used chosen by view. Default: WidgetAxisFit::ALIGN_FILL.
| std::array<WidgetAxisFit::ALIGN, g_nTotLayoutConfigs> stmg::VarWidget::LocalInit::m_aValueAlign = {WidgetAxisFit::ALIGN_FILL, WidgetAxisFit::ALIGN_FILL} |
The alignment of the value for each layout config.
If ALIGN_FILL is used chosen by view. Default: WidgetAxisFit::ALIGN_FILL.
| bool stmg::VarWidget::LocalInit::m_bTitleBesideValue = false |
Whether title is left or right of the value or above or below.
Default: false.
| OwnerType stmg::VarWidget::LocalInit::m_eVarOwnerType = OwnerType::GAME |
The variable owner type.
Team and mate must be defined accordingly. Default is OwnerType::GAME.
| int32_t stmg::VarWidget::LocalInit::m_nTitleFactorPerc = 30 |
The percentage of widget space for the title.
Must be >= 0 and <= 100. Default: 30.
| int32_t stmg::VarWidget::LocalInit::m_nVarDigits = 5 |
The maximum number of digits of values.
Used to calc a stable font size. Default: 5.
| int32_t stmg::VarWidget::LocalInit::m_nVarId = -1 |
The variable id.
Must be >= 0 and exist for the widget's m_eVarOwnerType. Default: -1.
| std::string stmg::VarWidget::LocalInit::m_sTitle |
The title that describes the variable.
If empty no title i shown and m_bTitleBesideValue, m_nTitleFactorPerc, m_eTitleAlign are ignored.
1.8.13