MouseListener Class Reference

Interface for all objects that want to react on the engine's mouse object. More...

#include <MouseListener.h>

Inheritance diagram for MouseListener:

Object MouseAdapterLeft OrbitCamera Button MouseAdapterMove IdPicker MouseCursor

List of all members.

Public Member Functions

 MouseListener ()
 ~MouseListener ()
virtual void pressLeft (const GLuint &id, const GLuint &x, const GLuint &y, const GLint &xRel, const GLint &yRel)=0
virtual void pressRight (const GLuint &id, const GLuint &x, const GLuint &y, const GLint &xRel, const GLint &yRel)=0
virtual void pressCenter (const GLuint &id, const GLuint &x, const GLuint &y, const GLint &xRel, const GLint &yRel)=0
virtual void pressWheelUp (const GLuint &id, const GLuint &x, const GLuint &y, const GLint &xRel, const GLint &yRel)=0
virtual void pressWheelDown (const GLuint &id, const GLuint &x, const GLuint &y, const GLint &xRel, const GLint &yRel)=0
virtual void releaseLeft (const GLuint &id, const GLuint &x, const GLuint &y, const GLint &xRel, const GLint &yRel)=0
virtual void releaseRight (const GLuint &id, const GLuint &x, const GLuint &y, const GLint &xRel, const GLint &yRel)=0
virtual void releaseCenter (const GLuint &id, const GLuint &x, const GLuint &y, const GLint &xRel, const GLint &yRel)=0
virtual void releaseWheelUp (const GLuint &id, const GLuint &x, const GLuint &y, const GLint &xRel, const GLint &yRel)=0
virtual void releaseWheelDown (const GLuint &id, const GLuint &x, const GLuint &y, const GLint &xRel, const GLint &yRel)=0
virtual void move (const GLuint &id, const GLuint &x, const GLuint &y, const GLint &xRel, const GLint &yRel)=0
virtual string toString () const
 Returns a textual representation.
virtual string className () const
 Returns the class name of the object.
virtual enum classId classId () const
 Returns the class id of the object.


Detailed Description

Interface for all objects that want to react on the engine's mouse object.

Object oriented alternative to working with the mouse related events pumped by SDL.


Constructor & Destructor Documentation

MouseListener::MouseListener (  ) 

Constructor registers listener at Mouse object

MouseListener::~MouseListener (  ) 

Destructor unregisters listener at Mouse object


Member Function Documentation

virtual void MouseListener::pressLeft ( const GLuint &  id,
const GLuint &  x,
const GLuint &  y,
const GLint &  xRel,
const GLint &  yRel 
) [pure virtual]

virtual void MouseListener::pressRight ( const GLuint &  id,
const GLuint &  x,
const GLuint &  y,
const GLint &  xRel,
const GLint &  yRel 
) [pure virtual]

Implemented in MouseAdapterLeft, and OrbitCamera.

virtual void MouseListener::pressCenter ( const GLuint &  id,
const GLuint &  x,
const GLuint &  y,
const GLint &  xRel,
const GLint &  yRel 
) [pure virtual]

Implemented in MouseAdapterLeft, and OrbitCamera.

virtual void MouseListener::pressWheelUp ( const GLuint &  id,
const GLuint &  x,
const GLuint &  y,
const GLint &  xRel,
const GLint &  yRel 
) [pure virtual]

Implemented in MouseAdapterLeft, and OrbitCamera.

virtual void MouseListener::pressWheelDown ( const GLuint &  id,
const GLuint &  x,
const GLuint &  y,
const GLint &  xRel,
const GLint &  yRel 
) [pure virtual]

Implemented in MouseAdapterLeft, and OrbitCamera.

virtual void MouseListener::releaseLeft ( const GLuint &  id,
const GLuint &  x,
const GLuint &  y,
const GLint &  xRel,
const GLint &  yRel 
) [pure virtual]

virtual void MouseListener::releaseRight ( const GLuint &  id,
const GLuint &  x,
const GLuint &  y,
const GLint &  xRel,
const GLint &  yRel 
) [pure virtual]

Implemented in MouseAdapterLeft, and OrbitCamera.

virtual void MouseListener::releaseCenter ( const GLuint &  id,
const GLuint &  x,
const GLuint &  y,
const GLint &  xRel,
const GLint &  yRel 
) [pure virtual]

Implemented in MouseAdapterLeft, and OrbitCamera.

virtual void MouseListener::releaseWheelUp ( const GLuint &  id,
const GLuint &  x,
const GLuint &  y,
const GLint &  xRel,
const GLint &  yRel 
) [pure virtual]

Implemented in MouseAdapterLeft, and OrbitCamera.

virtual void MouseListener::releaseWheelDown ( const GLuint &  id,
const GLuint &  x,
const GLuint &  y,
const GLint &  xRel,
const GLint &  yRel 
) [pure virtual]

Implemented in MouseAdapterLeft, and OrbitCamera.

virtual void MouseListener::move ( const GLuint &  id,
const GLuint &  x,
const GLuint &  y,
const GLint &  xRel,
const GLint &  yRel 
) [pure virtual]

string MouseListener::toString (  )  const [virtual]

Returns a textual representation.

Returns:
a string descriping the run-time object

Reimplemented from Object.

Reimplemented in Button, IdPicker, MouseAdapterLeft, MouseAdapterMove, MouseCursor, and OrbitCamera.

string MouseListener::className (  )  const [virtual]

Returns the class name of the object.

Returns:
a string with the name of the object's class

Reimplemented from Object.

Reimplemented in Button, IdPicker, MouseAdapterLeft, MouseAdapterMove, MouseCursor, and OrbitCamera.

enum classId MouseListener::classId (  )  const [virtual]

Returns the class id of the object.

Returns:
an id of the object's class

Reimplemented from Object.

Reimplemented in Button, IdPicker, MouseAdapterLeft, MouseAdapterMove, MouseCursor, and OrbitCamera.


The documentation for this class was generated from the following files:

Generated on Mon Jul 7 13:30:34 2008 for Firefly by  doxygen 1.5.6