Planeshift
Classes | Public Member Functions | Protected Member Functions | Protected Attributes

pawsMouse Class Reference

The mouse pointer. More...

#include <pawsmouse.h>

List of all members.

Classes

struct  ImgSize

Public Member Functions

void ChangeImage (const char *imageName)
 Change mouse pointer to new image.
void ChangeImage (iPawsImage *drawable)
void Draw ()
psPoint GetDeltas ()
 Get the deltas from the last call to SetPosition.
ImgSize GetImageSize ()
psPoint GetPosition ()
 Get the absolute position.
void Hide (bool h=true)
 pawsMouse ()
void SetPosition (int x, int y)
 Set the absolute screen position for mouse.
void UpdateDragPosition ()
 Updates the position of the dragged widget if any.
void WantCrosshair (bool h=true)
virtual ~pawsMouse ()

Protected Member Functions

void SetOSMouse (iPawsImage *mouseImage)

Protected Attributes

bool basicCursor
bool crosshair
csRef< iPawsImagecrosshairImage
psPoint currentPosition
csRef< iPawsImagecursorImage
psPoint deltas
csRef< iGraphics3D > graphics3D
bool hidden
csRef< iImage > image
csRef< iImageIO > imageLoader
int transparentB
int transparentG
int transparentR
bool useOS
csRef< iVFS > vfs

Detailed Description

The mouse pointer.

Definition at line 41 of file pawsmouse.h.


Constructor & Destructor Documentation

pawsMouse::pawsMouse ( )
virtual pawsMouse::~pawsMouse ( ) [virtual]

Member Function Documentation

void pawsMouse::ChangeImage ( const char *  imageName)

Change mouse pointer to new image.

Parameters:
imageNameA resource name to use as the image.
void pawsMouse::ChangeImage ( iPawsImage drawable)
void pawsMouse::Draw ( )
psPoint pawsMouse::GetDeltas ( ) [inline]

Get the deltas from the last call to SetPosition.

Definition at line 61 of file pawsmouse.h.

ImgSize pawsMouse::GetImageSize ( ) [inline]

Definition at line 85 of file pawsmouse.h.

psPoint pawsMouse::GetPosition ( ) [inline]

Get the absolute position.

Definition at line 55 of file pawsmouse.h.

void pawsMouse::Hide ( bool  h = true)
void pawsMouse::SetOSMouse ( iPawsImage mouseImage) [protected]
void pawsMouse::SetPosition ( int  x,
int  y 
)

Set the absolute screen position for mouse.

void pawsMouse::UpdateDragPosition ( )

Updates the position of the dragged widget if any.

void pawsMouse::WantCrosshair ( bool  h = true) [inline]

Definition at line 74 of file pawsmouse.h.


Member Data Documentation

bool pawsMouse::basicCursor [protected]

Definition at line 111 of file pawsmouse.h.

bool pawsMouse::crosshair [protected]

Definition at line 108 of file pawsmouse.h.

Definition at line 107 of file pawsmouse.h.

Definition at line 103 of file pawsmouse.h.

csRef<iPawsImage> pawsMouse::cursorImage [protected]

Definition at line 106 of file pawsmouse.h.

Definition at line 104 of file pawsmouse.h.

csRef<iGraphics3D> pawsMouse::graphics3D [protected]

Definition at line 99 of file pawsmouse.h.

bool pawsMouse::hidden [protected]

Definition at line 108 of file pawsmouse.h.

csRef<iImage> pawsMouse::image [protected]

Definition at line 117 of file pawsmouse.h.

csRef<iImageIO> pawsMouse::imageLoader [protected]

Definition at line 101 of file pawsmouse.h.

Definition at line 115 of file pawsmouse.h.

Definition at line 114 of file pawsmouse.h.

Definition at line 113 of file pawsmouse.h.

bool pawsMouse::useOS [protected]

Definition at line 110 of file pawsmouse.h.

csRef<iVFS> pawsMouse::vfs [protected]

Definition at line 100 of file pawsmouse.h.


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