GUI: TextBox view module API. More...
#include <gui/view.h>
Go to the source code of this file.
Typedefs | |
typedef struct TextBox | TextBox |
TextBox anonymous structure. | |
Enumerations | |
enum | TextBoxFont { TextBoxFontText , TextBoxFontHex } |
enum | TextBoxFocus { TextBoxFocusStart , TextBoxFocusEnd } |
Functions | |
TextBox * | text_box_alloc (void) |
Allocate and initialize text_box. | |
void | text_box_free (TextBox *text_box) |
Deinitialize and free text_box. | |
View * | text_box_get_view (TextBox *text_box) |
Get text_box view. | |
void | text_box_reset (TextBox *text_box) |
Clean text_box. | |
void | text_box_set_text (TextBox *text_box, const char *text) |
Set text for text_box. | |
void | text_box_set_font (TextBox *text_box, TextBoxFont font) |
Set TextBox font. | |
void | text_box_set_focus (TextBox *text_box, TextBoxFocus focus) |
Set TextBox focus. | |
GUI: TextBox view module API.
TextBox * text_box_alloc | ( | void | ) |
Allocate and initialize text_box.
void text_box_free | ( | TextBox * | text_box | ) |
Deinitialize and free text_box.
text_box | text_box instance |
Get text_box view.
text_box | TextBox instance |
void text_box_reset | ( | TextBox * | text_box | ) |
Clean text_box.
text_box | TextBox instance |
void text_box_set_focus | ( | TextBox * | text_box, |
TextBoxFocus | focus ) |
Set TextBox focus.
text_box | TextBox instance |
focus | TextBoxFocus instance |
void text_box_set_font | ( | TextBox * | text_box, |
TextBoxFont | font ) |
Set TextBox font.
text_box | TextBox instance |
font | TextBoxFont instance |
void text_box_set_text | ( | TextBox * | text_box, |
const char * | text ) |
Set text for text_box.
text_box | TextBox instance |
text | text to set |