#include <rect.h>
|
| Rect () |
|
| Rect (int16_t x, int16_t y, int16_t w, int16_t h) ESPHOME_ALWAYS_INLINE |
|
int16_t | x2 () const |
|
int16_t | y2 () const |
| X coordinate of corner.
|
|
bool | is_set () const ESPHOME_ALWAYS_INLINE |
| Y coordinate of corner.
|
|
void | expand (int16_t horizontal, int16_t vertical) |
|
void | extend (Rect rect) |
|
void | shrink (Rect rect) |
|
bool | inside (Rect rect) const |
|
bool | inside (int16_t test_x, int16_t test_y, bool absolute=true) const |
|
bool | equal (Rect rect) const |
|
void | info (const std::string &prefix="rect info:") |
|
|
int16_t | x |
| X coordinate of corner.
|
|
int16_t | y |
| Y coordinate of corner.
|
|
int16_t | w |
| Width of region.
|
|
int16_t | h |
| Height of region.
|
|
Definition at line 10 of file rect.h.
◆ Rect() [1/2]
esphome::display::Rect::Rect |
( |
| ) |
|
|
inline |
◆ Rect() [2/2]
esphome::display::Rect::Rect |
( |
int16_t | x, |
|
|
int16_t | y, |
|
|
int16_t | w, |
|
|
int16_t | h ) |
|
inline |
◆ equal()
bool esphome::display::Rect::equal |
( |
Rect | rect | ) |
const |
◆ expand()
void esphome::display::Rect::expand |
( |
int16_t | horizontal, |
|
|
int16_t | vertical ) |
◆ extend()
void esphome::display::Rect::extend |
( |
Rect | rect | ) |
|
◆ info()
void esphome::display::Rect::info |
( |
const std::string & | prefix = "rect info:" | ) |
|
◆ inside() [1/2]
bool esphome::display::Rect::inside |
( |
int16_t | test_x, |
|
|
int16_t | test_y, |
|
|
bool | absolute = true ) const |
◆ inside() [2/2]
bool esphome::display::Rect::inside |
( |
Rect | rect | ) |
const |
◆ is_set()
bool esphome::display::Rect::is_set |
( |
| ) |
const |
|
inline |
Y coordinate of corner.
Definition at line 22 of file rect.h.
◆ shrink()
void esphome::display::Rect::shrink |
( |
Rect | rect | ) |
|
◆ x2()
int16_t esphome::display::Rect::x2 |
( |
| ) |
const |
|
inline |
◆ y2()
int16_t esphome::display::Rect::y2 |
( |
| ) |
const |
|
inline |
X coordinate of corner.
Definition at line 20 of file rect.h.
int16_t esphome::display::Rect::h |
Height of region.
Definition at line 15 of file rect.h.
int16_t esphome::display::Rect::w |
Width of region.
Definition at line 14 of file rect.h.
int16_t esphome::display::Rect::x |
X coordinate of corner.
Definition at line 12 of file rect.h.
int16_t esphome::display::Rect::y |
Y coordinate of corner.
Definition at line 13 of file rect.h.
The documentation for this class was generated from the following files: