13 #ifndef mitkApplicationCursor_h
14 #define mitkApplicationCursor_h
40 virtual void PushCursor(
const char *XPM[],
int hotspotX,
int hotspotY) = 0;
49 virtual void PushCursor(std::istream &cursorStream,
int hotspotX,
int hotspotY) = 0;
104 void PushCursor(
const char *XPM[],
int hotspotX = -1,
int hotspotY = -1);
113 void PushCursor(std::istream &cursorStream,
int hotspotX = -1,
int hotspotY = -1);
Abstract interface for toolkit-specific cursor implementations.
virtual void PopCursor()=0
Restore the previous cursor from the stack.
virtual const Point2I GetCursorPosition()=0
Get the absolute mouse position on screen.
virtual ~ApplicationCursorImplementation()
virtual void PushCursor(std::istream &cursorStream, int hotspotX, int hotspotY)=0
Push a new cursor onto the cursor stack (stream format).
virtual void SetCursorPosition(const Point2I &position)=0
Set the absolute mouse position on screen.
virtual void PushCursor(const char *XPM[], int hotspotX, int hotspotY)=0
Push a new cursor onto the cursor stack (XPM format).
Singleton for overriding the application's cursor.
const Point2I GetCursorPosition()
Get the absolute mouse position on screen.
void PushCursor(std::istream &cursorStream, int hotspotX=-1, int hotspotY=-1)
Push a new cursor onto the stack (stream format).
static void RegisterImplementation(ApplicationCursorImplementation *implementation)
Register a toolkit-specific cursor implementation.
void PopCursor()
Pop the most recent cursor from the stack, restoring the previous one.
ApplicationCursor()
Hidden constructor (singleton pattern).
void PushCursor(const char *XPM[], int hotspotX=-1, int hotspotY=-1)
Push a new cursor onto the stack (XPM format).
void SetCursorPosition(const Point2I &position)
Set the absolute mouse position on screen.
static ApplicationCursor * GetInstance()
Get the singleton instance.
Convenience header that includes all MITK numeric types.
Find image slices visible on a given plane.