MPLABĀ® Harmony Graphics Suite
legato.h
Go to the documentation of this file.
1 /*******************************************************************************
2 * Copyright (C) 2020 Microchip Technology Inc. and its subsidiaries.
3 *
4 * Subject to your compliance with these terms, you may use Microchip software
5 * and any derivatives exclusively with Microchip products. It is your
6 * responsibility to comply with third party license terms applicable to your
7 * use of third party software (including open source software) that may
8 * accompany Microchip software.
9 *
10 * THIS SOFTWARE IS SUPPLIED BY MICROCHIP "AS IS". NO WARRANTIES, WHETHER
11 * EXPRESS, IMPLIED OR STATUTORY, APPLY TO THIS SOFTWARE, INCLUDING ANY IMPLIED
12 * WARRANTIES OF NON-INFRINGEMENT, MERCHANTABILITY, AND FITNESS FOR A
13 * PARTICULAR PURPOSE.
14 *
15 * IN NO EVENT WILL MICROCHIP BE LIABLE FOR ANY INDIRECT, SPECIAL, PUNITIVE,
16 * INCIDENTAL OR CONSEQUENTIAL LOSS, DAMAGE, COST OR EXPENSE OF ANY KIND
17 * WHATSOEVER RELATED TO THE SOFTWARE, HOWEVER CAUSED, EVEN IF MICROCHIP HAS
18 * BEEN ADVISED OF THE POSSIBILITY OR THE DAMAGES ARE FORESEEABLE. TO THE
19 * FULLEST EXTENT ALLOWED BY LAW, MICROCHIP'S TOTAL LIABILITY ON ALL CLAIMS IN
20 * ANY WAY RELATED TO THIS SOFTWARE WILL NOT EXCEED THE AMOUNT OF FEES, IF ANY,
21 * THAT YOU HAVE PAID DIRECTLY TO MICROCHIP FOR THIS SOFTWARE.
22 *******************************************************************************/
23 
24 /*******************************************************************************
25  Module for Microchip Graphics Library - Legato User Interface Library
26 
27  Company:
28  Microchip Technology Inc.
29 
30  File Name:
31  legato.h
32 
33  Summary:
34  The header file joins all header files used in the graphics object library.
35 
36  Description:
37  This header file includes all the header files required to use the
38  Harmony Graphics Object Library.
39 *******************************************************************************/
47 #ifndef LEGATO_H
48 #define LEGATO_H
49 
52 
61 #include "gfx/legato/image/legato_palette.h"
63 #include "gfx/driver/gfx_driver.h"
67 #include "gfx/legato/string/legato_tablestring.h"
68 
70 
71 #if LE_ARC_WIDGET_ENABLED
73 #endif
74 
75 #if LE_BARGRAPH_WIDGET_ENABLED
77 #endif
78 
79 #if LE_BUTTON_WIDGET_ENABLED
81 #endif
82 
83 #if LE_CHECKBOX_WIDGET_ENABLED
85 #endif
86 
87 #if LE_CIRCLE_WIDGET_ENABLED
89 #endif
90 
91 #if LE_CIRCULARGAUGE_WIDGET_ENABLED
93 #endif
94 
95 #if LE_CIRCULARSLIDER_WIDGET_ENABLED
97 #endif
98 
99 #if LE_DRAWSURFACE_WIDGET_ENABLED
101 #endif
102 
103 #if LE_GRADIENT_WIDGET_ENABLED
105 #endif
106 
107 #if LE_GROUPBOX_WIDGET_ENABLED
109 #endif
110 
111 #if LE_IMAGE_WIDGET_ENABLED
113 #endif
114 
115 #if LE_IMAGEROTATE_WIDGET_ENABLED
117 #endif
118 
119 #if LE_IMAGESCALE_WIDGET_ENABLED
120 #include "gfx/legato/widget/imagescale/legato_widget_imagescale.h"
121 #endif
122 
123 #if LE_IMAGESEQUENCE_WIDGET_ENABLED
125 #endif
126 
127 #if LE_KEYPAD_WIDGET_ENABLED
129 #endif
130 
131 #if LE_LABEL_WIDGET_ENABLED
133 #endif
134 
135 #if LE_LINE_WIDGET_ENABLED
136 #include "gfx/legato/widget/line/legato_widget_line.h"
137 #endif
138 
139 #if LE_LINEGRAPH_WIDGET_ENABLED
141 #endif
142 
143 #if LE_LIST_WIDGET_ENABLED
145 #endif
146 
147 #if LE_LISTWHEEL_WIDGET_ENABLED
149 #endif
150 
151 #if LE_PIECHART_WIDGET_ENABLED
153 #endif
154 
155 #if LE_PROGRESSBAR_WIDGET_ENABLED
157 #endif
158 
159 #if LE_RADIOBUTTON_WIDGET_ENABLED
161 #endif
162 
163 #if LE_RADIALMENU_WIDGET_ENABLED
165 #endif
166 
167 #if LE_RECTANGLE_WIDGET_ENABLED
169 #endif
170 
171 #if LE_SCROLLBAR_WIDGET_ENABLED
173 #endif
174 
175 #if LE_SLIDER_WIDGET_ENABLED
177 #endif
178 
179 #if LE_TEXTFIELD_WIDGET_ENABLED
181 #endif
182 
183 #if LE_TOUCHTEST_WIDGET_ENABLED
185 #endif
186 
187 #if LE_WINDOW_WIDGET_ENABLED
189 #endif
190 
191 
192 
193 
194 
195 
196 
197 
198 
199 #endif // LEGATO_H
legato_widget_window.h
Window Widget functions and definitions.
legato_widget_button.h
Button widget functions and definitions.
legato_math.h
Defines common math functions for general use.
lePixelBufferGet_Unsafe
LIB_EXPORT leColor lePixelBufferGet_Unsafe(const lePixelBuffer *const buffer, uint32_t x, uint32_t y)
Get pixel at point.
Definition: legato_pixelbuffer.c:279
legato_widget_listwheel.h
List wheel functions and definitions.
lePixelBufferSet_Unsafe
LIB_EXPORT leResult lePixelBufferSet_Unsafe(const lePixelBuffer *const buffer, uint32_t x, uint32_t y, leColor color)
Pixel set.
Definition: legato_pixelbuffer.c:347
legato_error.h
Error functions, macros and definitions.
legato_widget_radiobutton.h
Radiobutton functions and definitions.
leColorModeInfo::size
uint32_t size
Definition: legato_color.h:215
legato_input.h
Legato input definitions.
leResult
leResult
This enum represents function call results.
Definition: legato_common.h:134
leColorMode
leColorMode
This enum represents the supported RGB color formats.
Definition: legato_color.h:146
legato_color.h
Color definitions and functions.
legato_widget_rectangle.h
Rectangle widget functions and definitions.
legato_image.h
Image functions and defintions.
legato_pixelbuffer.h
Pixel Buffer functions and definitions.
legato_memory.h
Memory functions and definitions.
lePercentOf
LIB_EXPORT uint32_t lePercentOf(uint32_t num, uint32_t percent)
Calculate percent of a number.
Definition: legato_math.c:218
leRawDecodeState
Definition: legato_imagedecoder_raw.h:137
legato_widget_list.h
List widget functions and definitions.
legato_widget_circle.h
Circle widget functions and definitions.
lePercent
LIB_EXPORT uint32_t lePercent(uint32_t l, uint32_t r)
Calculate percent of number.
Definition: legato_math.c:199
legato_renderer.h
legato_widget_image.h
Image widget menu functions and definitions.
leSize::width
int32_t width
Definition: legato_common.h:382
legato_widget_arc.h
Arc widget definitions and functions.
leColorBlend_RGBA_8888
LIB_EXPORT leColor leColorBlend_RGBA_8888(leColor fore, leColor back)
Get color from RGBA blend.
Definition: legato_color_blend.c:77
legato_widget_label.h
label widget functions and definitions.
lePixelBufferGetIndex_Unsafe
LIB_EXPORT leColor lePixelBufferGetIndex_Unsafe(const lePixelBuffer *const buffer, const uint32_t idx)
Get color at index.
Definition: legato_pixelbuffer.c:326
legato_widget_imagesequence.h
Imagesequence widget functions and definitions.
legato_widget_radial_menu.h
Radial menu functions and definitions.
legato_widget_scrollbar.h
Scrollbar functions and definitions.
legato_widget_checkbox.h
Checkbox widget functions and definitions.
leColorBlend_ARGB_8888
LIB_EXPORT leColor leColorBlend_ARGB_8888(leColor fore, leColor back)
Get color from ARGB blend.
Definition: legato_color_blend.c:125
leBool
leBool
This enum represents booleans.
Definition: legato_common.h:157
legato_stream.h
Defines a common header for all stream operations.
legato_editwidget.h
Edit widget functions and definitions.
leRawSourceReadOperation
Definition: legato_imagedecoder_raw.h:122
leColorModeInfo::bppOrdinal
leBitsPerPixel bppOrdinal
Definition: legato_color.h:217
leRawDecodeStage
Definition: legato_imagedecoder_raw.h:114
LE_FALSE
@ LE_FALSE
Definition: legato_common.h:158
legato_widget_gradient.h
Gradien drawing widget functions and definitions.
legato_widget_drawsurface.h
Surface widget functions and definitions.
legato_widget_pie_chart.h
Pie chart functions and definitions.
legato_widget_circular_gauge.h
Circular guage widget functions and definitions.
legato_widget_textfield.h
Textfield Widget functions and definitions.
legato_scheme.h
Schemes support various properties that make it possible to customize the color of widgets.
legato_dynamicstring.h
Dynamic string functions and definitions.
leRotatePoint
lePoint leRotatePoint(lePoint pos, lePoint org, int32_t ang)
Rotates point.
Definition: legato_math.c:454
leColorConvert
LIB_EXPORT leColor leColorConvert(leColorMode mode_in, leColorMode mode_out, leColor color)
Convert to color value.
Definition: legato_color_convert.c:579
legato_widget_groupbox.h
Group box widget menu functions and definitions.
legato_widget_imagerotate.h
Image rotate functions and definitions.
legato_widget_slider.h
Slider widget functions and definitions.
leRenderState
This structs represents global state of the renderer.
Definition: legato_renderer.h:84
legato_widget_circular_slider.h
Slider widget functions and definitions.
legato_widget_touchtest.h
Window Widget functions and definitions.
legato_widget_progressbar.h
Progressbar menu functions and definitions.
legato_widget_keypad.h
Keypad widget functions and definitions.
leStreamDescriptor
This struct represents a stream descriptor.
Definition: legato_stream.h:57
legato_fixedstring.h
Fixed string functions and definitions.
LE_TRUE
@ LE_TRUE
Definition: legato_common.h:159
legato_font.h
Font functions and definitions.
lePixelBufferCreate
LIB_EXPORT leResult lePixelBufferCreate(const int32_t width, const int32_t height, const leColorMode mode, const void *const address, lePixelBuffer *buffer)
Create a pixelbuffer.
Definition: legato_pixelbuffer.c:184
legato_common.h
Common macros and definitions used by Legato.
legato_state.h
legato_widget_line_graph.h
Line draw functions and definitions.
leSize::height
int32_t height
Definition: legato_common.h:383
leColorInfoTable
const leColorModeInfo leColorInfoTable[]
This array represents information reference table.
Definition: legato_color.c:29
lePoint
This structure represents a integer Cartesian point.
Definition: legato_common.h:357
legato_widget_bar_graph.h
Bar graph widget functions and definitions.
lePixelBuffer
Definition: legato_pixelbuffer.h:91
leColorBilerp
LIB_EXPORT leColor leColorBilerp(leColor c00, leColor c01, leColor c10, leColor c11, uint32_t xper, uint32_t yper, leColorMode mode)
Get color from bi-linear interpolation of four colors.
Definition: legato_color_lerp.c:301