26#ifndef TGUI_FLOAT_RECT_HPP 
   27#define TGUI_FLOAT_RECT_HPP 
   29#include <TGUI/Config.hpp> 
   30#include <SFML/Graphics/Rect.hpp> 
   65        FloatRect(
float rectLeft, 
float rectTop, 
float rectWidth, 
float rectHeight) :
 
   66            sf::
FloatRect{rectLeft, rectTop, rectWidth, rectHeight}
 
  125            return {width, height};
 
Definition: FloatRect.hpp:37
 
FloatRect(float rectLeft, float rectTop, float rectWidth, float rectHeight)
Constructs the rectangle from its position and size.
Definition: FloatRect.hpp:65
 
Vector2f getPosition() const
Returns the position of the rectangle.
Definition: FloatRect.hpp:100
 
FloatRect()=default
Default constructor.
 
FloatRect(Vector2f position, Vector2f size)
Constructs the rectangle from its position and size.
Definition: FloatRect.hpp:77
 
Vector2f getSize() const
Returns the size of the rectangle.
Definition: FloatRect.hpp:123
 
FloatRect(sf::FloatRect rect)
Constructs the rectangle from an sf::FloatRect.
Definition: FloatRect.hpp:51
 
void setPosition(Vector2f position)
Sets the position of the rectangle.
Definition: FloatRect.hpp:88
 
void setSize(Vector2f size)
Sets the size of the rectangle.
Definition: FloatRect.hpp:111
 
Definition: Vector2f.hpp:39
 
float x
X coordinate of the vector.
Definition: Vector2f.hpp:122
 
float y
Y coordinate of the vector.
Definition: Vector2f.hpp:123
 
Namespace that contains all TGUI functions and classes.
Definition: AbsoluteOrRelativeValue.hpp:37