◆ applyCoords()
Find a widget's x, y, w and h coords from what is specified in the XML properties.
Most notably, expands coords relative to parent and percentages.
◆ calculateLayout()
Recursive call that lays out children widget within parent (or screen if none).
Manages 'horizontal-row' and 'vertical-row' layouts, along with the proportions of the remaining children, as well as absolute sizes and locations.
◆ convertToCoord()
bool LayoutManager::convertToCoord |
( |
std::string & |
x, |
|
|
int * |
absolute, |
|
|
int * |
percentage |
|
) |
| |
|
staticprivate |
Receives as string the raw property value retrieved from XML file.
Will try to make sense of it, as an absolute value or a percentage.
Return values : Will write to either absolute or percentage, depending on the case. Returns false if couldn't convert to either
◆ doCalculateLayout()
Recursive call that lays out children widget within parent (or screen if none).
Manages 'horizontal-row' and 'vertical-row' layouts, along with the proportions of the remaining children, as well as absolute sizes and locations.
◆ readCoords()
void LayoutManager::readCoords |
( |
Widget * |
self | ) |
|
|
static |
Find a widget's x, y, w and h coords from what is specified in the XML properties.
(First step; 'applyCoords' is the second step)
The documentation for this class was generated from the following files: