MCPcopy Create free account
hub / github.com/bmorcelli/Launcher / drawRightString

Method drawRightString

src/tft.cpp:38–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36}
37
38void Ard_eSPI::drawRightString(String s, uint16_t x, uint16_t y, int f) {
39 uint16_t _x = cursor_x;
40 uint16_t _y = cursor_y;
41 uint16_t w, h;
42 int16_t x1, y1;
43 getTextBounds(s, 0, 0, &x1, &y1, &w, &h);
44 setCursor(x - w, y);
45 this->print(s);
46 setCursor(_x, _y);
47}
48#endif

Callers 3

TouchFooterFunction · 0.45
TouchFooter2Function · 0.45
drawBatteryStatusFunction · 0.45

Calls 1

printMethod · 0.95

Tested by

no test coverage detected