gigawidgets 0.3.55
A wxWidgets-style UI library for the Arduino Giga Display Shield.
 
Loading...
Searching...
No Matches
rectangle.hpp
Go to the documentation of this file.
1
2#pragma once
3
4#include "polygon.hpp"
5
6namespace ui {
7
11struct Rectangle : public Polygon {
18};
19
20} // namespace ui
uint16_t color_t
An RGB565 color value. 5 bits red, 6 bits green, 5 bits blue.
Definition color.hpp:13
A struct for storing the pixel coordinates of various UI elements.
Definition coords.hpp:17
A basic 2D polygon.
Definition polygon.hpp:16
color_t color
The color of the polygon.
Definition polygon.hpp:20
A polygon specialization for rectangles.
Definition rectangle.hpp:11
Rectangle(color_t color, const Coords &size)
Construct a rectangle from a color and size.