MPLAB® Harmony Graphics Suite
|
Structure: laListWidget_t
A list widget is a widget that contains a series of vertical nodes. Each node can have text, an image, or both, and can be selected or not. The list has a built-in scrollbar. This allows the list to be larger than the visible area of the widget.
typedef struct laListWidget_t { laWidget widget; laListWidget_SelectionMode mode; laBool allowEmpty; laArray items; laHAlignment halign; laRelativePosition iconPos; uint32_t iconMargin; uint32_t itemDown; laScrollBarWidget* scrollbar; struct { laListItem* item; GFX_Rect itemRect; int32_t y; uint32_t nextItem; } paintState; laListWidget_SelectedItemChangedEvent cb; GFXU_ExternalAssetReader* reader; } laListWidget;
Members |
Description |
laWidget widget; |
list base class |
laListWidget_SelectionMode mode; |
list selection mode |
laBool allowEmpty; |
indicates if the list must always have at least one selected item |
laArray items; |
list containing the list items |
laHAlignment halign; |
horizontal alignment of the list |
laRelativePosition iconPos; |
icon position for the list icons |
uint32_t iconMargin; |
margin for the list icons |
uint32_t itemDown; |
tracks whether an input event is in process |
laScrollBarWidget* scrollbar; |
internal scrollbar for this widget |
laListWidget_SelectedItemChangedEvent cb; |
item selected changed event |
None.
MPLAB® Harmony Graphics Suite
|