MPLAB® Harmony Graphics Suite > Graphics Library > Legato Graphics Library > Files > legato_rect.h
MPLAB® Harmony Graphics Suite
legato_rect.h

Microchip Technology Inc.

File Name

legato_rect.h

Description

Module for Microchip Graphics Library - Legato User Interface Library 

Rectangle management functions.

Functions
 
Name 
Description 
 
Clips a rectangle to the space of another rectangle. The result rectangle is a rectangle that will fit inside both of the given rectangles. 
 
Returns the rectangle clipped using r_rect, and also adjusts the third rectangle 
 
Combines the area of two rectangles into a single rectangle. 
 
Returns 1 if the two rectangles have the same position and dimensions 
 
Determines if a point is inside a rectangle. 
 
Determines if a rectangle is completely inside another rectangle. Still returns true if the edges are touching. 
 
Returns a leRect structure based on 2 points 
 
Determines if two rectangles are intersecting 
 
Returns LE_TRUE if the two rectangles are adjacent and vertically or horizontally aligned 
 
Splits two overlapping rectangles into several (up to 4) non-overlapping rectangles 
 
Returns the points for the upper left and lower right vertices of a rectangle 
MPLAB® Harmony Graphics Suite