summaryrefslogtreecommitdiff
path: root/src/ui_elements/UI.h
diff options
context:
space:
mode:
authorPhysick <96335032+DegustatorPonos@users.noreply.github.com>2026-07-09 01:18:49 +0500
committerPhysick <96335032+DegustatorPonos@users.noreply.github.com>2026-07-09 01:18:49 +0500
commit7f7822f1bb74d3a86da5f021b35559d4509f7e08 (patch)
tree51f76f3d22da874391f37230f576f89ca9be1969 /src/ui_elements/UI.h
parentd9b6fb98ab3f53598d79a183195964b0306c91c7 (diff)
vertical movement + raygui deletion
Diffstat (limited to 'src/ui_elements/UI.h')
-rw-r--r--src/ui_elements/UI.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/ui_elements/UI.h b/src/ui_elements/UI.h
index 4c94bf7..1029289 100644
--- a/src/ui_elements/UI.h
+++ b/src/ui_elements/UI.h
@@ -10,12 +10,13 @@ float MeasureChar(Font *font, int height, char symbol);
// ========== TEXT EDITOR ==========
-static const size_t DEFAULT_TEXT_NODE_SIZE = 256;
+static const size_t DEFAULT_TEXT_NODE_SIZE = 5;
typedef struct {
void *PrevNode;
void *NextNode;
char *text;
+ size_t len;
size_t cap;
} TextNode;
@@ -37,5 +38,6 @@ void DeleteChar(TextArea *ta);
void HandleKeyboard(TextArea *ta);
void MoveCursorRight(TextArea *ta);
void MoveCursorLeft(TextArea *ta);
+void MoveCursorDown(TextArea *ta);
#endif // UI_ELEMENTS_H