|
stmm-games-doc
0.32.0
|

Public Member Functions | |
| LevelShowThWidgetFactory (StdTheme *p1Owner, const Frame &oFrame, double fMinTop, double fMinBottom, double fMinLeft, double fMinRight) noexcept | |
| Constructor. More... | |
| shared_ptr< ThemeWidget > | create (const shared_ptr< GameWidget > &refGameWidget, double fTileWHRatio, const Glib::RefPtr< Pango::Context > &refFontContext) noexcept override |
| Creates a theme widget for a game widget. More... | |
Public Member Functions inherited from stmg::StdThemeWidgetFactory | |
| virtual | ~StdThemeWidgetFactory () noexcept=default |
| StdThemeWidgetFactory (StdTheme *p1Owner) noexcept | |
| Constructor. More... | |
| virtual void | clearOwner () noexcept |
| Clears the owner passed in the constructor. More... | |
Additional Inherited Members | |
Protected Member Functions inherited from stmg::StdThemeWidgetFactory | |
| StdTheme * | owner () noexcept |
| The owner. More... | |
| const StdTheme * | owner () const noexcept |
| The owner. More... | |
|
noexcept |
Constructor.
For each frame's side the maximum of the minimal size in pixels and the size in tiles is chosen. Ex. nTopPixel = max(nTileW * fMinTop, oFrame.m_nPixMinTop).
| p1Owner | The theme to which this factory will be added. |
| oFrame | The frame. |
| fMinTop | The minimum size of the frame top border in tiles. |
| fMinBottom | The minimum size of the frame bottom border in tiles. |
| fMinLeft | The minimum size of the frame left border in tiles. |
| fMinRight | The minimum size of the frame right border in tiles. |
|
overridevirtualnoexcept |
Creates a theme widget for a game widget.
| refGameWidget | The model. Cannot be null. |
| fTileWHRatio | The tile weight to height ratio. |
| refFontContext | The pango font context. Cannot be null. |
Implements stmg::StdThemeWidgetFactory.
1.8.13