SimpleGUI
Public Member Functions | Static Public Member Functions | List of all members
MessageBox Class Reference

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>

Inheritance diagram for MessageBox:
Frame Widget

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 ()
 
Widgetadd (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
 

Detailed Description

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.


The documentation for this class was generated from the following file: