Table of Contents

 
MoveCursor
 

Purpose

Moves the cursor given relative coordinates (change in x,y)

 

Protoype

void CCursorMngr::MoveCursor (int i_dx, int i_dy)
 

Parameters

dx the change in X coordinates
dy the change in Y coordinates
 

Description

This function moves a cursor object based on relative motion. So if the cursor is at (120, 20) and you pass in 10 for i_dx and 25 for i_dy, the new cursor location would be (130, 45), not (10, 25). Use PlaceCursor() for absolute repositioning.

 

Use

CCursorMngr cursor;
// shift cursor 5 pixels to the left
cursor.MoveCursor(-5, 0);
 

Prev: LoadCursors