iPXE
|
Editable text box widget. More...
Go to the source code of this file.
Macros | |
#define | EDITBOX_MIN_CHARS 3 |
Functions | |
FILE_LICENCE (GPL2_OR_LATER_OR_UBDL) | |
static void | draw_editbox (struct widget *widget) |
Draw text box widget. More... | |
static int | edit_editbox (struct widget *widget, int key) |
Edit text box widget. More... | |
Variables | |
struct widget_operations | editbox_operations |
Text box widget operations. More... | |
Editable text box widget.
Definition in file editbox.c.
FILE_LICENCE | ( | GPL2_OR_LATER_OR_UBDL | ) |
|
static |
Draw text box widget.
widget | Text widget |
Definition at line 44 of file editbox.c.
References box(), widget::col, color_set, container_of, CPAIR_EDIT, CPAIR_NORMAL, EDITBOX_MIN_CHARS, first, widget::flags, len, memcpy(), memset(), move(), mvprintw, NULL, widget::row, strlen(), WIDGET_SECRET, and widget::width.
|
static |
Edit text box widget.
widget | Text widget |
key | Key pressed by user |
key | Key returned to application, or zero |
Definition at line 93 of file editbox.c.
References box(), container_of, edit_string(), and key.
struct widget_operations editbox_operations |
Text box widget operations.
Definition at line 100 of file editbox.c.
Referenced by init_editbox().