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

Microchip Technology Inc.

File Name

legato_utils.h

Description

Module for Microchip Graphics Library - Legato User Interface Library

Functions
 
Name 
Description 
 
Calculates the position of a rectangle within the given bounds and in accordance with the given parameters. A use case for this is when an image and a text rectangle must be arranged in a button box. This version of the algorithm will calculate the location of the image rectangle. 
 
Calculates the position of a rectangle within the given bounds and in accordance with the given parameters. A use case for this is when an image and a text rectangle must be arranged in a button box. This version of the algorithm will calculate the location of the text rectangle. 
 
Performs an intersection test between a parent widget and a child widget 
 
Clips a rectangle to the parent of a widget 
 
Gets the next highest Z order widget in the tree from 'wgt' 
 
Finds the top-most visible widget in the tree at the given coordinates. 
 
Finds the top-most visible widget in a layer at the given coordinates. 
 
Converts a point from layer space into the local space of a widget 
 
Converts a point from widget space into screen space 
 
Converts a rectangle from widget parent space to widget local space 
 
Converts a rectangle from widget local space to widget parent space. Widget must be a child of a layer for this to function. 
 
Converts a rectangle from widget local space to screen space 
MPLAB® Harmony Graphics Suite