C4 Engine
C4 Engine API Documentation

class Cursor

Defined in:  C4Interface.h
The Cursor class encapsulates a cursor rendered in a user interface.
Definition

class Cursor : public SlugRenderable, public Transformable

Constructor

Cursor(const char *name, int32 index = 0);

Parameters
name The name of the icon album containing the cursor.
index The icon index within the album to use for the cursor.
Description
The Cursor class encapsulates the icon and transform for a cursor that is rendered in a user interface. Once a cursor has been created, it can be set as the current cursor for the main user interface by calling the InterfaceMgr::SetCursor function.
Base Classes
GraphicsMgr/SlugRenderable Cursors are rendered as vector graphics with Slug.
Transformable Holds the cursor-to-world transform for a cursor.
See Also

InterfaceMgr::SetCursor