Player12
An open source football management simulator
Loading...
Searching...
No Matches
UI::TileRow Class Reference

Lays out a row of equal tiles that wraps onto more lines when the region is too narrow for them all (small windows, large UI scale). More...

#include <widgets.h>

Public Member Functions

 TileRow (int count, float minimumWidth=175.0f)
 
float width () const
 Width for each tile.
 
void next ()
 Call before each tile; keeps it on the row or wraps.
 

Private Attributes

int per_row = 1
 
int index = 0
 
float tile_width = 0.0f
 

Detailed Description

Lays out a row of equal tiles that wraps onto more lines when the region is too narrow for them all (small windows, large UI scale).

Constructor & Destructor Documentation

◆ TileRow()

UI::TileRow::TileRow ( int  count,
float  minimumWidth = 175.0f 
)
explicit

Member Function Documentation

◆ next()

void UI::TileRow::next ( )

Call before each tile; keeps it on the row or wraps.

◆ width()

float UI::TileRow::width ( ) const
inline

Width for each tile.

Member Data Documentation

◆ index

int UI::TileRow::index = 0
private

◆ per_row

int UI::TileRow::per_row = 1
private

◆ tile_width

float UI::TileRow::tile_width = 0.0f
private

The documentation for this class was generated from the following files: