UI_Lib  a1366e08a59cc549a65fa26081e6409aa12f26d5
This is a user interface library for graphical LCDs. It offers many different controls and indicators that can be nested depending on the element types.
Loading...
Searching...
No Matches
MessageDialog.h File Reference

Containing a class for a message dialog with optional Ok and Cancel buttons. More...

Go to the source code of this file.

Classes

class  MessageDialog
 Class for a message dialog with optional Ok and Cancel buttons. More...
 

Macros

#define DEFAULT_MAX_MSG_STRING_LENGTH   55
 Default string length for the message dialog text.
 
#define DEFAULT_MSG_BUTTON_HEIGHT   20
 Default height for the message box buttons.
 
#define MSG_INFO_COLOR   RGB565(0x00, 0x66, 0xCC)
 Color for the info icon in the message box.
 
#define MSG_WARNING_COLOR   RGB565(0xFF, 0xFF, 0x00)
 Color for the warning icon in the message box.
 
#define MSG_ERR_COLOR   RGB565(0xFF, 0x00, 0x00)
 Color for the error icon in the message box.
 

Typedefs

typedef enum MessageSeverity MessageSeverity_t
 Available message dialog severity types.
 
typedef enum MessageButtons MessageButtons_t
 Available message dialog buttons.
 

Enumerations

enum  MessageSeverity { MSG_INFO , MSG_WARNING , MSG_ERROR }
 Available message dialog severity types. More...
 
enum  MessageButtons { MSG_BTN_NONE , MSG_BTN_OK , MSG_BTN_OK_CANCEL }
 Available message dialog buttons. More...
 

Detailed Description

Containing a class for a message dialog with optional Ok and Cancel buttons.

Enumeration Type Documentation

◆ MessageButtons

Available message dialog buttons.

Enumerator
MSG_BTN_NONE 

Dialog without any buttons.

MSG_BTN_OK 

Dialog with one OK button.

MSG_BTN_OK_CANCEL 

Dialog with an OK and CANCEL button.

◆ MessageSeverity

Available message dialog severity types.

Enumerator
MSG_INFO 

Message is an information.

MSG_WARNING 

Message is a warning.

MSG_ERROR 

Message is an error.