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

Microchip Technology Inc.

File Name

legato_rectarray.h

Description

Module for Microchip Graphics Library - Legato User Interface Library 

This is an array implementation that is used internally by the Legato user interface library.

Functions
 
Name 
Description 
 
Removes all values from a given array. Array capacity remains the same. 
 
Creates a duplicate of an existing array 
 
Initializes a new rectangle array. 
 
Crops all rectangles to a given width and height. Any remainder will be moved into a new rectangle and will be cropped again if needed. 
 
This is function leRectArray_CropToSize. 
 
Removes all nodes from a given array and frees the memory owned by the array. Resets array capacity to zero. 
 
Inserts a rectangle into an array at a given index. All existing nodes from index are shifted right one place. 
 
Analyzes an array and merges any rectangles similar in size. 
 
Removes the last rectangle from the array 
 
Removes the first value from the array. Shuffles all other nodes forward one index. 
 
Pushes a new rectangle onto the back of the array 
 
Pushes a new rectangle onto the front of the array. Shuffles all other nodes backward one index. 
 
Removes a rectangle from the array at an index 
 
Removes any duplicate rectangles from an array. 
 
Sorts the array by size and then removes any rectangles that are completely overlapped by another larger rectangle. 
 
Resizes the capacity of the array. If the array shrinks, any nodes beyond the new capacity will be discarded. 
 
Sorts a given array largest to smallest. 
 
Sorts a given array in order of the Y coordinate. 
MPLAB® Harmony Graphics Suite