SimpleGUI
Public Member Functions | Public Attributes | Static Protected Member Functions | Protected Attributes | List of all members
Widget Class Reference

The Widget class is the base of all classes in the simplegui library, this class has the main visual information like a position, dimensions, presentation and so on. In addition to these properties, this class has two default actions, which can be programmed in the future by a programmer user. More...

#include <simplegui.h>

Inheritance diagram for Widget:
Button Frame Label List TextField FileBrowser MessageBox

Public Member Functions

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

Public Attributes

void(* action )()
 
void(* taggedAction )(char text[])
 

Static Protected Member Functions

static void defaultAction ()
 
static void defaultTaggedAction (char[])
 

Protected Attributes

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 Widget class is the base of all classes in the simplegui library, this class has the main visual information like a position, dimensions, presentation and so on. In addition to these properties, this class has two default actions, which can be programmed in the future by a programmer user.


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