aboutsummaryrefslogtreecommitdiff
path: root/teensy/teensy_ui.h
diff options
context:
space:
mode:
authoriamcheeseman <[email protected]>2026-05-23 10:55:01 -0400
committeriamcheeseman <[email protected]>2026-05-23 10:55:01 -0400
commitc2ea095659dea04663b83fe5313173f209c9bb0b (patch)
tree9e9d79902a442bdf1bb2ef6b38507217574b673e /teensy/teensy_ui.h
parent5d36dcd67478cdb235f39d2aecb3270aba954001 (diff)
tyui text input boxes
Diffstat (limited to 'teensy/teensy_ui.h')
-rw-r--r--teensy/teensy_ui.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/teensy/teensy_ui.h b/teensy/teensy_ui.h
index 1e97376..5ceda30 100644
--- a/teensy/teensy_ui.h
+++ b/teensy/teensy_ui.h
@@ -68,6 +68,11 @@ typedef struct {
uint32_t flags;
} tyui_Window_Conf;
+typedef struct {
+ char *chars;
+ int max_len;
+} tyui_Text_Input;
+
void tyui_init(const ty_Font *font);
void tyui_deinit(void);
@@ -96,6 +101,7 @@ void tyui_slider_ex(
bool show_value,
tyui_Align value_align
);
+void tyui_text_input(tyui_Text_Input *input);
// Draws all accumulated draw commands and initializes the next frame.
void tyui_draw(void);