gigawidgets 0.3.55
A wxWidgets-style UI library for the Arduino Giga Display Shield.
 
Loading...
Searching...
No Matches
ui::Bounds Struct Reference

A struct that holds the pixel space that a widget would take up on the screen. More...

#include <bounds.hpp>

Public Member Functions

bool contains (const Coords &point)
 Check if a point is contained within the current bounds.
 

Public Attributes

Coords min
 The starting point of the bounds.
 
Coords max
 The ending point of the bounds.
 

Detailed Description

A struct that holds the pixel space that a widget would take up on the screen.

Member Function Documentation

◆ contains()

bool ui::Bounds::contains ( const Coords point)

Check if a point is contained within the current bounds.

Parameters
pointThe point to check.
Returns
True if the point is within the bounds or on the edge, false if outside the bounds.

The documentation for this struct was generated from the following file: