Table of Contents

 
SetCursorOrientation
 

Purpose

Sets the way the current cursor will be oriented around the mouse location

 

Protoype

void CCursorMngr::SetCursorOrientation (int i_orient = DEFAULT)
 

Parameters

orient the new cursor orientation
 

Description

This function is used to change the orientation of the cursor image around the mouse coordinates. The most common cursor orientation is top-left, like a normal mouse cursor. Another one is bottom-left, like an eyedropper tool. Another is center, like a crosshair. Top right and bottom right aren't all that common, but supported none the less. To orient the cursor properly pass in one of these predefined values for i_orient - BOTTOM_LEFT, BOTTOM_RIGHT, TOP_LEFT, TOP_RIGHT, CENTER. Note that changing the orientation of the current cursor does not change the orientation value it was assigned upon creation. Therefore in order restore the cursor to its original orientation ignore the parameters or pass in DEFAULT for i_orient.

 

Use

CCursorMngr cursor;
// change the orientation of the current cursor
cursor.SetCursorOrientation(CENTER);
// revert the setting
cursor.SetCursorOrientation();
 

Prev: RenderCursor