iPXE
|
Editable text box widget. More...
Go to the source code of this file.
Data Structures | |
struct | edit_box |
An editable text box widget. More... | |
Enumerations | |
enum | edit_box_flags { EDITBOX_STARS = 0x0001 } |
Editable text box widget flags. More... | |
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) __nonnull |
Draw text box widget. More... | |
static int | edit_editbox (struct edit_box *box, int key) |
Edit text box widget. More... | |
Variables | |
struct edit_box | __attribute__ |
Editable text box widget.
Definition in file editbox.h.
enum edit_box_flags |
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().
|
inlinestatic |
Edit text box widget.
box | Editable text box widget |
key | Key pressed by user |
key | Key returned to application, or zero |
You must call draw_editbox() to update the display after calling edit_editbox().
Definition at line 57 of file editbox.h.
References box(), edit_string(), and key.
Referenced by edit_setting(), and login_ui().
struct edit_box __attribute__ |