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

Microchip Technology Inc.

File Name

legato_array.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 array. 
 
Finds the first index of a value in the array 
 
Returns the pointer to the entry at index idx 
 
Inserts a value into an array at a given index. All existing nodes from index are shifted right one place. 
 
Removes the last value from the array 
 
Removes the first value from the array. Shuffles all other nodes forward one index. 
 
Pushes a new value onto the back of the array 
 
Pushes a new value onto the front of the array. Shuffles all other nodes backward one index. 
 
Removes the first instance of a value from the array and shuffles all values left to fill the gap 
 
Removes a value from the array at an index 
 
Resizes the capacity of the array. If the array shrinks, any nodes beyond the new capacity will be discarded. 
 
Sets the pointer at idx 
MPLAB® Harmony Graphics Suite