◆ FloatRect() [1/3]
tgui::FloatRect::FloatRect |
( |
sf::FloatRect |
rect | ) |
|
|
inline |
Constructs the rectangle from an sf::FloatRect.
- Parameters
-
rect | Rectangle to initialize |
◆ FloatRect() [2/3]
tgui::FloatRect::FloatRect |
( |
float |
rectLeft, |
|
|
float |
rectTop, |
|
|
float |
rectWidth, |
|
|
float |
rectHeight |
|
) |
| |
|
inline |
Constructs the rectangle from its position and size.
- Parameters
-
rectLeft | Left coordinate of the rectangle |
rectTop | Top coordinate of the rectangle |
rectWidth | Width of the rectangle |
rectHeight | Height of the rectangle |
◆ FloatRect() [3/3]
Constructs the rectangle from its position and size.
- Parameters
-
position | Position of the top-left corner of the rectangle |
size | Size of the rectangle |
◆ getPosition()
Vector2f tgui::FloatRect::getPosition |
( |
| ) |
const |
|
inline |
Returns the position of the rectangle.
- Returns
- Rectangle position
◆ getSize()
Vector2f tgui::FloatRect::getSize |
( |
| ) |
const |
|
inline |
Returns the size of the rectangle.
- Returns
- Rectangle size
◆ setPosition()
void tgui::FloatRect::setPosition |
( |
Vector2f |
position | ) |
|
|
inline |
Sets the position of the rectangle.
- Parameters
-
position | New position for the rectangle |
◆ setSize()
void tgui::FloatRect::setSize |
( |
Vector2f |
size | ) |
|
|
inline |
Sets the size of the rectangle.
- Parameters
-
size | New size for the rectangle |
The documentation for this class was generated from the following file: