TGUI  0.8-dev
tgui::FloatRect Class Reference
Inheritance diagram for tgui::FloatRect:

Public Member Functions

 FloatRect ()=default
 Default constructor.
 
 FloatRect (sf::FloatRect rect)
 Constructs the rectangle from an sf::FloatRect. More...
 
void setPosition (sf::Vector2f position)
 Sets the position of the rectangle. More...
 
sf::Vector2f getPosition () const
 Returns the position of the rectangle. More...
 
void setSize (sf::Vector2f size)
 Sets the size of the rectangle. More...
 
sf::Vector2f getSize () const
 Returns the size of the rectangle. More...
 

Constructor & Destructor Documentation

◆ FloatRect()

tgui::FloatRect::FloatRect ( sf::FloatRect  rect)
inline

Constructs the rectangle from an sf::FloatRect.

Parameters
rectRectangle to initialize

Member Function Documentation

◆ getPosition()

sf::Vector2f tgui::FloatRect::getPosition ( ) const
inline

Returns the position of the rectangle.

Returns
Rectangle position

◆ getSize()

sf::Vector2f tgui::FloatRect::getSize ( ) const
inline

Returns the size of the rectangle.

Returns
Rectangle size

◆ setPosition()

void tgui::FloatRect::setPosition ( sf::Vector2f  position)
inline

Sets the position of the rectangle.

Parameters
positionNew position for the rectangle

◆ setSize()

void tgui::FloatRect::setSize ( sf::Vector2f  size)
inline

Sets the size of the rectangle.

Parameters
sizeNew size for the rectangle

The documentation for this class was generated from the following file: