MPLABĀ® Harmony Graphics Suite
legato_widget_slider.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_widget_slider.h
32 
33  Summary:
34 
35  Description:
36  This module implements slider control widget functions.
37 *******************************************************************************/
38 
45 #ifndef LEGATO_SLIDER_H
46 #define LEGATO_SLIDER_H
47 
49 
50 #if LE_SLIDER_WIDGET_ENABLED
51 
54 
55 // *****************************************************************************
56 // *****************************************************************************
57 // Section: Data Types and Constants
58 // *****************************************************************************
59 // *****************************************************************************
60 
61 // *****************************************************************************
62 /* Enumeration:
63  leSliderState
64 
65  Summary:
66  Describes various slider states
67 
68  Description:
69 
70 
71  Remarks:
72  None.
73 */
78 typedef enum leSliderState
79 {
80  LE_SLIDER_STATE_NONE,
81  LE_SLIDER_STATE_HANDLE_DOWN,
82  LE_SLIDER_STATE_AREA_DOWN
83 } leSliderState;
84 
85 typedef struct leSliderWidget leSliderWidget;
86 
87 // *****************************************************************************
88 /* Function Pointer:
89  leSliderWidget_ValueChangedEvent
90 
91  Summary:
92  Value changed event function callback type
93 */
99 typedef void (*leSliderWidget_ValueChangedEvent)(leSliderWidget*);
100 
101 /* internal use only */typedef struct leSliderWidget leSliderWidget;
106 
107 #define LE_SLIDERWIDGET_VTABLE(THIS_TYPE) \
108  LE_WIDGET_VTABLE(THIS_TYPE) \
109  \
110  leOrientation (*getOrientation)(const THIS_TYPE* _this); \
111  leResult (*setOrientation)(THIS_TYPE* _this, leOrientation align, leBool swapDimensions); \
112  uint32_t (*getGripSize)(const THIS_TYPE* _this); \
113  leResult (*setGripSize)(THIS_TYPE* _this, uint32_t sz); \
114  uint32_t (*getMininumValue)(const THIS_TYPE* _this); \
115  leResult (*setMinimumValue)(THIS_TYPE* _this, uint32_t min); \
116  uint32_t (*getMaximumValue)(const THIS_TYPE* _this); \
117  leResult (*setMaximumValue)(THIS_TYPE* _this, uint32_t max); \
118  uint32_t (*getPercentage)(const THIS_TYPE* _this); \
119  leResult (*setPercentage)(THIS_TYPE* _this, uint32_t per); \
120  int32_t (*getValue)(const THIS_TYPE* _this); \
121  leResult (*setValue)(THIS_TYPE* _this, int32_t val); \
122  leResult (*step)(THIS_TYPE* _this, int32_t amt); \
123  leSliderWidget_ValueChangedEvent (*getValueChangedEventCallback)(const THIS_TYPE* _this); \
124  leResult (*setValueChangedEventCallback)(THIS_TYPE* _this, leSliderWidget_ValueChangedEvent cb);
125 
126 typedef struct leSliderWidgetVTable
127 {
128  LE_SLIDERWIDGET_VTABLE(leSliderWidget)
129 } leSliderWidgetVTable;
130 
142 typedef struct leSliderWidget
143 {
144  leWidget widget; // widget base class
145 
146  const leSliderWidgetVTable* fn;
147 
148  leSliderState state; // slider state
149  leOrientation alignment; // slider alignment
150 
151  int32_t min; // slider min value
152  int32_t max; // slider max value
153  int32_t value; // slider current value
154  uint32_t grip; // slider grip size
155 
156  leSliderWidget_ValueChangedEvent valueChangedEvent; // value changed event
157 
158  lePoint handleDownOffset;
159 } leSliderWidget;
160 
161 // *****************************************************************************
162 // *****************************************************************************
163 // Section: Routines
164 // *****************************************************************************
165 // *****************************************************************************
166 
167 // *****************************************************************************
168 /* Function:
169  leSliderWidget* leSliderWidget_New()
170 
171  Summary:
172  Allocates memory for a new widget of this type. The application is
173  responsible for the managment of this memory until the widget is added to
174  a widget tree.
175 
176  Description:
177 
178 
179  Parameters:
180 
181  Returns:
182  leSliderWidget*
183 
184  Remarks:
185  Use leWidget_Delete() to free this pointer.
186 */
198 LIB_EXPORT leSliderWidget* leSliderWidget_New();
199 
210 LIB_EXPORT void leSliderWidget_Constructor(leSliderWidget* sld);
211 
212 
213 #ifdef _DOXYGEN_
214 #define THIS_TYPE struct leWidget
215 
216 // *****************************************************************************
217 /* Virtual Member Function:
218  leOrientation getOrientation(const leSliderWidget* _this)
219 
220  Summary:
221  Gets the slider orientation
222 
223  Description:
224  Gets the slider orientation
225 
226  Parameters:
227  const leSliderWidget* _this - The Slider widget to operate on
228 
229  Remarks:
230  Usage - _this->fn->getOrientation(_this);
231 
232  Returns:
233  leOrientation - the orientation value
234 */
245 leOrientation getOrientation(const leSliderWidget* _this);
246 
247 
248 // *****************************************************************************
249 /* Virtual Member Function:
250  leResult
251 setOrientation(leSliderWidget* _this,
252  leOrientation align,
253  leBool swapDimensions)
254  Summary:
255  Sets the slider orientation
256 
257  Description:
258  Sets the slider orientation
259 
260  Parameters:
261  leSliderWidget* _this - The Slider widget to operate on
262  leOrientation align - the orientation value
263  leBool swapDimensions - swap the width and height values when changing this
264 
265  Remarks:
266  Usage - _this->fn->setOrientation(_this, align, swapDimensions);
267 
268  Returns:
269  leResult - the result of the operation
270 */
287 virtual leResult setOrientation(leSliderWidget* _this,
288  leOrientation align,
289  leBool swapDimensions);
290 
291 // *****************************************************************************
292 /* Virtual Member Function:
293  uint32_t getMaximumValue(const leSliderWidget* _this)
294 
295  Summary:
296  Gets the minimum slider value
297 
298  Description:
299  Gets the minimum slider value
300 
301  Parameters:
302  const leSliderWidget* _this - The Slider widget to operate on
303 
304  Remarks:
305  Usage - _this->fn->getMaximumValue(_this);
306 
307  Returns:
308  uint32_t - the value
309 */
320 virtual uint32_t getMaximumValue(const leSliderWidget* _this);
321 
322 // *****************************************************************************
323 /* Virtual Member Function:
324  leResult setMaximumValue(leSliderWidget* _this,
325  uint32_t val)
326 
327  Summary:
328  Sets the minimum slider value
329 
330  Description:
331  Sets the minimum slider value
332 
333  Parameters:
334  leSliderWidget* _this - The Slider widget to operate on
335  uint32_t val - the value
336 
337  Remarks:
338  Usage - _this->fn->setMaximumValue(_this, val);
339 
340  Returns:
341  leResult - the result of the operation
342 */
356 leResult setMaximumValue(leSliderWidget* _this,
357  uint32_t val);
358 
359 
360 // *****************************************************************************
361 /* Virtual Member Function:
362  uint32_t getMaximumValue(const leSliderWidget* _this)
363 
364  Summary:
365  Gets the maximum slider value
366 
367  Description:
368  Gets the maximum slider value
369 
370  Parameters:
371  const leSliderWidget* _this - The Slider widget to operate on
372 
373  Remarks:
374  Usage - _this->fn->getMaximumValue(_this);
375 
376  Returns:
377  uint32_t - the value
378 */
389 virtual uint32_t getMaximumValue(const leSliderWidget* _this);
390 
391 
392 // *****************************************************************************
393 /* Virtual Member Function:
394  leResult setMaximumValue(leSliderWidget* _this,
395  uint32_t val)
396 
397  Summary:
398  Sets the maximum slider value
399 
400  Description:
401  Sets the maximum slider value
402 
403  Parameters:
404  leSliderWidget* _this - The Slider widget to operate on
405  uint32_t val - the value
406 
407  Remarks:
408  Usage - _this->fn->setMaximumValue(_this, val);
409 
410  Returns:
411  leResult - the result of the operation
412 */
426 virtual leResult setMaximumValue(leSliderWidget* _this,
427  uint32_t val);
428 
429 
430 // *****************************************************************************
431 /* Virtual Member Function:
432  uint32_t getPercentage(const leSliderWidget* _this)
433 
434  Summary:
435  Gets the value as a percentage
436 
437  Description:
438  Gets the value as a percentage
439 
440  Parameters:
441  const leSliderWidget* _this - The Slider widget to operate on
442 
443  Remarks:
444  Usage - _this->fn->getPercentage(_this);
445 
446  Returns:
447  uint32_t - the percentage value
448 */
459 virtual uint32_t getPercentage(const leSliderWidget* _this);
460 
461 
462 // *****************************************************************************
463 /* Virtual Member Function:
464  leResult setPercentage(leSliderWidget* _this,
465  uint32_t val)
466 
467  Summary:
468  Sets the value using a percentage
469 
470  Description:
471  Sets the value using a percentage
472 
473  Parameters:
474  leSliderWidget* _this - The Slider widget to operate on
475  uint32_t val - the value
476 
477  Remarks:
478  Usage - _this->fn->setPercentage(_this, val);
479 
480  Returns:
481  leResult - the result of the operation
482 */
496 virtual leResult setPercentage(leSliderWidget* _this,
497  uint32_t val);
498 
499 
500 // *****************************************************************************
501 /* Virtual Member Function:
502  uint32_t getValue(const leSliderWidget* _this)
503 
504  Summary:
505  Gets the slider value
506 
507  Description:
508  Gets the slider value
509 
510  Parameters:
511  const leSliderWidget* _this - The Slider widget to operate on
512 
513  Remarks:
514  Usage - _this->fn->getValue(_this);
515 
516  Returns:
517  uint32_t - the value
518 */
529 virtual uint32_t getValue(const leSliderWidget* _this);
530 
531 
532 // *****************************************************************************
533 /* Virtual Member Function:
534  leResult setValue(leSliderWidget* _this,
535  uint32_t val)
536 
537  Summary:
538  Sets the slider value
539 
540  Description:
541  Sets the slider value
542 
543  Parameters:
544  leSliderWidget* _this - The Slider widget to operate on
545  uint32_t val - the value
546 
547  Remarks:
548  Usage - _this->fn->setValue(_this, val);
549 
550  Returns:
551  leResult - the result of the operation
552 */
566 virtual leResult setPercentage(leSliderWidget* _this,
567  uint32_t val);
568 
569 
570 // *****************************************************************************
571 /* Virtual Member Function:
572  leResult step(leSliderWidget* _this,
573  int32_t amt)
574 
575  Summary:
576  Step the slider by an amount
577 
578  Description:
579  Step the slider by an amount
580 
581  Parameters:
582  leSliderWidget* _this - The Slider widget to operate on
583  int32_t amt - the step amount
584 
585  Remarks:
586  Usage - _this->fn->step(_this, amt);
587 
588  Returns:
589  leResult - the result of the operation
590 */
604 virtual leResult step(leSliderWidget* _this,
605  int32_t amt);
606 
617 virtual leSliderWidget_ValueChangedEvent getValueChangedEventCallback
618  (const leSliderWidget* _this);
619 
633 virtual leResult setValueChangedEventCallback(leSliderWidget* _this,
634  leSliderWidget_ValueChangedEvent cb);
635 
636 #undef THIS_TYPE
637 #endif
638 
639 
640 
641 
642 #endif // LE_SLIDER_WIDGET_ENABLED
643 #endif /* LEGATO_SLIDER_H */
_leWidget_SetAlphaAmount
leResult _leWidget_SetAlphaAmount(leWidget *_this, uint32_t alpha)
Set alpha amount.
Definition: legato_widget.c:570
legato_math.h
Defines common math functions for general use.
legato_error.h
Error functions, macros and definitions.
_leWidget_GetType
leWidgetType _leWidget_GetType(const leWidget *_this)
Get widget type.
Definition: legato_widget.c:176
_leWidget_GetScheme
leScheme * _leWidget_GetScheme(const leWidget *_this)
Get widget scheme.
Definition: legato_widget.c:938
leResult
leResult
This enum represents function call results.
Definition: legato_common.h:134
lePercentWholeRounded
LIB_EXPORT uint32_t lePercentWholeRounded(uint32_t l, uint32_t r)
Calculate percent whole rounded.
Definition: legato_math.c:204
_leWidget_RectToScreenSpace
leRect _leWidget_RectToScreenSpace(const leWidget *_this)
Get widget rectangle.
Definition: legato_widget.c:701
leRect
This struct represents a rectangle.
Definition: legato_common.h:405
_leWidget_IsOpaque
leBool _leWidget_IsOpaque(const leWidget *_this)
Determine is widget is opaque.
Definition: legato_widget.c:594
_leWidget_SetBorderType
leResult _leWidget_SetBorderType(leWidget *_this, leBorderType type)
Set widget scheme.
Definition: legato_widget.c:967
_leWidget_RemoveAllChildren
void _leWidget_RemoveAllChildren(leWidget *_this)
Remove all children from widget.
Definition: legato_widget.c:823
_leWidget_SetParent
leResult _leWidget_SetParent(leWidget *_this, leWidget *parent)
Set parent widget.
Definition: legato_widget.c:862
leWidgetEvent_TouchUp
Used to define widget touch up event.
Definition: legato_widget.h:403
_leWidget_InvalidateContents
void _leWidget_InvalidateContents(const leWidget *_this)
Invalidate widget contents.
Definition: legato_widget.c:1210
_leWidget_SetCornerRadius
leResult _leWidget_SetCornerRadius(leWidget *_this, uint32_t radius)
Set widget scheme.
Definition: legato_widget.c:1091
_leWidget_InstallEventFilter
leResult _leWidget_InstallEventFilter(leWidget *_this, leWidgetEventFilter fltr)
Install event filter.
Definition: legato_widget.c:1215
_leWidget_SetX
leResult _leWidget_SetX(leWidget *_this, int32_t x)
Set widget x position.
Definition: legato_widget.c:190
_leWidget_SetSize
leResult _leWidget_SetSize(leWidget *_this, uint32_t width, uint32_t height)
Set widget height.
Definition: legato_widget.c:381
_leWidget_HasFocus
leBool _leWidget_HasFocus(const leWidget *_this)
Determines the focus status.
Definition: legato_widget.c:1110
legato_memory.h
Memory functions and definitions.
_leWidget_Resize
leResult _leWidget_Resize(leWidget *_this, int32_t width, int32_t height)
Resize widget.
Definition: legato_widget.c:426
_leWidget_SetAlphaEnabled
leResult _leWidget_SetAlphaEnabled(leWidget *_this, leBool enable)
Set cumulative alpha enable status.
Definition: legato_widget.c:501
lePercentOf
LIB_EXPORT uint32_t lePercentOf(uint32_t num, uint32_t percent)
Calculate percent of a number.
Definition: legato_math.c:218
leWidgetEvent_TouchDown
Used to define widget touch down event.
Definition: legato_widget.h:377
_leWidget_ContainsDescendant
leBool _leWidget_ContainsDescendant(const leWidget *_this, const leWidget *wgt)
Determine widget exists.
Definition: legato_widget.c:910
_leWidget_SetBackgroundType
leResult _leWidget_SetBackgroundType(leWidget *_this, leBackgroundType type)
Set widget scheme.
Definition: legato_widget.c:989
_leWidget_GetWidth
uint32_t _leWidget_GetWidth(const leWidget *_this)
Get widget width.
Definition: legato_widget.c:317
_leWidget_GetCumulativeAlphaEnabled
leBool _leWidget_GetCumulativeAlphaEnabled(const leWidget *_this)
Get cumulative alpha enable status.
Definition: legato_widget.c:484
_leWidget_RectToParentSpace
leRect _leWidget_RectToParentSpace(const leWidget *_this)
Get widget rectangle.
Definition: legato_widget.c:684
_leWidget_Translate
leResult _leWidget_Translate(leWidget *_this, int32_t x, int32_t y)
Translate widget x and y position.
Definition: legato_widget.c:282
legato_renderer.h
_leWidget_SetHeight
leResult _leWidget_SetHeight(leWidget *_this, uint32_t height)
Set widget height.
Definition: legato_widget.c:356
_leWidget_SetWidth
leResult _leWidget_SetWidth(leWidget *_this, uint32_t width)
Set the widget width.
Definition: legato_widget.c:324
LE_WIDGET_BACKGROUND_FILL
@ LE_WIDGET_BACKGROUND_FILL
Definition: legato_widget.h:226
_leWidget_SetVisible
leResult _leWidget_SetVisible(leWidget *_this, leBool visible)
Set widget visible status.
Definition: legato_widget.c:649
_leWidget_GetRootWidget
leWidget * _leWidget_GetRootWidget(const leWidget *_this)
Get root widget.
Definition: legato_widget.c:843
_leWidget_Update
void _leWidget_Update(leWidget *_this, uint32_t dt)
Update widget.
Definition: legato_widget.c:1491
legato_widget.h
Legato widget definitions.
leOrientation
leOrientation
This enum represents the orientation modes for objects.
Definition: legato_common.h:340
_leWidget_GetHAlignment
leHAlignment _leWidget_GetHAlignment(const leWidget *_this)
Get widget horizontal alignment.
Definition: legato_widget.c:1003
_leWidget_GetHeight
uint32_t _leWidget_GetHeight(const leWidget *_this)
Get widget height.
Definition: legato_widget.c:349
_leWidget_LocalRect
leRect _leWidget_LocalRect(const leWidget *_this)
Get widget rectangle.
Definition: legato_widget.c:670
legato_widget_scrollbar.h
Scrollbar functions and definitions.
leBool
leBool
This enum represents booleans.
Definition: legato_common.h:157
_leWidget_GetBackgroundType
leBackgroundType _leWidget_GetBackgroundType(const leWidget *_this)
Get widget background type.
Definition: legato_widget.c:982
_leWidget_SetScheme
leResult _leWidget_SetScheme(leWidget *_this, const leScheme *scheme)
Set widget scheme.
Definition: legato_widget.c:945
_leWidget_SetHAlignment
leResult _leWidget_SetHAlignment(leWidget *_this, leHAlignment align)
Set widget scheme.
Definition: legato_widget.c:1010
_leWidget_GetEnabled
leBool _leWidget_GetEnabled(const leWidget *_this)
Get widget enabled flag.
Definition: legato_widget.c:615
_leWidget_SetFocus
leResult _leWidget_SetFocus(leWidget *_this)
Set widget scheme.
Definition: legato_widget.c:1117
_leWidget_GetAlphaEnabled
leBool _leWidget_GetAlphaEnabled(const leWidget *_this)
Get alpha enable status.
Definition: legato_widget.c:473
leRectContainsPoint
LIB_EXPORT leBool leRectContainsPoint(const leRect *rect, const lePoint *point)
Determines if a point is inside a rectangle.
Definition: legato_rect.c:31
_leWidget_GetChildAtIndex
leWidget * _leWidget_GetChildAtIndex(const leWidget *_this, uint32_t idx)
Get child at index.
Definition: legato_widget.c:888
leWidgetEvent
Used to define widget event.
Definition: legato_widget.h:352
_leWidget_GetCumulativeAlphaAmount
uint32_t _leWidget_GetCumulativeAlphaAmount(const leWidget *_this)
Get cumulative alpha amount.
Definition: legato_widget.c:538
_leWidget_SetY
leResult _leWidget_SetY(leWidget *_this, int32_t y)
Set widget y position.
Definition: legato_widget.c:222
_leWidget_GetBorderType
leBorderType _leWidget_GetBorderType(const leWidget *_this)
Get widget bordertype.
Definition: legato_widget.c:960
_leWidget_SetMargins
leResult _leWidget_SetMargins(leWidget *_this, uint32_t l, uint32_t t, uint32_t r, uint32_t b)
Set widget margins.
Definition: legato_widget.c:1058
legato_utils.h
General internal utilities for the library.
_leWidget_GetVAlignment
leVAlignment _leWidget_GetVAlignment(const leWidget *_this)
Get widget vertical alignment.
Definition: legato_widget.c:1027
legato_string.h
Fixed string functions and definitions.
leWidget
Used to define a widget.
Definition: legato_widget.h:623
leUtils_RectToScreenSpace
void leUtils_RectToScreenSpace(const leWidget *widget, leRect *rect)
Convert rectangle from widget local space to screen space.
Definition: legato_utils.c:151
legato.h
The header file joins all header files used in the graphics object library.
_leWidget_GetX
int32_t _leWidget_GetX(const leWidget *_this)
Get widget x position.
Definition: legato_widget.c:183
_leWidget_SetVAlignment
leResult _leWidget_SetVAlignment(leWidget *_this, leVAlignment align)
Set widget vertical alignment.
Definition: legato_widget.c:1034
_leWidget_GetVisible
leBool _leWidget_GetVisible(const leWidget *_this)
Get widget visible status.
Definition: legato_widget.c:642
leWidgetEvent_TouchMove
Used to define widget touch move event.
Definition: legato_widget.h:429
legato_widget_slider.h
Slider widget functions and definitions.
_leWidget_AddChild
leResult _leWidget_AddChild(leWidget *_this, leWidget *child)
Add child to widget.
Definition: legato_widget.c:734
_leWidget_GetIndexOfChild
uint32_t _leWidget_GetIndexOfChild(const leWidget *_this, const leWidget *child)
Get index of child.
Definition: legato_widget.c:899
_leWidget_GetChildCount
uint32_t _leWidget_GetChildCount(const leWidget *_this)
Get child count.
Definition: legato_widget.c:881
_leWidget_GetMargins
leMargin _leWidget_GetMargins(const leWidget *_this)
Get widget margins.
Definition: legato_widget.c:1051
leWidget_Constructor
LIB_EXPORT void leWidget_Constructor(leWidget *wgt)
Initialize widget.
Definition: legato_widget.c:67
leScheme_GetRenderColor
leColor leScheme_GetRenderColor(const leScheme *schm, leSchemeColor clr)
Gets a scheme render color for the current layer color mode.
Definition: legato_scheme.c:68
LE_TRUE
@ LE_TRUE
Definition: legato_common.h:159
_leWidget_GetAlphaAmount
uint32_t _leWidget_GetAlphaAmount(const leWidget *_this)
Get alpha amount.
Definition: legato_widget.c:527
_leWidget_GetCornerRadius
uint32_t _leWidget_GetCornerRadius(const leWidget *_this)
Get widget corner radius.
Definition: legato_widget.c:1084
legato_common.h
Common macros and definitions used by Legato.
_leWidget_RemoveEventFilter
leResult _leWidget_RemoveEventFilter(leWidget *_this, leWidgetEventFilter fltr)
Remove event filter.
Definition: legato_widget.c:1238
_leWidget_RemoveChild
leResult _leWidget_RemoveChild(leWidget *_this, leWidget *child)
Remove child from widget.
Definition: legato_widget.c:785
destructor
virtual void destructor(leString *_this)
Destruct string.
_leWidget_SetEnabled
leResult _leWidget_SetEnabled(leWidget *_this, leBool enable)
Set widget enabled flag.
Definition: legato_widget.c:620
_leWidget_SetPosition
leResult _leWidget_SetPosition(leWidget *_this, int32_t x, int32_t y)
Set widget x and y position.
Definition: legato_widget.c:247
_leWidget_Invalidate
void _leWidget_Invalidate(const leWidget *_this)
Invalidate widget.
Definition: legato_widget.c:1142
lePoint
This structure represents a integer Cartesian point.
Definition: legato_common.h:357
_leWidget_GetY
int32_t _leWidget_GetY(const leWidget *_this)
Get widget y position.
Definition: legato_widget.c:215