stmm-games-doc  0.32.0
Public Attributes | List of all members
stmg::RelSizedGameWidget::LocalInit Struct Reference

The data to initialize a RelSizedGameWidget. More...

Inheritance diagram for stmg::RelSizedGameWidget::LocalInit:
Inheritance graph
[legend]

Public Attributes

double m_fReferenceWFactor = -1.0
 The width compared to the reference widget's width. More...
 
double m_fReferenceHFactor = -1.0
 The height compared to the reference widget's height. More...
 
double m_fWHRatio = -1.0
 The width to height ratio. More...
 

Detailed Description

The data to initialize a RelSizedGameWidget.

Of the values m_fReferenceWFactor, m_fReferenceHFactor, m_fWHRatio two have to be defined (< 0), one should have a negative value (which means not defined).

Member Data Documentation

◆ m_fReferenceHFactor

double stmg::RelSizedGameWidget::LocalInit::m_fReferenceHFactor = -1.0

The height compared to the reference widget's height.

Default: -1.0 (not set).

◆ m_fReferenceWFactor

double stmg::RelSizedGameWidget::LocalInit::m_fReferenceWFactor = -1.0

The width compared to the reference widget's width.

Default: -1.0 (not set).

◆ m_fWHRatio

double stmg::RelSizedGameWidget::LocalInit::m_fWHRatio = -1.0

The width to height ratio.

Default: -1.0 (not set).