touchgfx::LCD::realX() is only used within TouchGFX.
 
Symbols
loading...
Files
loading...

touchgfx::LCD::realX() method

@fn static int LCD::realX(const Rect& widgetArea, int16_t x, int16_t y, TextRotation rotation); Find the real, absolute x coordinate of a point inside a widget. Find the real, absolute x coordinate of a point inside a widget with regards to rotation.

Syntax

static int realX(const Rect& widgetArea,     int16_t x,     int16_t y,     TextRotation rotation);

Arguments

widgetArea

x

The x coordinate.

y

The y coordinate.

rotation

Rotation to perform.

Return value

The absolute x coordinate after applying appropriate rotation.

References

LocationText
LCD.hpp:464
static int realX(const Rect& widgetArea, int16_t x, int16_t y, TextRotation rotation);