iPXE
|
Text widgets. More...
#include <curses.h>
Go to the source code of this file.
Data Structures | |
struct | widget |
A text widget. More... | |
struct | widget_operations |
Text widget operations. More... | |
Enumerations | |
enum | widget_flags { WIDGET_EDITABLE = 0x0001, WIDGET_SECRET = 0x0002 } |
Text widget flags. More... | |
Functions | |
FILE_LICENCE (GPL2_OR_LATER_OR_UBDL) | |
static void | init_widget (struct widget *widget, struct widget_operations *op, unsigned int row, unsigned int col, unsigned int width, unsigned int flags) |
Initialise text widget. More... | |
static void | draw_widget (struct widget *widget) |
Draw text widget. More... | |
static int | edit_widget (struct widget *widget, int key) |
Edit text widget. More... | |
Text widgets.
Definition in file widget.h.
enum widget_flags |
FILE_LICENCE | ( | GPL2_OR_LATER_OR_UBDL | ) |
|
inlinestatic |
Initialise text widget.
widget | Text widget |
op | Text widget operations |
row | Row |
col | Starting column |
width | Width |
Definition at line 69 of file widget.h.
References widget::col, flags, widget::flags, widget::op, op, widget::row, and widget::width.
Referenced by init_editbox(), and init_label().
|
inlinestatic |
Draw text widget.
widget | Text widget |
Definition at line 86 of file widget.h.
References widget_operations::draw, and widget::op.
Referenced by draw_form(), form_loop(), and main_loop().
|
inlinestatic |
Edit text widget.
widget | Text widget |
key | Key pressed by user |
key | Key returned to application, or zero |
This will not update the display: you must call draw_widget() to ensure that any changes to an editable widget are displayed to the user.
Definition at line 103 of file widget.h.
References widget_operations::edit, key, and widget::op.
Referenced by edit_setting(), and form_loop().