aboutsummaryrefslogtreecommitdiff
path: root/teensy/teensy_ui.h
diff options
context:
space:
mode:
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);