TGUI
0.7.8
|
Class to store the position or size of a widget. More...
#include <TGUI/Layout.hpp>
Public Member Functions | |
Layout2d (sf::Vector2f constant={0, 0}) | |
Default constructor to implicitly construct from an sf::Vector2f. More... | |
Layout2d (Layout layoutX, Layout layoutY) | |
Constructor to create the Layout2d from two Layout classes. More... | |
Layout2d (const char *expression) | |
Construct the layout based on a string which will be parsed to determine the value of the layout. More... | |
Layout2d (const std::string &expression) | |
Constructs the layout based on a string which will be parsed to determine the value of the layout. More... | |
sf::Vector2f | getValue () const |
Return the cached value of the layout. More... | |
Layout2d | operator+ () |
Unary plus operator for the Layout class. | |
Layout2d | operator- () |
Unary minus operator for the Layout class. | |
Layout2d | operator+= (Layout2d right) |
+= operator for the Layout2d class | |
Layout2d | operator-= (Layout2d right) |
-= operator for the Layout2d class | |
Layout2d | operator*= (Layout right) |
*= operator for the Layout2d class | |
Layout2d | operator/= (Layout right) |
/= operator for the Layout2d class | |
Layout2d | operator%= (Layout right) |
%= operator for the Layout2d class (floating point modulo) | |
Public Attributes | |
Layout | x |
Layout to store the x component. | |
Layout | y |
Layout to store the y component. | |
Class to store the position or size of a widget.
You don't have to create an instance of this class, sf::Vector2f is implicitly converted to this class.
tgui::Layout2d::Layout2d | ( | sf::Vector2f | constant = {0, 0} | ) |
Default constructor to implicitly construct from an sf::Vector2f.
constant | Value of the layout |
tgui::Layout2d::Layout2d | ( | const char * | expression | ) |
Construct the layout based on a string which will be parsed to determine the value of the layout.
expression | String to parse |
tgui::Layout2d::Layout2d | ( | const std::string & | expression | ) |
Constructs the layout based on a string which will be parsed to determine the value of the layout.
expression | String to parse |
sf::Vector2f tgui::Layout2d::getValue | ( | ) | const |
Return the cached value of the layout.