Main Page | Class Hierarchy | Alphabetical List | Data Structures | Directories | File List | Data Fields

ScrollingList Class Reference

Collaboration diagram for ScrollingList:

Collaboration graph
[legend]

Detailed Description

Author:
Gabor Torok


Public Types

enum  { EVENT_DRAG = 0, EVENT_ACTION }

Public Member Functions

 ScrollingList (int x, int y, int w, int h, GLuint highlight, DragAndDropHandler *dragAndDropHandler=NULL, int lineHeight=15)
int getLineCount ()
void setLines (int count, const char *s[], const Color *colors=NULL, const GLuint *icon=NULL)
const char * getLine (int index)
int getSelectedLine ()
void setSelectedLine (int n)
void drawWidget (Widget *parent)
int getEventType ()
bool handleEvent (Widget *parent, SDL_Event *event, int x, int y)
 Return true, if the event activated this widget.
void removeEffects (Widget *parent)
virtual bool hasSound ()
bool canGetFocus ()
void setCanGetFocus (bool b)

Data Fields

bool debug

Protected Attributes

int count
const char ** list
const Color * colors
const GLuint * icons
int value
int scrollerWidth
int scrollerHeight
int listHeight
float alpha
float alphaInc
GLint lastTick
bool inside
int scrollerY
bool dragging
int dragX
int dragY
int selectedLine
DragAndDropHandlerdragAndDropHandler
bool innerDrag
int innerDragX
int innerDragY
bool highlightBorders
GLuint highlight
bool canGetFocusVar
int lineHeight
int eventType


Constructor & Destructor Documentation

ScrollingList::ScrollingList int  x,
int  y,
int  w,
int  h,
GLuint  highlight,
DragAndDropHandler dragAndDropHandler = NULL,
int  lineHeight = 15
 

Author:
Gabor Torok


Member Function Documentation

bool ScrollingList::handleEvent Widget *  parent,
SDL_Event *  event,
int  x,
int  y
 

Return true, if the event activated this widget.

(For example, button push, etc.) Another way to think about it is that if true, the widget fires an "activated" event to the outside world.


The documentation for this class was generated from the following files:
Generated on Thu Jun 16 21:50:54 2005 for scourge by  doxygen 1.4.0