LineRel Macro

Microchip Graphics Library

Microchip Graphics Library
LineRel Macro
C
#define LineRel(dX, dY) Line(GetX(), GetY(), GetX() + dX, GetY() + dY)
Overview

This macro draws a line with the current line type from the current graphic cursor position to the position defined by displacement.

Input Parameters
Input Parameters 
Description 
dX 
Displacement from the current x position. 
dY 
Displacement from the current y position. 
Returns

For NON-Blocking configuration:

  • Returns 0 when device is busy and the shape is not yet completely drawn.
  • Returns 1 when the shape is completely drawn.
For Blocking configuration:
  • Always return 1.

Side Effects

The graphic cursor position is moved to the end point of the line.

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