MouseCursor Class Reference

#include <MouseCursor.h>

Inheritance diagram for MouseCursor:

Object2d MouseAdapterMove ViewObject MouseAdapterLeft Object MouseListener Object

List of all members.

Public Member Functions

 MouseCursor ()
 Standard Constructor.
 MouseCursor (const string &filename, const Vector &hotSpot, const GLfloat &size)
 Constructor.
 ~MouseCursor ()
 Destructor.
void renderGl ()
 Draws the cursor in OpenGL.
void selectGl ()
 Not needed for the cursor.
void move (const GLuint &id, const GLuint &x, const GLuint &y, const GLint &xRel, const GLint &yRel)
 Ability to react on mouse events.
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.

Private Attributes

Texture standard
 Stores the texture for the standard mouse cursor.
Vector hotSpot
 The textures's hot spot.
GLfloat size
 Cursor size.
Color color
 Cursor color.


Constructor & Destructor Documentation

MouseCursor::MouseCursor (  ) 

Standard Constructor.

Boring cursor, does nothing reasonable...

MouseCursor::MouseCursor ( const string &  filename,
const Vector hotSpot,
const GLfloat &  size 
)

Constructor.

Creates a 2d-Sprite that will be used as mouse pointer

Parameters:
filename 
hotspot 
size The size of the cursor in permile of the screen height

MouseCursor::~MouseCursor (  ) 

Destructor.


Member Function Documentation

void MouseCursor::renderGl (  )  [virtual]

Draws the cursor in OpenGL.

Implements Object2d.

void MouseCursor::selectGl (  )  [virtual]

Not needed for the cursor.

Not needed for a cursor

Implements Object2d.

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

Ability to react on mouse events.

Enables mouse cursor to follow the users mouse movement

Implements MouseAdapterMove.

string MouseCursor::toString (  )  const [virtual]

Returns a textual representation.

Returns:
a string descriping the run-time object

Reimplemented from MouseAdapterMove.

string MouseCursor::className (  )  const [virtual]

Returns the class name of the object.

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

Reimplemented from MouseAdapterMove.

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

Returns the class id of the object.

Returns:
an id of the object's class

Reimplemented from MouseAdapterMove.


Member Data Documentation

Stores the texture for the standard mouse cursor.

The textures's hot spot.

GLfloat MouseCursor::size [private]

Cursor size.

Cursor color.


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