mirror of
https://github.com/ipxe/ipxe
synced 2025-12-24 15:23:42 +03:00
Don't automatically redraw the edit box; this allows better inheritance.
This commit is contained in:
@@ -30,6 +30,20 @@ extern void init_editbox ( struct edit_box *box, char *buf, size_t len,
|
||||
WINDOW *win, unsigned int row, unsigned int col,
|
||||
unsigned int width );
|
||||
extern void draw_editbox ( struct edit_box *box );
|
||||
extern int edit_editbox ( struct edit_box *box, int key );
|
||||
|
||||
/**
|
||||
* Edit text box widget
|
||||
*
|
||||
* @v box Editable text box widget
|
||||
* @v key Key pressed by user
|
||||
* @ret key Key returned to application, or zero
|
||||
*
|
||||
* You must call draw_editbox() to update the display after calling
|
||||
* edit_editbox().
|
||||
*
|
||||
*/
|
||||
static inline int edit_editbox ( struct edit_box *box, int key ) {
|
||||
return edit_string ( &box->string, key );
|
||||
}
|
||||
|
||||
#endif /* _GPXE_EDITBOX_H */
|
||||
|
||||
Reference in New Issue
Block a user