SimpleGUI
|
The Frame class manage all visual objects: Labels, InputText, Buttons, Lists, so on. One frame works like a window, and send all actions to each object after use them. More...
#include <simplegui.h>
Public Member Functions | |
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 () |
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 Frame class manage all visual objects: Labels, InputText, Buttons, Lists, so on. One frame works like a window, and send all actions to each object after use them.