turbo::RectangleShape Class Reference
Represents a drawable rectangle. More...
#include <RectangleShape.hpp>


Public Member Functions | |
RectangleShape (const Vector2< unsigned int > &size, const Color &color=Color()) | |
RectangleShape (unsigned int width, unsigned int height, const Color &color=Color()) | |
void | draw () const override |
Draw the drawable -_-. | |
Public Attributes | |
bool | is_filled = true |
Is filled or only borders ? | |
float | thickness = 1.0f |
Thickness of the border is is_filled is false More... | |
float | border_radius = 0.0f |
Border radius of the rectangle. More... | |
Color | color = Color() |
Color of the shape. | |
Vector2< unsigned int > | size |
size of the rectangle in pixels | |
Detailed Description
Represents a drawable rectangle.
Member Data Documentation
◆ border_radius
float turbo::RectangleShape::border_radius = 0.0f |
Border radius of the rectangle.
- Note
- trigger runtime exception if negative
◆ thickness
float turbo::RectangleShape::thickness = 1.0f |
Thickness of the border is is_filled
is false
- Note
- trigger runtime exception if negative
The documentation for this class was generated from the following files:
- include/turbo/graphics/RectangleShape.hpp
- src/graphics/RectangleShape.cpp