iPXE
Data Fields
widget_operations Struct Reference

Text widget operations. More...

#include <widget.h>

Data Fields

void(* draw )(struct widget *widget)
 Draw widget. More...
 
int(* edit )(struct widget *widget, int key)
 Edit widget. More...
 

Detailed Description

Text widget operations.

Definition at line 38 of file widget.h.

Field Documentation

◆ draw

void( * widget_operations::draw) (struct widget *widget)

Draw widget.

Parameters
widgetText widget

Definition at line 44 of file widget.h.

Referenced by draw_widget().

◆ edit

int( * widget_operations::edit) (struct widget *widget, int key)

Edit widget.

Parameters
widgetText widget
keyKey pressed by user
Return values
keyKey returned to application, or zero

This will not update the display: you must call the draw() method to ensure that any changes to an editable widget are displayed to the user.

Definition at line 56 of file widget.h.

Referenced by edit_widget().


The documentation for this struct was generated from the following file: