#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 | |
| CursorPtr OpenGUI::GenericCursor::GenericCursorFactory | ( | ) | [static] |
factory callback for creating GenericCursor
| ObjectAccessorList * OpenGUI::GenericCursor::getAccessors | ( | ) | [virtual] |
| ImageryPtr OpenGUI::GenericCursor::getImagery | ( | ) |
returns a pointer to the imagery of this cursor
| const IVector2 & OpenGUI::GenericCursor::getOffset | ( | ) |
returns the pointer location offset within the imagery for this cursor
| void OpenGUI::GenericCursor::onDraw | ( | Object * | sender, | |
| DrawCursor_EventArgs & | evtArgs | |||
| ) | [protected, virtual] |
| void OpenGUI::GenericCursor::setImagery | ( | ImageryPtr | imagery | ) |
sets the imagery for this cursor
| void OpenGUI::GenericCursor::setOffset | ( | const IVector2 & | offset | ) |
sets the pointer location offset within the imagery for this cursor