SimpleGUI
|
The MessageBox class is a frame useful to show rapid information, this frame can be customized to retrieve short answers like a: OK, CANCEL, YES or NO. More...
#include <messagebox.h>
Public Member Functions | |
MessageBox (const char title[], const char text[], MessageBoxType type) | |
Public Member Functions inherited from Frame | |
Frame (int x=100, int y=100, int width=600, int height=400, const char title[]="") | |
void | run () |
Widget * | add (Widget *widget) |
void | dispose () |
void | changeFocus (Widget *widget) |
Public Member Functions inherited from Widget | |
Widget (int x, int y, int width, int height, const char text[]) | |
void | updateGraphVariables (Display *display, int screen, Window window, GC gc) |
virtual void | draw () |
virtual bool | triggerEvent (XEvent &) |
bool | mouseInArea (XEvent &event) |
virtual void | setFocused (bool) |
char * | getText () |
void | setText (const char text[]) |
void | show () |
Static Public Member Functions | |
static int | show (const char title[], const char text[], MessageBoxType type=MSG_OK) |
Additional Inherited Members | |
Public Attributes inherited from Widget | |
void(* | action )() |
void(* | taggedAction )(char text[]) |
Static Protected Member Functions inherited from Widget | |
static void | defaultAction () |
static void | defaultTaggedAction (char[]) |
Protected Attributes inherited from Widget | |
int | x |
int | y |
int | width |
int | height |
char | text [256] |
bool | focused |
bool | hidden |
Display * | display |
int | screen |
Window | window |
GC | gc |
The MessageBox class is a frame useful to show rapid information, this frame can be customized to retrieve short answers like a: OK, CANCEL, YES or NO.