Flipper Zero Firmware
Loading...
Searching...
No Matches
text_box.h
Go to the documentation of this file.
1
6#pragma once
7
8#include <gui/view.h>
9
10#ifdef __cplusplus
11extern "C" {
12#endif
13
15typedef struct TextBox TextBox;
16
17typedef enum {
18 TextBoxFontText,
19 TextBoxFontHex,
20} TextBoxFont;
21
22typedef enum {
23 TextBoxFocusStart,
24 TextBoxFocusEnd,
25} TextBoxFocus;
26
32
37void text_box_free(TextBox* text_box);
38
46
51void text_box_reset(TextBox* text_box);
52
58void text_box_set_text(TextBox* text_box, const char* text);
59
65void text_box_set_font(TextBox* text_box, TextBoxFont font);
66
73void text_box_set_focus(TextBox* text_box, TextBoxFocus focus);
74
75#ifdef __cplusplus
76}
77#endif
Definition text_box.c:15
Definition view_i.h:16
TextBox * text_box_alloc(void)
Allocate and initialize text_box.
Definition text_box.c:276
void text_box_free(TextBox *text_box)
Deinitialize and free text_box.
Definition text_box.c:299
void text_box_set_focus(TextBox *text_box, TextBoxFocus focus)
Set TextBox focus.
Definition text_box.c:361
void text_box_reset(TextBox *text_box)
Clean text_box.
Definition text_box.c:319
void text_box_set_font(TextBox *text_box, TextBoxFont font)
Set TextBox font.
Definition text_box.c:355
void text_box_set_text(TextBox *text_box, const char *text)
Set text for text_box.
Definition text_box.c:341
View * text_box_get_view(TextBox *text_box)
Get text_box view.
Definition text_box.c:314
GUI: View API.