Faith::MouseEvent Class Reference

Can contain many mouse input events. More...

#include <faith/event.h>

Inheritance diagram for Faith::MouseEvent:

Faith::Event List of all members.

Public Member Functions

 MouseEvent (EventType t, const Point &at, int button, int state)
Point pos () const
int button () const
int state () const

Detailed Description

Can contain many mouse input events.

Can represent a EventMouseButtonPress, EventMouseButtonRelease, and EventMouseMove

Constructor & Destructor Documentation

Faith::MouseEvent::MouseEvent ( EventType  t,
const Point at,
int  button,
int  state 
) [inline]

Constructs the object

Member Function Documentation

int Faith::MouseEvent::button (  )  const [inline]

why was this event caused? A member of Event::ButtonState, always zero for MouseMove events

Point Faith::MouseEvent::pos (  )  const [inline]

the location of the mouse press

int Faith::MouseEvent::state (  )  const [inline]

what keys were pressed at the time? Faith::ButtonState, ORed

The documentation for this class was generated from the following file:
Generated on Fri Sep 1 00:23:08 2006 for Faith by  doxygen 1.4.7