TGUI
0.10-beta
|
Class to store the position or size of a widget. More...
#include <TGUI/Layout.hpp>
Public Member Functions | |
Layout2d (Vector2f constant={0, 0}) | |
Default constructor to implicitly construct from a tgui::Vector2f. More... | |
Layout2d (Layout layoutX, Layout layoutY) | |
Constructor to create the Layout2d from two Layout classes. More... | |
Layout2d (const char *expression) | |
Constructs the Layout2d based on a string which will be parsed to determine the value of the layouts. More... | |
Layout2d (const String &expression) | |
Constructs the Layout2d based on a string which will be parsed to determine the value of the layouts. More... | |
Vector2f | getValue () const |
Returns the cached value of the layout. More... | |
String | toString () const |
Public Attributes | |
Layout | x |
Layout | y |
Class to store the position or size of a widget.
You don't have to explicitly create an instance of this class, sf::Vector2f and tgui::Vector2f are implicitly converted.
|
inline |
Default constructor to implicitly construct from a tgui::Vector2f.
constant | Value of the layout |
|
inline |
|
inline |
|
inline |
Returns the cached value of the layout.