MoveRel Macro

Microchip Graphics Library

Microchip Graphics Library
MoveRel Macro
C
#define MoveRel(dX, dY) \
    _cursorX += dX;         \
    _cursorY += dY;
Overview

This macro moves the graphic cursor relative to the current location. The given dX and dY displacement can be positive or negative numbers.

Input Parameters
Input Parameters 
Description 
dX 
Specifies the displacement of the graphic cursor for the horizontal direction. 
dY 
Specifies the displacement of the graphic cursor for the vertical direction. 
Returns

none

Preconditions

none

Side Effects

none

Microchip Graphics Library Version 3.06.02 - October 15, 2012
Copyright © 2012 Microchip Technology, Inc.  All rights reserved