MPLAB® Harmony Graphics Suite > Graphics Library > Aria Graphics Library > Aria Hardware Abstraction Layer (HAL) > Library Interface > a) Functions > GFX_DrawRect Function
MPLAB® Harmony Graphics Suite
GFX_DrawRect Function

Draws a rectangle using the coordinates: x,y x + width - 1, y 

x, y + height - 1 x + width - 1, y + height - 1

C
LIB_EXPORT GFX_Result GFX_DrawRect(
    int32_t x, 
    int32_t y, 
    int32_t width, 
    int32_t height
);
Parameters
Parameters 
Description 
the x position of the top left point of the rectangle 
the y position of the top left point of the rectangle 
width 
the width of the rectangle in pixels 
height 
the height of the rectangle in pixels 
Returns

GFX_Result - Returns GFX_TRUE if the rectangle was drawn successfully. Otherwise returns GFX_FALSE.

MPLAB® Harmony Graphics Suite