|
LCDGFX LCD display driver
1.2.0
Lightweight graphics library for SSD1306, SSD1325, SSD1327, SSD1331, SSD1351, SH1106, SH1107, IL9163, ST7735, ST7789, ILI9341, PCD8544 displays over I2C/SPI
|
NanoRect structure describes rectangle area. More...
#include <rect.h>

Public Member Functions | |
| lcdint_t | width () const |
| returns width of NanoRect | |
| const NanoPoint | size () const |
| returns size of NanoRect | |
| const NanoPoint | center () const |
| returns center point of NanoRect | |
| lcdint_t | height () const |
| returns height of NanoRect | |
| void | move (lcdint_t dx, lcdint_t dy) |
| Shifts rectangle area by dx;dy pixels. More... | |
| void | addH (lcdint_t dx) |
| Shifts rectangle area by dx pixels. More... | |
| void | addV (lcdint_t dy) |
| Shifts rectangle area by dy pixels. More... | |
| void | setRect (lcdint_t l, lcdint_t t, lcdint_t r, lcdint_t b) |
| Initializes NanoRect with specified values. More... | |
| void | crop (const _NanoRect &rect) |
| Crops rectangle to fit specified area. More... | |
| bool | collisionX (lcdint_t x) const |
| Returns true if specified x position is between left and right borders. More... | |
| bool | collisionY (lcdint_t y) const |
| Returns true if specified y position is between left and right borders. More... | |
| bool | collision (const NanoPoint &p) const |
| Returns true if specified point is inside rectangle area. More... | |
| bool | contains (const NanoPoint &p) const |
| Returns true of point belongs to rectangle area. More... | |
| bool | contains (const _NanoRect &r) const |
| Returns true if whole rectangle belongs to rectangle area. More... | |
| bool | containsPartOf (const _NanoRect &r) const |
| Returns true if rectangle topleft or rightbottom points belong to rectangle area. More... | |
| bool | above (const NanoPoint &p) const |
| Returns true if specified point is above rectangle area. More... | |
| bool | below (const NanoPoint &p) const |
| Returns true if specified point is below rectangle area. More... | |
| _NanoRect | operator- (const _NanoPoint &p) |
| Returns true if specified point is above rectangle area. More... | |
| _NanoRect | operator+ (const _NanoPoint &p) |
| Add point to all points of rectangle. More... | |
| _NanoRect & | operator+= (const _NanoPoint &p) |
| Subtracts point to all points of rectangle. More... | |
| _NanoRect | operator>> (const uint8_t bits) const |
| Shifts right x,y value of the point by bits value. More... | |
| _NanoRect | operator<< (const uint8_t bits) const |
| Shifts left x,y value of the point by bits value. More... | |
Public Attributes | |
| NanoPoint | p1 |
| top-left point of the rectangle area | |
| NanoPoint | p2 |
| right-bottom point of the rectangle area | |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |