Medical Imaging Interaction Toolkit
2024.06.99-60d9b802
Medical Imaging Interaction Toolkit
|
Allows to override the application's cursor. More...
#include <mitkApplicationCursor.h>
Public Member Functions | |
void | PushCursor (const char *XPM[], int hotspotX=-1, int hotspotY=-1) |
Change the current application cursor. More... | |
void | PushCursor (std::istream &, int hotspotX=-1, int hotspotY=-1) |
Change the current application cursor. More... | |
void | PopCursor () |
Restore the previous cursor. More... | |
const Point2I | GetCursorPosition () |
void | SetCursorPosition (const Point2I &) |
Set absolute mouse position on screen. More... | |
Static Public Member Functions | |
static ApplicationCursor * | GetInstance () |
This class is a singleton. More... | |
static void | RegisterImplementation (ApplicationCursorImplementation *implementation) |
To be called by a toolkit specific ApplicationCursorImplementation. More... | |
Protected Member Functions | |
ApplicationCursor () | |
Purposely hidden - singleton. More... | |
Allows to override the application's cursor.
Base class for classes that allow to override the applications cursor with context dependent cursors. Accepts cursors in the XPM format.
The behaviour is stack-like. You can push your cursor on top of the stack and later pop it to reset the cursor to its former state. This is mimicking Qt's Application::setOverrideCuror() behaviour, but should be ok for most cases where you want to switch a cursor.
Definition at line 61 of file mitkApplicationCursor.h.
|
protected |
Purposely hidden - singleton.
const Point2I mitk::ApplicationCursor::GetCursorPosition | ( | ) |
Get absolute mouse position on screen
|
static |
This class is a singleton.
void mitk::ApplicationCursor::PopCursor | ( | ) |
Restore the previous cursor.
void mitk::ApplicationCursor::PushCursor | ( | const char * | XPM[], |
int | hotspotX = -1 , |
||
int | hotspotY = -1 |
||
) |
Change the current application cursor.
void mitk::ApplicationCursor::PushCursor | ( | std::istream & | , |
int | hotspotX = -1 , |
||
int | hotspotY = -1 |
||
) |
Change the current application cursor.
|
static |
To be called by a toolkit specific ApplicationCursorImplementation.
void mitk::ApplicationCursor::SetCursorPosition | ( | const Point2I & | ) |
Set absolute mouse position on screen.