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

Canvas Class Reference

Collaboration diagram for Canvas:

Collaboration graph
[legend]

Detailed Description

Author:
Gabor Torok


Public Member Functions

 Canvas (int x, int y, int x2, int y2, WidgetView *view, DragAndDropHandler *dragAndDropHandler=NULL, bool highlightOnMouseOver=false)
WidgetViewgetView ()
void drawWidget (Widget *parent)
void setGlowing (bool b)
bool isGlowing ()
bool handleEvent (Widget *parent, SDL_Event *event, int x, int y)
 Return true, if the event activated this widget.
void removeEffects (Widget *parent)
void resize (int w, int h)
bool canGetFocus ()
virtual bool hasSound ()


Constructor & Destructor Documentation

Canvas::Canvas int  x,
int  y,
int  x2,
int  y2,
WidgetView view,
DragAndDropHandler dragAndDropHandler = NULL,
bool  highlightOnMouseOver = false
 

Author:
Gabor Torok


Member Function Documentation

bool Canvas::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:44 2005 for scourge by  doxygen 1.4.0