gigawidgets 0.3.55
A wxWidgets-style UI library for the Arduino Giga Display Shield.
 
Loading...
Searching...
No Matches
bounds.hpp
Go to the documentation of this file.
1
2#pragma once
3
4#include "coords.hpp"
5
6namespace ui {
7
11struct Bounds {
16
22 bool contains(const Coords &point);
23};
24
25} // namespace ui
A struct that holds the pixel space that a widget would take up on the screen.
Definition bounds.hpp:11
Coords min
The starting point of the bounds.
Definition bounds.hpp:13
bool contains(const Coords &point)
Check if a point is contained within the current bounds.
Coords max
The ending point of the bounds.
Definition bounds.hpp:15
A struct for storing the pixel coordinates of various UI elements.
Definition coords.hpp:17