Om
1.0.0
A universal framework for multimedia simulation
|
A class that represents a mouse cursor. More...
#include <omGUICursor.h>
Public Types | |
enum | Type { UNDEFINED, ARROW, I_BEAM, CROSS, HAND_OPEN, HAND_CLOSED, HAND_POINTING, RESIZE_X, RESIZE_Y, NOT_ALLOWED } |
An enum that specifies standard cursor types. More... | |
Public Member Functions | |
Cursor (Type newType) | |
Create a new cursor that has the specified standard cursor type. More... | |
~Cursor () | |
Destroy a cursor and release its internal resources. More... | |
Type | getType () const |
Return an enum that indicates the type of this cursor, or UNDEFINED if it has none. More... | |
virtual void * | getInternalPointer () const |
Return a pointer to this cursor's platform-specific internal representation. More... | |
Public Member Functions inherited from om::gui::objects::GUIObject | |
virtual | ~GUIObject () |
Destroy a GUI element and release all resources associated with it. More... | |
Static Public Member Functions | |
static const Cursor * | get () |
Return a pointer to the current cursor. More... | |
static Bool | push (const Cursor *cursor) |
Make the specified cursor the current cursor on top of the cursor stack. More... | |
static Bool | push (Type type) |
Make the specified standard cursor the current cursor on top of the cursor stack. More... | |
static Bool | pop () |
Remove the previous cursor from the cursor stack, restoring the cursor beneath it. More... | |
static Bool | getIsVisible () |
Return whether or not the current global system cursor is visible. More... | |
static Bool | setIsVisible (Bool newIsVisible) |
Set whether or not the current global system cursor is visible. More... | |
A class that represents a mouse cursor.
An enum that specifies standard cursor types.
om::gui::objects::Cursor::Cursor | ( | Type | newType | ) |
Create a new cursor that has the specified standard cursor type.
om::gui::objects::Cursor::~Cursor | ( | ) |
Destroy a cursor and release its internal resources.
|
inline |
Return an enum that indicates the type of this cursor, or UNDEFINED if it has none.
|
virtual |
Return a pointer to this cursor's platform-specific internal representation.
On Mac OS X, this method returns a pointer to a NSCursor object.
On Windows, this method returns an HCURSOR indicating a handle to the cursor.
Implements om::gui::objects::GUIObject.
|
static |
Return a pointer to the current cursor.
Make the specified cursor the current cursor on top of the cursor stack.
The method returns whether or not the operation was successful.
Make the specified standard cursor the current cursor on top of the cursor stack.
The method returns whether or not the operation was successful.
|
static |
Remove the previous cursor from the cursor stack, restoring the cursor beneath it.
The method returns whether or not the operation was successful.
|
static |
Return whether or not the current global system cursor is visible.
Set whether or not the current global system cursor is visible.
This method attempts to set the global system cursor to be either visible or hidden based on the specified boolean value. If the visibility change operation is successful, TRUE is returned. Otherwise, false is returned and no visiblity is changed.