OpenGUI::GenericCursor Class Reference

#include <OpenGUI_GenericCursor.h>

Inheritance diagram for OpenGUI::GenericCursor:

OpenGUI::Cursor OpenGUI::Object List of all members.

Detailed Description

A generic Cursor implementation based on static Imagery.

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 IVector2getOffset ()
 returns the pointer location offset within the imagery for this cursor
virtual ObjectAccessorListgetAccessors ()
 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


Member Function Documentation

CursorPtr OpenGUI::GenericCursor::GenericCursorFactory  )  [static]
 

factory callback for creating GenericCursor

ObjectAccessorList * OpenGUI::GenericCursor::getAccessors  )  [virtual]
 

returns this object's ObjectAccessorList head

Reimplemented from OpenGUI::Cursor.

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]
 

draws this cursor

Reimplemented from OpenGUI::Cursor.

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


The documentation for this class was generated from the following files:
Copyright © 2006 OpenGUI | OpenGUI.SF.net
Generated: Sun Sep 9 02:00:21 2007