Sets another cursor for current application.
More...
List of all members.
Public Member Functions |
| virtual | ~MouseCursorManager () |
Static Public Member Functions |
| static void | setOverride (MouseCursor::Shape, bool replace=false) |
| static void | setOverride (const MouseCursor &, bool replace=false) |
| static void | setOverride (const char *filenm, int hotx=-1, int hoty=-1, bool replace=false) |
| static void | restoreOverride () |
| static MouseCursorManager * | mgr () |
| static void | setMgr (MouseCursorManager *) |
Protected Member Functions |
| virtual void | setOverrideShape (MouseCursor::Shape, bool replace)=0 |
| virtual void | setOverrideCursor (const MouseCursor &, bool replace)=0 |
| virtual void | setOverrideFile (const char *filenm, int hotx, int hoty, bool replace)=0 |
| virtual void | restoreInternal ()=0 |
Static Protected Attributes |
| static MouseCursorManager * | mgr_ |
Detailed Description
Sets another cursor for current application.
example:
Application cursors are stored on an internal stack. setOverride() pushes the cursor onto the stack, and restoreOverride() pops the active cursor off the stack. Every setOverride() must eventually be followed by a corresponding restoreOverride(), otherwise the stack will never be emptied.
If replace is true, the new cursor will replace the last overridecw cursor (the stack keeps its depth). If replace is FALSE, the new cursor is pushed onto the top of the stack.
Constructor & Destructor Documentation
| virtual MouseCursorManager::~MouseCursorManager |
( |
|
) |
[inline, virtual] |
Member Function Documentation
| virtual void MouseCursorManager::restoreInternal |
( |
|
) |
[protected, pure virtual] |
| static void MouseCursorManager::restoreOverride |
( |
|
) |
[static] |
- Note:
- I will not manage manager
| static void MouseCursorManager::setOverride |
( |
const MouseCursor & |
, |
|
|
bool |
replace = false | |
|
) |
| | [static] |
| static void MouseCursorManager::setOverride |
( |
MouseCursor::Shape |
, |
|
|
bool |
replace = false | |
|
) |
| | [static] |
| static void MouseCursorManager::setOverride |
( |
const char * |
filenm, |
|
|
int |
hotx = -1, |
|
|
int |
hoty = -1, |
|
|
bool |
replace = false | |
|
) |
| | [static] |
| virtual void MouseCursorManager::setOverrideCursor |
( |
const MouseCursor & |
, |
|
|
bool |
replace | |
|
) |
| | [protected, pure virtual] |
| virtual void MouseCursorManager::setOverrideFile |
( |
const char * |
filenm, |
|
|
int |
hotx, |
|
|
int |
hoty, |
|
|
bool |
replace | |
|
) |
| | [protected, pure virtual] |
| virtual void MouseCursorManager::setOverrideShape |
( |
MouseCursor::Shape |
, |
|
|
bool |
replace | |
|
) |
| | [protected, pure virtual] |
Member Data Documentation