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

The List class is a containter of textual items, it object can be stored more items as it can to show. The final user can use the scroll mouse to browse more item hiden behind the object space. More...

#include <simplegui.h>

Inheritance diagram for List:
Widget

Public Member Functions

 List (int x, int y, int width=100, int height=100)
 
void draw ()
 
void add (const char item[])
 
bool triggerEvent (XEvent &event)
 
int getCurrentIndex ()
 
int count ()
 
void remove (int i)
 
void removeAll ()
 
void sort ()
 
- 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 ()
 

Public Attributes

void(* selectionChanged )(const char[])
 
void(* doubleClicked )(const char[])
 
- Public Attributes inherited from Widget
void(* action )()
 
void(* taggedAction )(char text[])
 

Additional Inherited Members

- 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 List class is a containter of textual items, it object can be stored more items as it can to show. The final user can use the scroll mouse to browse more item hiden behind the object space.


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