diff options
Diffstat (limited to 'src/ui_elements/UI.h')
| -rw-r--r-- | src/ui_elements/UI.h | 4 |
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 |
