MPLABĀ® Harmony Graphics Suite  GFX v3.13.0
Legato API Documentation
legato_widget_skin_classic_common.h
Go to the documentation of this file.
1 // DOM-IGNORE-BEGIN
2 /*******************************************************************************
3 * Copyright (C) 2020 Microchip Technology Inc. and its subsidiaries.
4 *
5 * Subject to your compliance with these terms, you may use Microchip software
6 * and any derivatives exclusively with Microchip products. It is your
7 * responsibility to comply with third party license terms applicable to your
8 * use of third party software (including open source software) that may
9 * accompany Microchip software.
10 *
11 * THIS SOFTWARE IS SUPPLIED BY MICROCHIP "AS IS". NO WARRANTIES, WHETHER
12 * EXPRESS, IMPLIED OR STATUTORY, APPLY TO THIS SOFTWARE, INCLUDING ANY IMPLIED
13 * WARRANTIES OF NON-INFRINGEMENT, MERCHANTABILITY, AND FITNESS FOR A
14 * PARTICULAR PURPOSE.
15 *
16 * IN NO EVENT WILL MICROCHIP BE LIABLE FOR ANY INDIRECT, SPECIAL, PUNITIVE,
17 * INCIDENTAL OR CONSEQUENTIAL LOSS, DAMAGE, COST OR EXPENSE OF ANY KIND
18 * WHATSOEVER RELATED TO THE SOFTWARE, HOWEVER CAUSED, EVEN IF MICROCHIP HAS
19 * BEEN ADVISED OF THE POSSIBILITY OR THE DAMAGES ARE FORESEEABLE. TO THE
20 * FULLEST EXTENT ALLOWED BY LAW, MICROCHIP'S TOTAL LIABILITY ON ALL CLAIMS IN
21 * ANY WAY RELATED TO THIS SOFTWARE WILL NOT EXCEED THE AMOUNT OF FEES, IF ANY,
22 * THAT YOU HAVE PAID DIRECTLY TO MICROCHIP FOR THIS SOFTWARE.
23 *******************************************************************************/
24 // DOM-IGNORE-END
25 
26 /*******************************************************************************
27  Module for Microchip Graphics Library - Legato User Interface Library
28 
29  Company:
30  Microchip Technology Inc.
31 
32  File Name:
33  legato_widget_skin_classic_common.c
34 
35  Summary:
36  Common functions for the classic widget skin.
37 
38  Description:
39 *******************************************************************************/
40 
47 // DOM-IGNORE-BEGIN
48 
49 #ifndef LEGATO_WIDGET_SKIN_CLASSIC_COMMON_H
50 #define LEGATO_WIDGET_SKIN_CLASSIC_COMMON_H
51 //DOM-IGNORE-END
52 
54 
57 
58 // DOM-IGNORE-BEGIN
59 // internal use only
60 
61 void leWidget_SkinClassic_FillRect(const leRect* rect,
62  leColor clr,
63  uint32_t a);
64 
65 void leWidget_SkinClassic_DrawBackground(leWidget* wgt,
66  leColor clr,
67  uint32_t a);
68 
69 void leWidget_SkinClassic_DrawRoundCornerBackground(leWidget* wgt,
70  leColor clr,
71  uint32_t a);
72 
73 void leWidget_SkinClassic_DrawStandardBackground(leWidget* wgt,
74  uint32_t a);
75 
76 void leWidget_SkinClassic_DrawLineBorderLeft(const leRect* rect,
77  leColor clr,
78  uint32_t a);
79 
80 void leWidget_SkinClassic_DrawLineBorderTop(const leRect* rect,
81  leColor clr,
82  uint32_t a);
83 
84 void leWidget_SkinClassic_DrawLineBorderRight(const leRect* rect,
85  leColor clr,
86  uint32_t a);
87 
88 void leWidget_SkinClassic_DrawLineBorderBottom(const leRect* rect,
89  leColor clr,
90  uint32_t a);
91 
92 void leWidget_SkinClassic_DrawLineBorder(const leRect* rect,
93  leColor clr,
94  uint32_t a);
95 
96 void leWidget_SkinClassic_DrawBevelBorderLeft(const leRect* rect,
97  leColor outer,
98  leColor inner,
99  uint32_t a);
100 
101 void leWidget_SkinClassic_DrawBevelBorderTop(const leRect* rect,
102  leColor outer,
103  leColor inner,
104  uint32_t a);
105 
106 void leWidget_SkinClassic_DrawBevelBorderRight(const leRect* rect,
107  leColor outer,
108  leColor inner,
109  uint32_t a);
110 
111 void leWidget_SkinClassic_DrawBevelBorderBottom(const leRect* rect,
112  leColor outer,
113  leColor inner,
114  uint32_t a);
115 
116 void leWidget_SkinClassic_Draw2x2BeveledBorder(const leRect* rect,
117  leColor leftUpOuter,
118  leColor leftUpInner,
119  leColor bottomRightOuter,
120  leColor bototmRightInner,
121  uint32_t a);
122 
123 void leWidget_SkinClassic_Draw1x2BeveledBorder(const leRect* rect,
124  leColor leftUp,
125  leColor bottomRightOuter,
126  leColor bototmRightInner,
127  uint32_t a);
128 
129 void leWidget_SkinClassic_DrawStandardLineBorder(leWidget* wgt,
130  uint32_t a);
131 
132 void leWidget_SkinClassic_DrawStandardRoundCornerLineBorder(leWidget* wgt,
133  uint32_t a);
134 
135 void leWidget_SkinClassic_DrawStandardRaisedBorder(leWidget* wgt,
136  uint32_t a);
137 
138 void leWidget_SkinClassic_DrawStandardLoweredBorder(leWidget* wgt,
139  uint32_t a);
140 
141 void leWidget_SkinClassic_DrawStandardHybridBorder(leWidget* wgt,
142  uint32_t a);
143 
144 void leWidget_SkinClassic_InvalidateBorderAreas(const leWidget*);
145 
146 void leWidget_SkinClassic_FillRoundCornerRect(const leRect* rect,
147  leColor clr,
148  uint32_t radius,
149  uint32_t a);
150 
151 // DOM-IGNORE-END
152 
153 #endif /* LEGATO_WIDGET_SKIN_CLASSIC_COMMON_H */
This struct represents a rectangle.
Definition: legato_common.h:394
Pixel Buffer functions and definitions.
Used to define a widget.
Definition: legato_widget.h:624
Legato widget definitions.