| 36 | } |
| 37 | |
| 38 | void 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 |
no test coverage detected