#include <OpenGUI_GenericCursor.h>
Inheritance diagram for OpenGUI::GenericCursor:

Static Imagery based cursors are one of the most common cursor types across all GUIs, so this implementation is built directly into OpenGUI for production use, as well as being an example of how to make your own cursors.
Public Member Functions | |
| void | setImagery (ImageryPtr imagery) |
| sets the imagery for this cursor | |
| ImageryPtr | getImagery () |
| returns a pointer to the imagery of this cursor | |
| void | setOffset (const IVector2 &offset) |
| sets the pointer location offset within the imagery for this cursor | |
| const IVector2 & | getOffset () |
| returns the pointer location offset within the imagery for this cursor | |
| virtual ObjectAccessorList * | getAccessors () |
| returns this object's ObjectAccessorList head | |
Static Public Member Functions | |
| static CursorPtr | GenericCursorFactory () |
| factory callback for creating GenericCursor | |
Protected Member Functions | |
| virtual void | onDraw (Object *sender, DrawCursor_EventArgs &evtArgs) |
| draws this cursor | |
|
|
factory callback for creating GenericCursor
|
|
|
returns this object's ObjectAccessorList head
Reimplemented from OpenGUI::Cursor. |
|
|
returns a pointer to the imagery of this cursor
|
|
|
returns the pointer location offset within the imagery for this cursor
|
|
||||||||||||
|
draws this cursor
Reimplemented from OpenGUI::Cursor. |
|
|
sets the imagery for this cursor
|
|
|
sets the pointer location offset within the imagery for this cursor
|