Buttons | |
Confirmation dialog box buttons | |
#define | DIALOG_CONFIRM_YES 0x01 |
'YES' button | |
#define | DIALOG_CONFIRM_NO 0x02 |
'NO' button | |
#define | DIALOG_CONFIRM_CANCEL 0x04 |
'CANCEL' button | |
Enumerations | |
enum | dialog_confirm_mode_e { DIALOG_CONFIRM_FULL_SCREEN } |
Style of confirmation dialog box. More... | |
Functions | |
lcdgraph_result_e | DIALOG_CONFIRM_Init (dialog_confirm_mode_e mode, unsigned char buttons, unsigned char options, const rom_type char *user_string) |
Draws confirmation dialog box. | |
unsigned char | DIALOG_CONFIRM_RegisterEvent (lcdgraph_dialog_event_e event) |
Register event. |
lcdgraph_result_e DIALOG_CONFIRM_Init | ( | dialog_confirm_mode_e | mode, | |
unsigned char | buttons, | |||
unsigned char | options, | |||
const rom_type char * | user_string | |||
) |
Draws confirmation dialog box.
Draws prepared confirmation dialog box. It uses fixed font and fixed layout. The buttons will be drawn in following order: YES, NO, CANCEL...
mode | Style of the confirmation dialog | |
buttons | Logical sum of buttons to be displayed | |
options | Logical sum of options | |
user_string | Pointer to a string to be displyed as a title of the dialog (rom string) |
LCDGRAPH_OK | if all is ok | |
LCDGRAPH_PARAM_FAIL | if title is NULL |
unsigned char DIALOG_CONFIRM_RegisterEvent | ( | lcdgraph_dialog_event_e | event | ) |
Register event.
Register event such as key pressed. Function performs action right for a key
event | type of event to handle |
Returns | current button (if DIALOG_KEY_ENTER or ESC was pressed) |