C4 Engine
C4 Engine API Documentation

InterfaceMgr::SetCursor

Defined in:  C4Interface.h
Sets the cursor that is rendered by the Interface Manager.
Prototype

void SetCursor(Cursor *cursor);

Parameters
cursor A pointer to the cursor to be used. This can be nullptr.
Description
The SetCursor function sets the current cursor to that specified by the cursor parameter. If the cursor parameter is nullptr, then the current cursor becomes the default arrow cursor.
See Also

InterfaceMgr::CursorVisible

InterfaceMgr::HideCursor

InterfaceMgr::ShowCursor

Cursor