MPLAB® Harmony Graphics Suite
|
Structure: laListWheelWidget_t
A list wheel widget is a widget that is similar to a normal list widget but can be dragged up or down to cycle through a single active value. This widget is also capable of momentum and motion over time.
typedef struct laListWheelWidget_t { laWidget widget; laArray items; int32_t selectedItem; int32_t visibleItems; int32_t topItem; laHAlignment halign; laRelativePosition iconPos; uint32_t iconMargin; laBool showIndicators; uint32_t indicatorArea; uint32_t shaded; int32_t cycleDistance; int32_t cycleDelta; int32_t firstTouchY; int32_t touchY; int32_t lastTouchY; laBool stillTouching; int32_t minFlickDelta; int32_t momentum; int32_t maxMomentum; int32_t momentumFalloff; int32_t rotation; int32_t rotationCounter; int32_t rotationTick; laBool snapPending; laListWheelIndicatorFill indicatorFill; laListWheelZoomEffects zoomEffects; laBool autoHideWheel; laBool hideWheel; struct { int32_t y; int32_t per; uint32_t nextItem; } paintState; laListWheelWidget_SelectedItemChangedEvent cb; laBorderType borderTypeCache; laBackgroundType backgroundTypeCache; GFXU_ExternalAssetReader* reader; } laListWheelWidget;
Members |
Description |
laWidget widget; |
widget base class |
laArray items; |
list of items for the wheel |
int32_t selectedItem; |
currently selected item |
int32_t visibleItems; |
number of visible items in the wheel must be odd and >= 3 |
int32_t topItem; |
the current top item |
laHAlignment halign; |
the horizontal alignment of the items |
laRelativePosition iconPos; |
the icon position of the items |
uint32_t iconMargin; |
the icon margin of the items |
laBool showIndicators; |
controls the visibility of the horizontal indicator bars in the center of the widget |
uint32_t indicatorArea; |
controls the distance between the indicator bars |
uint32_t shaded; |
determins if the background of the widget uses gradient shading to show depth |
int32_t cycleDistance; |
determins the amount of drag distance needed to cycle between items |
int32_t cycleDelta; |
tracks the current amount of drag distance |
int32_t firstTouchY; |
these track drag movement over time |
int32_t minFlickDelta; |
amount of distance that must be dragged in a single frame to trigger momentum mode |
int32_t momentum; |
current momentum value |
int32_t maxMomentum; |
maximum momentum value |
int32_t momentumFalloff; |
momentum falloff rate |
int32_t rotation; |
determines actual rotation of the wheel |
int32_t rotationCounter; |
time-based limiter for rotation calculations |
int32_t rotationTick; |
rotation time accumulator |
laListWheelIndicatorFill indicatorFill; |
the indicator's fill type |
laListWheelZoomEffects zoomEffects; |
zoomEffects |
laBool autoHideWheel; |
auto hides the wheel |
laBool hideWheel; |
flag to hide/show the wheel |
laListWheelWidget_SelectedItemChangedEvent cb; |
item changed callback |
laBorderType borderTypeCache; |
Copy of border type, used to restore borders on auto-hide |
laBackgroundType backgroundTypeCache; |
Copy of background type, used to restore borders on auto-hide |
GFXU_ExternalAssetReader* reader; |
asset reader |
None.
MPLAB® Harmony Graphics Suite
|