Public Member Functions | Private Attributes

Pointer Class Reference

#include <Pointer.h>

List of all members.

Public Member Functions

 Pointer (Image *image, int hotspotX=0, int hotspotY=0)
 ~Pointer ()
int getX () const
int getY () const
int getHotspotX () const
int getHotspotY () const
void setHotspot (int x, int y)
void update ()
void setPointerImage (Image *image)
ImagegetPointerImage () const

Private Attributes

ImagemPointerImage
int mMouseX
int mMouseY
int mHotspotX
int mHotspotY

Constructor & Destructor Documentation

Pointer::Pointer ( Image image,
int  hotspotX = 0,
int  hotspotY = 0 
)
Pointer::~Pointer (  ) 

Member Function Documentation

int Pointer::getHotspotX (  )  const [inline]
int Pointer::getHotspotY (  )  const [inline]
Image * Pointer::getPointerImage (  )  const

Returns a pointer to the internally stored Pointer Image.

int Pointer::getX (  )  const [inline]
int Pointer::getY (  )  const [inline]
void Pointer::setHotspot ( int  x,
int  y 
) [inline]
void Pointer::setPointerImage ( Image image  ) 

Sets the internal pointer Image.

Warning:
The pointer to an Image resource is owned by the Pointer object. When Pointer goes out of scope the pointer to Image will be invalidated.
void Pointer::update (  ) 

Member Data Documentation

int Pointer::mHotspotX [private]
int Pointer::mHotspotY [private]
int Pointer::mMouseX [private]
int Pointer::mMouseY [private]

The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines