SimpleGUI
Public Member Functions | List of all members
TextField Class Reference

The TextField class is the object used to get information since the final user. To activate its functionality, the user must do click over its area. More...

#include <simplegui.h>

Inheritance diagram for TextField:
Widget

Public Member Functions

 TextField (int x, int y, int width, int height=20)
 
void draw ()
 
bool triggerEvent (XEvent &event)
 
void setFocused (bool focused)
 
- 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)
 
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
 

Detailed Description

The TextField class is the object used to get information since the final user. To activate its functionality, the user must do click over its area.


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