|
SimpleGUI
|
The Button class is the prefered object usted to execute actions in common applications. This object is actionated by means of a click with the mouse device. This class can program the two actions inherited of Widget class. More...
#include <simplegui.h>
Public Member Functions | |
| Button (int x, int y, int width, int height=20, const char text[]="") | |
| void | draw () |
| bool | triggerEvent (XEvent &event) |
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) |
| 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 Button class is the prefered object usted to execute actions in common applications. This object is actionated by means of a click with the mouse device. This class can program the two actions inherited of Widget class.
1.8.11