diff options
| author | physick <mynameisgennadiy@vk.com> | 2026-07-15 21:09:40 +0500 |
|---|---|---|
| committer | physick <mynameisgennadiy@vk.com> | 2026-07-15 21:09:40 +0500 |
| commit | 5344758bc04ef948f22e507531d54eccbff70e18 (patch) | |
| tree | 0d45d24899cf826497af9068496dca597d966cca /src/ui_elements | |
| parent | 8b79b8149d1e23d90b5871f980aec65d8aa7ae23 (diff) | |
test verification
Diffstat (limited to 'src/ui_elements')
| -rw-r--r-- | src/ui_elements/TextEditor.c | 2 | ||||
| -rw-r--r-- | src/ui_elements/UI.h | 3 |
2 files changed, 3 insertions, 2 deletions
diff --git a/src/ui_elements/TextEditor.c b/src/ui_elements/TextEditor.c index 3cf34ff..1d35612 100644 --- a/src/ui_elements/TextEditor.c +++ b/src/ui_elements/TextEditor.c @@ -500,13 +500,11 @@ void HandleControlComands(TextArea *ta) { } /// Assumes that control is pressed void HandleAltComands(TextArea *ta) { - // emacs-like stuff if (IsKeyPressedFix(KEY_F)) MoveCursorRightWord(ta); if (IsKeyPressedFix(KEY_B)) MoveCursorLeftWord(ta); } - void HandleKeyboard(TextArea *ta) { if (IsKeyDown(KEY_LEFT_CONTROL) || IsKeyDown(KEY_RIGHT_CONTROL)) { HandleControlComands(ta); diff --git a/src/ui_elements/UI.h b/src/ui_elements/UI.h index bab154c..06d127f 100644 --- a/src/ui_elements/UI.h +++ b/src/ui_elements/UI.h @@ -7,7 +7,9 @@ static const float SCROLL_SENC = 10; static const float TAB_WIDTH = 4; +// Sure about this value static const int MIN_FONT_SIZE = 10; +// Unsure about this value static const int MAX_FONT_SIZE = 100; void DrawRecBordered(Rectangle rec, Color bg, Color border_color, int border_width); @@ -22,6 +24,7 @@ static const size_t DEFAULT_TEXT_NODE_SIZE = 256; typedef struct { void *PrevNode; void *NextNode; + char *text; size_t len; size_t cap; |
