MPLABĀ® Harmony Graphics Suite  GFX v3.13.0
Legato API Documentation
legato_widget_list.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_list.h
32 
33  Summary:
34 
35 
36  Description:
37  This module implements list box widget functions.
38 *******************************************************************************/
39 
46 #ifndef LEGATO_LISTWIDGET_H
47 #define LEGATO_LISTWIDGET_H
48 
50 
51 #if LE_LIST_WIDGET_ENABLED == 1 && LE_SCROLLBAR_WIDGET_ENABLED == 1
52 
53 #ifdef __cplusplus
54 extern "C" {
55 #endif
56 
61 
62 typedef struct leListWidget leListWidget;
63 
64 // *****************************************************************************
65 /* Function Pointer:
66  leListWidget_SelectedItemChangedEvent
67 
68  Summary:
69  Selected item changed event function callback type
70 */
75 typedef void (* leListWidget_SelectedItemChangedEvent)(leListWidget*,
76  uint32_t idx,
77  leBool selected);
78 
79 // *****************************************************************************
80 // *****************************************************************************
81 // Section: Data Types and Constants
82 // *****************************************************************************
83 // *****************************************************************************
84 
85 // *****************************************************************************
86 /* Enumeration:
87  leListWidget_SelectionMode
88 
89  Summary:
90  Defines the list selection modes
91 
92  Description:
93  Single - a single selection from the list is allowed at any one time
94  Multiple - any number of selected items is allowed at any one time
95  Contiguous - any number of selected items in a contiguous serious is allowed
96  at any one time
97 
98  Remarks:
99  None.
100 */
107 typedef enum leListWidget_SelectionMode
108 {
109  LE_LIST_WIDGET_SELECTION_MODE_SINGLE,
110  LE_LIST_WIDGET_SELECTION_MODE_MULTIPLE,
111  LE_LIST_WIDGET_SELECTION_MODE_CONTIGUOUS
112 } leListWidget_SelectionMode;
113 
114 // *****************************************************************************
115 /* Structure:
116  leListItem
117 
118  Summary:
119  Defines a list item struct
120 
121  Description:
122 
123 
124  Remarks:
125  None.
126 */
131 typedef struct leListItem
132 {
133  const leString* string; // list item string
134  const leImage* icon; // list item icon
135  leBool selected; // list item selected flag
136  leRect rowRect; // list item row rectangle
137  leBool enabled; //enable or disable the item
138 } leListItem;
139 
140 /* internal use only */
145 typedef struct leListWidget leListWidget;
146 
147 #define LE_LISTWIDGET_VTABLE(THIS_TYPE) \
148  LE_WIDGET_VTABLE(THIS_TYPE) \
149  \
150  leListWidget_SelectionMode (*getSelectionMode)(const THIS_TYPE* _this); \
151  leResult (*setSelectionMode)(THIS_TYPE* _this, leListWidget_SelectionMode mode); \
152  leBool (*getAllowEmptySelection)(const THIS_TYPE* _this); \
153  leResult (*setAllowEmptySelection)(THIS_TYPE* _this, leBool allow); \
154  leRelativePosition (*getIconPosition)(const THIS_TYPE* _this); \
155  leResult (*setIconPosition)(THIS_TYPE* _this, leRelativePosition pos); \
156  uint32_t (*getIconMargin)(const THIS_TYPE* _this); \
157  leResult (*setIconMargin)(THIS_TYPE* _this, uint32_t mg); \
158  uint32_t (*getItemCount)(const THIS_TYPE* _this); \
159  int32_t (*appendItem)(THIS_TYPE* _this); \
160  int32_t (*insertItem)(THIS_TYPE* _this, int32_t idx); \
161  leResult (*removeItem)(THIS_TYPE* _this, int32_t idx); \
162  leResult (*removeAllItems)(THIS_TYPE* _this); \
163  leBool (*getItemSelected)(const THIS_TYPE* _this, int32_t idx); \
164  leResult (*setItemSelected)(THIS_TYPE* _this, int32_t idx, leBool selected); \
165  leResult (*toggleItemSelected)(THIS_TYPE* _this, int32_t idx); \
166  leResult (*selectAll)(THIS_TYPE* _this); \
167  leResult (*deselectAll)(THIS_TYPE* _this); \
168  int32_t (*getFirstSelectedItem)(const THIS_TYPE* _this); \
169  int32_t (*getLastSelectedItem)(const THIS_TYPE* _this); \
170  uint32_t (*getSelectionCount)(const THIS_TYPE* _this); \
171  leString* (*getItemString)(const THIS_TYPE* _this, int32_t idx); \
172  leResult (*setItemString)(THIS_TYPE* _this, int32_t idx, const leString* str); \
173  leImage* (*getItemIcon)(const THIS_TYPE* _this, int32_t idx); \
174  leResult (*setItemIcon)(THIS_TYPE* _this, int32_t idx, const leImage* img); \
175  leBool (*getItemEnable)(const THIS_TYPE* _this, int32_t idx); \
176  leResult (*setItemEnable)(THIS_TYPE* _this, int32_t idx, leBool b); \
177  leResult (*setItemVisible)(THIS_TYPE* _this, int32_t idx); \
178  leListWidget_SelectedItemChangedEvent (*getSelectedItemChangedEventCallback)(const THIS_TYPE* _this); \
179  leResult (*setSelectedItemChangedEventCallback)(THIS_TYPE* _this, leListWidget_SelectedItemChangedEvent cb); \
180 
181 typedef struct leListWidgetVTable
182 {
183  LE_LISTWIDGET_VTABLE(leListWidget)
184 } leListWidgetVTable;
185 
191 // *****************************************************************************
199 typedef struct leListWidget
200 {
201  leWidget widget; // list base class
202 
203  const leListWidgetVTable* fn;
204 
205  leListWidget_SelectionMode mode; // list selection mode
206  leBool allowEmpty; // indicates if the list must always have at least one
207  // selected item
208 
209  leArray items; // list containing the list items
210 
211  leRelativePosition iconPos; // icon position for the list icons
212  uint32_t iconMargin; // margin for the list icons
213 
214  int32_t itemDown; // tracks whether an input event is in process
215 
216  leScrollBarWidget* scrollbar; // internal scrollbar for this widget
217 
218  leListWidget_SelectedItemChangedEvent cb; // item selected changed event
219 } leListWidget;
220 
221 // *****************************************************************************
222 // *****************************************************************************
223 // Section: Routines
224 // *****************************************************************************
225 // *****************************************************************************
226 
238 leListWidget* leListWidget_New(void);
239 
250 void leListWidget_Constructor(leListWidget* wgt);
251 
252 #ifdef _DOXYGEN_
253 #define THIS_TYPE struct leWidget
254 
255 
256 // *****************************************************************************
257 /* Virtual Member Function:
258  leListWidget_SelectionMode getSelectionMode(const leListWidget* _this)
259 
260  Summary:
261  Gets the current selection mode
262 
263  Description:
264  Gets the current selection mode
265 
266  Parameters:
267  const leListWidget* _this - The list widget to operate on
268 
269  Remarks:
270  Usage - _this->fn->getSelectionMode(_this);
271 
272  Returns:
273  leListWidget_SelectionMode -
274 */
285 virtual leListWidget_SelectionMode getSelectionMode(const leListWidget* _this);
286 
287 // *****************************************************************************
288 /* Virtual Member Function:
289  leResult setSelectionMode(leListWidget* _this,
290  leListWidget_SelectionMode mode)
291 
292  Summary:
293  Sets the current selection mode
294 
295  Description:
296  Sets the current selection mode
297 
298  Parameters:
299  leListWidget* _this - The list widget to operate on
300  leListWidget_SelectionMode mode -
301 
302  Remarks:
303  Usage - _this->fn->setSelectionMode(_this, mode);
304 
305  Returns:
306  leResult - the result of the operation
307 */
319 virtual leResult setSelectionMode(leListWidget* _this,
320  leListWidget_SelectionMode mode);
321 
322 
323 // *****************************************************************************
324 /* Virtual Member Function:
325  leBool getAllowEmptySelection(const leListWidget* _this)
326 
327  Summary:
328  Gets the allow empty setting value
329 
330  Description:
331  Gets the allow empty setting value
332 
333  Parameters:
334  const leListWidget* _this - The list widget to operate on
335 
336  Remarks:
337  Usage - _this->fn->getAllowEmptySelection(_this);
338 
339  Returns:
340  leBool - the setting value
341 */
352 virtual leBool getAllowEmptySelection(const leListWidget* _this);
353 
354 
355 // *****************************************************************************
356 /* Virtual Member Function:
357  leResult setAllowEmptySelection(leListWidget* _this,
358  leBool allow)
359 
360  Summary:
361  Sets the allow empty setting value
362 
363  Description:
364  Sets the allow empty setting value
365 
366  Parameters:
367  leListWidget* _this - The list widget to operate on
368  leBool allow - the setting value
369 
370  Remarks:
371  Usage - _this->fn->setAllowEmptySelection(_this, allow);
372 
373  Returns:
374  leResult - the result of the operation
375 */
387 virtual leResult setAllowEmptySelection(leListWidget* _this,
388  leBool allow);
389 
390 
391 // *****************************************************************************
392 /* Virtual Member Function:
393  leRelativePosition getIconPosition(const leListWidget* _this)
394 
395  Summary:
396  Gets the image icon position
397 
398  Description:
399  Gets the image icon position
400 
401  Parameters:
402  const leListWidget* _this - The list widget to operate on
403 
404  Remarks:
405  Usage - _this->fn->getIconPosition(_this);
406 
407  Returns:
408  leRelativePosition - the position
409 */
420 virtual leRelativePosition getIconPosition(const leListWidget* _this);
421 
422 // *****************************************************************************
423 /* Virtual Member Function:
424  leResult setIconPosition(leListWidget* _this,
425  leRelativePosition pos)
426 
427  Summary:
428  Sets the image icon position
429 
430  Description:
431  Sets the image icon position
432 
433  Parameters:
434  leListWidget* _this - The list widget to operate on
435  leRelativePosition pos - the position value
436 
437  Remarks:
438  Usage - _this->fn->setIconPosition(_this, pos);
439 
440  Returns:
441  leResult - the result of the operation
442 */
455 virtual leResult setIconPosition(leListWidget* _this,
456  leRelativePosition pos);
457 
458 
459 // *****************************************************************************
460 /* Virtual Member Function:
461  uint32_t getIconMargin(const leListWidget* _this)
462 
463  Summary:
464  Gets the icon margin
465 
466  Description:
467  Gets the icon margin
468 
469  Parameters:
470  const leListWidget* _this - The list widget to operate on
471 
472  Remarks:
473  Usage - _this->fn->getIconMargin(_this);
474 
475  Returns:
476  uint32_t - the margin value
477 */
488 virtual uint32_t getIconMargin(const leListWidget* _this);
489 
490 // *****************************************************************************
491 /* Virtual Member Function:
492  leResult setIconMargin(leListWidget* _this,
493  uint32_t mg)
494 
495  Summary:
496  Sets the icon margin
497 
498  Description:
499  Sets the icon margin
500 
501  Parameters:
502  leListWidget* _this - The list widget to operate on
503  uint32_t mg - the margin value
504 
505  Remarks:
506  Usage - _this->fn->setIconMargin(_this, mg);
507 
508  Returns:
509  leResult - the result of the operation
510 */
523 virtual leResult setIconMargin(leListWidget* _this,
524  uint32_t mg);
525 
526 
527 // *****************************************************************************
528 /* Virtual Member Function:
529  uint32_t getItemCount(const leListWidget* _this)
530 
531  Summary:
532  Gets the item count
533 
534  Description:
535  Gets the item count
536 
537  Parameters:
538  const leListWidget* _this - The list widget to operate on
539 
540  Remarks:
541  Usage - _this->fn->getItemCount(_this);
542 
543  Returns:
544  uint32_t - the item count
545 */
556 virtual uint32_t getItemCount(const leListWidget* _this);
557 
558 // *****************************************************************************
559 /* Virtual Member Function:
560  int32_t appendItem(leListWidget* _this)
561 
562  Summary:
563  Appends an item to the list
564 
565  Description:
566  Appends an item to the list
567 
568  Parameters:
569  leListWidget* _this - The list widget to operate on
570 
571  Remarks:
572  Usage - _this->fn->appendItem(_this);
573 
574  Returns:
575  int32_t - the index of the new item
576 */
587 virtual int32_t appendItem(leListWidget* _this);
588 
589 // *****************************************************************************
590 /* Virtual Member Function:
591  int32_t insertItem(leListWidget* _this,
592  int32_t idx)
593 
594  Summary:
595  Inserts an item into the list
596 
597  Description:
598  Inserts an item into the list
599 
600  Parameters:
601  leListWidget* _this - The list widget to operate on
602  int32_t idx - the index
603 
604  Remarks:
605  Usage - _this->fn->insertItem(_this, idx);
606 
607  Returns:
608  int32_t - the index of the new item
609 */
620 virtual int32_t insertItem(leListWidget* _this,
621  int32_t idx);
622 
623 // *****************************************************************************
624 /* Virtual Member Function:
625  leResult removeItem(leListWidget* _this,
626  int32_t idx)
627 
628  Summary:
629  Removes an item from the list
630 
631  Description:
632  Removes an item from the list
633 
634  Parameters:
635  leListWidget* _this - The list widget to operate on
636  int32_t idx - the index
637 
638  Remarks:
639  Usage - _this->fn->removeItem(_this, idx);
640 
641  Returns:
642  leResult - the result of the operation
643 */
656 virtual leResult removeItem(leListWidget* _this,
657  int32_t idx);
658 
659 
660 // *****************************************************************************
661 /* Virtual Member Function:
662  leResult removeAllItems(leListWidget* _this)
663 
664  Summary:
665  Removes all items from the list
666 
667  Description:
668  Removes all items from the list
669 
670  Parameters:
671  leListWidget* _this - The list widget to operate on
672 
673  Remarks:
674  Usage - _this->fn->removeAllItems(_this);
675 
676  Returns:
677  leResult - the result of the operation
678 */
689 virtual leResult removeAllItems(leListWidget* _this);
690 
691 
692 // *****************************************************************************
693 /* Virtual Member Function:
694  leBool getItemSelected(const leListWidget* _this,
695  int32_t idx)
696 
697  Summary:
698  Gets the currently selected item
699 
700  Description:
701  Gets the currently selected item
702 
703  Parameters:
704  const leListWidget* _this - The list widget to operate on
705  int32_t idx - the index
706 
707  Remarks:
708  Usage - _this->fn->getItemSelected(_this, idx);
709 
710  Returns:
711  leBool - the selected state
712 */
724 virtual leBool getItemSelected(const leListWidget* _this,
725  int32_t idx);
726 
727 // *****************************************************************************
728 /* Virtual Member Function:
729  leResult setItemSelected(leListWidget* _this,
730  int32_t idx,
731  leBool selected)
732 
733  Summary:
734  Sets the currently selected item
735 
736  Description:
737  Sets the currently selected item
738 
739  Parameters:
740  leListWidget* _this - The list widget to operate on
741  int32_t idx - the index
742  leBool selected - the selected state
743 
744  Remarks:
745  Usage - _this->fn->setItemSelected(_this, idx, selected);
746 
747  Returns:
748  leResult - the result of the operation
749 */
763 virtual leResult setItemSelected(leListWidget* _this,
764  int32_t idx,
765  leBool selected);
766 
767 
768 
769 // *****************************************************************************
770 /* Virtual Member Function:
771  leResult toggleItemSelected(leListWidget* _this,
772  int32_t idx)
773 
774  Summary:
775  Toggles an item selection
776 
777  Description:
778  Toggles an item selection
779 
780  Parameters:
781  leListWidget* _this - The list widget to operate on
782  int32_t idx - the index
783 
784  Remarks:
785  Usage - _this->fn->toggleItemSelected(_this, idx);
786 
787  Returns:
788  leResult - the result of the operation
789 */
801 virtual leResult toggleItemSelected(leListWidget* _this,
802  int32_t idx);
803 
804 // *****************************************************************************
805 /* Virtual Member Function:
806  leResult selectAll(leListWidget* _this)
807 
808  Summary:
809  Selects all items
810 
811  Description:
812  Selects all items
813 
814  Parameters:
815  leListWidget* _this - The list widget to operate on
816 
817  Remarks:
818  Usage - _this->fn->selectAll(_this);
819 
820  Returns:
821  leResult - the result of the operation
822 */
834 virtual leResult selectAll(leListWidget* _this);
835 
836 
837 // *****************************************************************************
838 /* Virtual Member Function:
839  leResult deselectAll(leListWidget* _this)
840 
841  Summary:
842  Deselects all items
843 
844  Description:
845  Deselects all items
846 
847  Parameters:
848  leListWidget* _this - The list widget to operate on
849 
850  Remarks:
851  Usage - _this->fn->deselectAll(_this);
852 
853  Returns:
854  leResult - the result of the operation
855 */
866 virtual leResult deselectAll(leListWidget* _this);
867 
868 
869 // *****************************************************************************
870 /* Virtual Member Function:
871  int32_t getFirstSelectedItem(const leListWidget* _this)
872 
873  Summary:
874  Gets the first selected item
875 
876  Description:
877  Gets the first selected item
878 
879  Parameters:
880  const leListWidget* _this - The list widget to operate on
881 
882  Remarks:
883  Usage - _this->fn->getFirstSelectedItem(_this);
884 
885  Returns:
886  int32_t - the selected item index
887 */
899 virtual int32_t getFirstSelectedItem(const leListWidget* _this);
900 
901 // *****************************************************************************
902 /* Virtual Member Function:
903  int32_t getLastSelectedItem(const leListWidget* _this)
904 
905  Summary:
906  Gets the last selected item
907 
908  Description:
909  Gets the last selected item
910 
911  Parameters:
912  const leListWidget* _this - The list widget to operate on
913 
914  Remarks:
915  Usage - _this->fn->getLastSelectedItem(_this);
916 
917  Returns:
918  int32_t - the selected item index
919 */
930 virtual int32_t getLastSelectedItem(const leListWidget* _this);
931 
932 // *****************************************************************************
933 /* Virtual Member Function:
934  uint32_t getSelectionCount(const leListWidget* _this)
935 
936  Summary:
937  Gets the number of selected items
938 
939  Description:
940  Gets the number of selected items
941 
942  Parameters:
943  const leListWidget* _this - The list widget to operate on
944 
945  Remarks:
946  Usage - _this->fn->getSelectionCount(_this);
947 
948  Returns:
949  uint32_t - the number of selected items
950 */
961 virtual uint32_t getSelectionCount(const leListWidget* _this);
962 
963 // *****************************************************************************
964 /* Virtual Member Function:
965  leString* getItemString(const leListWidget* _this,
966  int32_t idx)
967 
968  Summary:
969  Gets the string pointer for an item
970 
971  Description:
972  Gets the string pointer for an item
973 
974  Parameters:
975  const leListWidget* _this - The list widget to operate on
976  int32_t idx - the index
977 
978  Remarks:
979  Usage - _this->fn->getItemString(_this, idx);
980 
981  Returns:
982  leString* - the string pointer
983 */
994 virtual leString* getItemString(const leListWidget* _this,
995  int32_t idx);
996 
997 // *****************************************************************************
998 /* Virtual Member Function:
999  leResult setItemString(leListWidget* _this,
1000  int32_t idx,
1001  const leString* str)
1002 
1003  Summary:
1004  Sets the string pointer for an item
1005 
1006  Description:
1007  Sets the string pointer for an item
1008 
1009  Parameters:
1010  leListWidget* _this - The list widget to operate on
1011  int32_t idx - the index
1012  const leString* str - the string pointer
1013 
1014  Remarks:
1015  Usage - _this->fn->setItemString(_this, idx, str);
1016 
1017  Returns:
1018  leResult - the result of the operation
1019 */
1035 virtual leResult setItemString(leListWidget* _this,
1036  int32_t idx,
1037  const leString* str);
1038 
1039 // *****************************************************************************
1040 /* Virtual Member Function:
1041  leImage* getItemIcon(const leListWidget* _this,
1042  int32_t idx)
1043 
1044  Summary:
1045  Gets the image pointer for an item
1046 
1047  Description:
1048  Gets the image pointer for an item
1049 
1050  Parameters:
1051  const leListWidget* _this - The list widget to operate on
1052  int32_t idx - the index
1053 
1054  Remarks:
1055  Usage - _this->fn->getItemIcon(_this, idx);
1056 
1057  Returns:
1058  leImage* - the image pointer
1059 */
1071 virtual leImage* getItemIcon(const leListWidget* _this,
1072  int32_t idx);
1073 
1074 // *****************************************************************************
1075 /* Virtual Member Function:
1076  leResult setItemIcon(leListWidget* _this,
1077  int32_t idx,
1078  const leImage* img)
1079 
1080  Summary:
1081  Sets the image pointer for an item
1082 
1083  Description:
1084  Sets the image pointer for an item
1085 
1086  Parameters:
1087  leListWidget* _this - The list widget to operate on
1088  int32_t idx - the index
1089  const leImage* img - the image pointer
1090 
1091  Remarks:
1092  Usage - _this->fn->setItemIcon(_this, idx, img);
1093 
1094  Returns:
1095  leResult - the result of the operation
1096 */
1111 virtual leResult setItemIcon(leListWidget* _this,
1112  int32_t idx,
1113  const leImage* img);
1114 
1115 // *****************************************************************************
1116 /* Virtual Member Function:
1117  leBool getItemEnable(const leListWidget* _this,
1118  int32_t idx)
1119 
1120  Summary:
1121  Gets an item enable state
1122 
1123  Description:
1124  Gets an item enable state
1125 
1126  Parameters:
1127  const leListWidget* _this - The list widget to operate on
1128  int32_t idx - the index
1129 
1130  Remarks:
1131  Usage - _this->fn->getItemEnable(_this, idx);
1132 
1133  Returns:
1134  leBool - the enable state
1135 */
1147 virtual leBool getItemEnable(const leListWidget* _this,
1148  int32_t idx);
1149 
1150 // *****************************************************************************
1151 /* Virtual Member Function:
1152  leResult setItemEnable(leListWidget* _this,
1153  int32_t idx,
1154  leBool b)
1155 
1156  Summary:
1157  Sets an item enable state
1158 
1159  Description:
1160  Sets an item enable state
1161 
1162  Parameters:
1163  leListWidget* _this - The list widget to operate on
1164  int32_t idx - the index
1165  leBool b - the enable state
1166 
1167  Remarks:
1168  Usage - _this->fn->setItemEnable(_this, idx, b);
1169 
1170  Returns:
1171  leResult - the result of the operation
1172 */
1187 virtual leResult setItemEnable(leListWidget* _this,
1188  int32_t idx,
1189  leBool b);
1190 
1191 
1192 
1203 virtual leListWidget_SelectedItemChangedEvent getSelectedItemChangedEventCallback
1204  (const leListWidget* _this);
1205 
1219 virtual leResult setSelectedItemChangedEventCallback(leListWidget* _this,
1220  leListWidget_SelectedItemChangedEvent cb);
1221 
1222 #undef THIS_TYPE
1223 #endif
1224 
1225 #ifdef __cplusplus
1226 }
1227 #endif
1228 
1229 #endif // LE_LIST_WIDGET_ENABLED && LE_SCROLLBAR_WIDGET_ENABLED
1230 #endif /* LEGATO_LISTWIDGET_H */
Common macros and definitions used by Legato.
Image functions and defintions.
Definition: legato_image.h:181
This struct represents a string.
Definition: legato_string.h:107
leResult
This enum represents function call results.
Definition: legato_common.h:123
This struct represents a rectangle.
Definition: legato_common.h:394
List widget functions and definitions.
This struct represents a array.
Definition: legato_array.h:64
Used to define a widget.
Definition: legato_widget.h:624
leRelativePosition
This enum represents the relative position modes for objects.
Definition: legato_common.h:302
leBool
This enum represents booleans.
Definition: legato_common.h:146
Scrollbar functions and definitions.
Definition: widget.py:1
Fixed string functions and definitions.