18#ifndef __LAYOUT_MANAGER_HPP__
19#define __LAYOUT_MANAGER_HPP__
24#include "utils/ptr_vector.hpp"
29 class AbstractTopLevelContainer;
42 static bool convertToCoord(std::string& x,
int* absolute ,
int* percentage );
Represents a GUI widgets container.
Definition: abstract_top_level_container.hpp:43
Definition: layout_manager.hpp:32
static void readCoords(Widget *self)
Find a widget's x, y, w and h coords from what is specified in the XML properties.
Definition: layout_manager.cpp:84
static void calculateLayout(PtrVector< Widget > &widgets, AbstractTopLevelContainer *topLevelContainer)
Recursive call that lays out children widget within parent (or screen if none).
Definition: layout_manager.cpp:429
static void applyCoords(Widget *self, AbstractTopLevelContainer *topLevelContainer, Widget *parent)
Find a widget's x, y, w and h coords from what is specified in the XML properties.
Definition: layout_manager.cpp:314
static bool convertToCoord(std::string &x, int *absolute, int *percentage)
Receives as string the raw property value retrieved from XML file.
Definition: layout_manager.cpp:59
static void doCalculateLayout(PtrVector< Widget > &widgets, AbstractTopLevelContainer *topLevelContainer, Widget *parent)
Recursive call that lays out children widget within parent (or screen if none).
Definition: layout_manager.cpp:437
Definition: ptr_vector.hpp:44
Contains all GUI engine related classes and functions.
Definition: abstract_state_manager.hpp:33