Planeshift
|
The mouse pointer. More...
#include <pawsmouse.h>
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< iPawsImage > | crosshairImage |
psPoint | currentPosition |
csRef< iPawsImage > | cursorImage |
psPoint | deltas |
csRef< iGraphics3D > | graphics3D |
bool | hidden |
csRef< iImage > | image |
csRef< iImageIO > | imageLoader |
int | transparentB |
int | transparentG |
int | transparentR |
bool | useOS |
csRef< iVFS > | vfs |
The mouse pointer.
Definition at line 41 of file pawsmouse.h.
pawsMouse::pawsMouse | ( | ) |
virtual pawsMouse::~pawsMouse | ( | ) | [virtual] |
void pawsMouse::ChangeImage | ( | const char * | imageName | ) |
Change mouse pointer to new image.
imageName | A 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::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.
bool pawsMouse::basicCursor [protected] |
Definition at line 111 of file pawsmouse.h.
bool pawsMouse::crosshair [protected] |
Definition at line 108 of file pawsmouse.h.
csRef<iPawsImage> pawsMouse::crosshairImage [protected] |
Definition at line 107 of file pawsmouse.h.
psPoint pawsMouse::currentPosition [protected] |
Definition at line 103 of file pawsmouse.h.
csRef<iPawsImage> pawsMouse::cursorImage [protected] |
Definition at line 106 of file pawsmouse.h.
psPoint pawsMouse::deltas [protected] |
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.
int pawsMouse::transparentB [protected] |
Definition at line 115 of file pawsmouse.h.
int pawsMouse::transparentG [protected] |
Definition at line 114 of file pawsmouse.h.
int pawsMouse::transparentR [protected] |
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.