Google

Main Page   Class Hierarchy   Compound List   File List   Compound Members  

csMouse Class Reference

This class handles mouse pointer and generates mouse events.<. More...

#include <csmouse.h>

List of all members.

Public Methods

 csMouse (csApp *iApp)
 ~csMouse ()
bool HandleEvent (iEvent &Event)
 Handle a event and return true if processed.

void Move (int x, int y)
 Set mouse cursor position.

void GetPosition (int &x, int &y)
void Show ()
 Increment mouse pointer visibility counter. More...

void Hide ()
 Decrement mouse visibility counter.

bool SetCursor (csMouseCursorID ID)
 Set cursor by ID number; returns false if no cursor with this ID found.

void Setup ()
 Called by csApp when textures has been loaded.

void SetVirtualPosition (int x, int y)
 Set "virtual" mouse position, i.e. show cursor at a different location.


Friends

class  csMousePointer
class  csApp
class  csGraphicsPipeline


Detailed Description

This class handles mouse pointer and generates mouse events.<.

p> Usually there is only one object of this class in each csApp object.


Member Function Documentation

void csMouse::Show ( ) [inline]
 

Increment mouse pointer visibility counter.

When counter == 0, mouse is visible.


The documentation for this class was generated from the following file:
Generated for Crystal Space by doxygen 1.2.5 written by Dimitri van Heesch, ©1997-2000