Your Donations help keep my Software going!
I'm on a short vacation and will be back soon.
I'm selling some Homebrew Game Dev Devices. Check it out.
Table of Contents
Alert
Description
tAlert.h Provides routines to alert the end user of a message or request a yes/no response from the end user. A formatting string must produce no more than 1024 characters. Both methods will block, waiting for user input.
Methods
static void tAlert::alert( const char *fmt, ... );
| parameter | type | description |
|---|---|---|
| fmt | const char * | printf-style format control |
| … | various | optional arguments |
static bool tAlert::confirm( const char *fmt, ... );
| parameter | type | description |
|---|---|---|
| fmt | const char * | printf-style format control |
| … | various | optional arguments |
| return type | description |
|---|---|
| bool | returns true if the user selects yes, false otherwise |
Notes
- This class is singleton class that provides a global instance and starts automatically.
- This class requires AlertPeer to function properly.
- A formatting string must produce no more than 1024 characters.
- Method alert blocks until user chooses to continue; method confirm blocks until user chooses yes or no.