Improving the API

This commit is contained in:
2025-11-11 23:31:43 +00:00
parent 69868c1b31
commit 12209f9789
15 changed files with 92 additions and 44 deletions
+2 -2
View File
@@ -3,12 +3,12 @@
#include "UIComponent.h"
#include <Arduino_GFX.h>
UIString::UIString() : UIElement(nullptr, {0, 0, 0, 0}, nullptr, (char *)"") {
UIString::UIString() : UIElement(nullptr, {0, 0, 0, 0}, UIDecorations(), (char *)"") {
this->type = STRING;
memset(this->value, 0, this->bufferSize);
}
UIString::UIString(Arduino_GFX *d, UIDimensions dims, UIDecorations *decor,
UIString::UIString(Arduino_GFX *d, UIDimensions dims, UIDecorations decor,
char *title)
: UIElement(d, dims, decor, title) {
this->type = STRING;