Main Page | Namespace List | Class Hierarchy | Data Structures | File List | Data Fields | Globals

MouseEvent Class Reference

#include <mouseevent.h>

Inheritance diagram for MouseEvent:

Inheritance graph
[legend]
Collaboration diagram for MouseEvent:

Collaboration graph
[legend]

Detailed Description

MouseEvents wrap the system's mouse events into cZUI events.


Public Member Functions

 MouseEvent (const char *, int x, int y, msbutton b)
 MouseEvent (Camera *, const char *, int x, int y, msbutton b)
void shiftview (int, int)
msbutton get_button (void)
bool is_type (const char *)
 Use this as follows: is_type( MouseMoveEvent::type ).


Static Public Attributes

const char * type = "MouseEvent"

Protected Attributes

msbutton button


Constructor & Destructor Documentation

MouseEvent::MouseEvent const char *  ,
int  x,
int  y,
msbutton  b
 

MouseEvent::MouseEvent Camera ,
const char *  ,
int  x,
int  y,
msbutton  b
 


Member Function Documentation

void MouseEvent::shiftview int  ,
int 
 

shifts the event position based on camera position.

msbutton MouseEvent::get_button void   ) 
 

bool MouseEvent::is_type const char *   )  [virtual]
 

Use this as follows: is_type( MouseMoveEvent::type ).

Reimplemented from Event.


Field Documentation

msbutton MouseEvent::button [protected]
 

Reimplemented in MouseDownEvent, and MouseUpEvent.

const char * MouseEvent::type = "MouseEvent" [static]
 

Reimplemented in MouseClickEvent, MouseDownEvent, MouseUpEvent, MouseMoveEvent, and MouseDragEvent.


The documentation for this class was generated from the following files:
Generated on Wed Jun 23 18:47:35 2004 for cZUI by doxygen 1.3.5