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

Event Class Reference

#include <event.h>

Inheritance diagram for Event:

Inheritance graph
[legend]
Collaboration diagram for Event:

Collaboration graph
[legend]

Detailed Description

Event is the base class for all the events within cZUI.


Public Member Functions

 Event (Event *)
 Event (const char *)
 Event (Camera *, const char *)
void assign_context (Camera *)
void assign_mousepos (int, int)
void assign_scenepos (double, double)
void set_handler (BaseSceneNode *hb)
Cameraget_context (void)
const char * get_msg (void)
BaseSceneNodeget_handler (void)
int get_x (void)
int get_y (void)
double get_scenex (void)
double get_sceney (void)
virtual bool is_type (const char *)
 Use this as follows: is_type( MouseMoveEvent::type ).

virtual ~Event ()

Protected Attributes

Cameracontext
 For input events, context is the camera to handle the event.

const char * msg
 msg is the kind of event, never to be used directly. See is_type().

int x
 X and Y screen position of the mouse at event time.

int y
 X and Y screen position of the mouse at event time.

double scenex
 Translated scene coordinates.

double sceney
 Translated scene coordinates.

BaseSceneNodehandled_by
 handled_by is set by the node that accepted the event.


Constructor & Destructor Documentation

Event::Event Event  ) 
 

Event::Event const char *   ) 
 

Event::Event Camera ,
const char * 
 

virtual Event::~Event  )  [inline, virtual]
 


Member Function Documentation

void Event::assign_context Camera  ) 
 

void Event::assign_mousepos int  ,
int 
 

void Event::assign_scenepos double  ,
double 
 

void Event::set_handler BaseSceneNode hb  )  [inline]
 

Camera * Event::get_context void   ) 
 

const char * Event::get_msg void   ) 
 

BaseSceneNode* Event::get_handler void   )  [inline]
 

int Event::get_x void   ) 
 

int Event::get_y void   ) 
 

double Event::get_scenex void   ) 
 

double Event::get_sceney void   ) 
 

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

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

Reimplemented in CameraEvent, CameraMovementEvent, MouseEvent, RepaintEvent, SceneChangedEvent, and WidgetEvent.


Field Documentation

Camera* Event::context [protected]
 

For input events, context is the camera to handle the event.

const char* Event::msg [protected]
 

msg is the kind of event, never to be used directly. See is_type().

int Event::x [protected]
 

X and Y screen position of the mouse at event time.

int Event::y [protected]
 

X and Y screen position of the mouse at event time.

double Event::scenex [protected]
 

Translated scene coordinates.

double Event::sceney [protected]
 

Translated scene coordinates.

BaseSceneNode* Event::handled_by [protected]
 

handled_by is set by the node that accepted the event.


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