A polygon specialization for rectangles. More...
#include <rectangle.hpp>
Public Member Functions | |
| Rectangle (color_t color, const Coords &size) | |
| Construct a rectangle from a color and size. | |
Public Member Functions inherited from ui::Polygon | |
| Polygon (color_t color, const std::initializer_list< Coords > &&points, bool fill=false) | |
| Construct polygon from a set list of points. | |
| Polygon (color_t color, bool fill=false) | |
| Construct a polygon without any points. | |
| void | renderAt (const Coords &coords, const shader_t &shader) const override |
| Display the renderable directly onto the screen. | |
| Size | getSize () const override |
| Get the size of the renderable. | |
Additional Inherited Members | |
Public Attributes inherited from ui::Polygon | |
| bool | fill |
| Whether the shape is filled or just an outline. | |
| color_t | color |
| The color of the polygon. | |
| std::vector< Coords > | points |
| The polygon vertices. | |
A polygon specialization for rectangles.
Construct a rectangle from a color and size.
| color | The color of the rectangle. |
| size | The size of the rectangle. |