new methods for lora
gui
This commit is contained in:
@@ -5,6 +5,8 @@
|
||||
#include "../Draw.h"
|
||||
#include "UIStructs.h"
|
||||
|
||||
#include <string>
|
||||
|
||||
class Setter;
|
||||
class FontWrap;
|
||||
|
||||
@@ -34,6 +36,10 @@ public:
|
||||
void drawText(const uint16_t x, const uint16_t y, const char* str) {
|
||||
fnt_f1.draw(str, x, y, setter);
|
||||
}
|
||||
|
||||
void drawText(const uint16_t x, const uint16_t y, const std::string& str) {
|
||||
drawText(x, y, str.c_str());
|
||||
}
|
||||
|
||||
void setFG(const Color fg) {
|
||||
drawer.setColor(fg);
|
||||
|
||||
Reference in New Issue
Block a user