MPLAB® Harmony Graphics Suite > Graphics Library > Aria Graphics Library > Aria User Interface Library Interface > b) Data Types and Constants > laListWidget Structure
MPLAB® Harmony Graphics Suite
laListWidget Structure

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.

C
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
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 
Remarks

None.

MPLAB® Harmony Graphics Suite