Class to store the left, top, width or height of a widget.
More...
#include <TGUI/Layout.hpp>
|
|
| Layout () |
| | Default constructor.
|
| |
| template<typename T , typename = typename std::enable_if<std::is_arithmetic<T>::value, T>::type> |
| | Layout (T constant) |
| | Constructor to implicitly construct from numeric constant. More...
|
| |
| | Layout (const char *expression) |
| | Construct the layout based on a string which will be parsed to determine the value of the layout. More...
|
| |
| | Layout (const std::string &expression) |
| | Construct the layout based on a string which will be parsed to determine the value of the layout. More...
|
| |
| | Layout (const Layout ©) |
| | Copy constructor. More...
|
| |
| Layout & | operator= (const Layout &right) |
| | Overload of assignment operator. More...
|
| |
| float | getValue () const |
| | Return the cached value of the layout. More...
|
| |
|
Layout | operator+ () |
| | Unary plus operator for the Layout class.
|
| |
|
Layout | operator- () |
| | Unary minus operator for the Layout class.
|
| |
|
Layout | operator+= (Layout right) |
| | += operator for the Layout class
|
| |
|
Layout | operator-= (Layout right) |
| | -= operator for the Layout class
|
| |
|
Layout | operator*= (Layout right) |
| | *= operator for the Layout class
|
| |
|
Layout | operator/= (Layout right) |
| | /= operator for the Layout class
|
| |
|
Layout | operator%= (Layout right) |
| | %= operator for the Layout class (floating point modulo)
|
| |
Class to store the left, top, width or height of a widget.
You don't have to create an instance of this class, numbers are implicitly cast to this class.
◆ Layout() [1/4]
template<typename T , typename = typename std::enable_if<std::is_arithmetic<T>::value, T>::type>
| tgui::Layout::Layout |
( |
T |
constant | ) |
|
|
inline |
Constructor to implicitly construct from numeric constant.
- Parameters
-
| constant | Value of the layout |
◆ Layout() [2/4]
| tgui::Layout::Layout |
( |
const char * |
expression | ) |
|
Construct the layout based on a string which will be parsed to determine the value of the layout.
- Parameters
-
| expression | String to parse |
◆ Layout() [3/4]
| tgui::Layout::Layout |
( |
const std::string & |
expression | ) |
|
Construct the layout based on a string which will be parsed to determine the value of the layout.
- Parameters
-
| expression | String to parse |
◆ Layout() [4/4]
| tgui::Layout::Layout |
( |
const Layout & |
copy | ) |
|
Copy constructor.
- Parameters
-
◆ getValue()
| float tgui::Layout::getValue |
( |
| ) |
const |
Return the cached value of the layout.
- Returns
- Value of the layout
◆ operator=()
Overload of assignment operator.
- Parameters
-
- Returns
- Reference to itself
The documentation for this class was generated from the following file: