Rectangle Macro

Microchip Graphics Library

Microchip Graphics Library
Rectangle Macro
C
#define Rectangle(left, top, right, bottom) Bevel(left, top, right, bottom, 0)
Overview

This macro draws a rectangle with the given left, top and right, bottom corners. Current line type is used.

Input Parameters
Input Parameters 
Description 
left 
x position of the left top corner. 
top 
y position of the left top corner. 
right 
x position of the right bottom corner. 
bottom 
y position of the right bottom corner. 
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

none

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