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) | |
void | init_editbox (struct edit_box *box, char *buf, size_t len, WINDOW *win, unsigned int row, unsigned int col, unsigned int width, unsigned int flags) |
Initialise text box widget. More... | |
void | draw_editbox (struct edit_box *box) |
Draw text box widget. More... | |
Editable text box widget.
Definition in file editbox.c.
FILE_LICENCE | ( | GPL2_OR_LATER_OR_UBDL | ) |
void init_editbox | ( | struct edit_box * | box, |
char * | buf, | ||
size_t | len, | ||
WINDOW * | win, | ||
unsigned int | row, | ||
unsigned int | col, | ||
unsigned int | width, | ||
unsigned int | flags | ||
) |
Initialise text box widget.
box | Editable text box widget |
buf | Text buffer |
len | Size of text buffer |
win | Containing window |
row | Row |
col | Starting column |
width | Width |
flags | Flags |
Definition at line 50 of file editbox.c.
References box(), flags, init_editstring(), len, memset(), stdscr, and strlen().
Referenced by login_ui(), and select_setting_row().
void draw_editbox | ( | struct edit_box * | box | ) |
Draw text box widget.
box | Editable text box widget |
Definition at line 69 of file editbox.c.
References box(), EDITBOX_MIN_CHARS, EDITBOX_STARS, first, len, memcpy(), memset(), mvwprintw, stdscr, strlen(), and wmove().
Referenced by login_ui(), and main_loop().