maug
Quick and dirty C mini-augmentation library.
Loading...
Searching...
No Matches
RetroFlat Message API

These flags can be passed to retroflat_message() to indicate the type of message being conveyed. More...

Collaboration diagram for RetroFlat Message API:

Macros

#define RETROFLAT_MSG_FLAG_TYPE_MASK   0x07
 This mask covers all possible icon/type flags.
 
#define RETROFLAT_MSG_FLAG_ERROR   0x01
 This icon/type flag indicates an error. It will try to display messages in an urgent way with a red icon, if possible.
 
#define RETROFLAT_MSG_FLAG_INFO   0x02
 This icon/type flag indicates an informational notice. It will try to display messages in a definite way, with an i or speech bubble icon, if possible.
 
#define RETROFLAT_MSG_FLAG_WARNING   0x04
 This icon/type flag indicates a condition the user should be aware of. It will try to display messages in an urgent way with a yellow icon, if possible.
 

Functions

void retroflat_message (uint8_t flags, const char *title, const char *format,...)
 Display a message in a dialog box and/or on stderr.
 

Detailed Description

These flags can be passed to retroflat_message() to indicate the type of message being conveyed.

Function Documentation

◆ retroflat_message()

void retroflat_message ( uint8_t flags,
const char * title,
const char * format,
... )

Display a message in a dialog box and/or on stderr.

Parameters
titleA string with the title to use for a dialog box.
formatA format string to be passed to vsnprintf().
Todo
This should display a dialog box on every platform if possible.