MPLAB® Harmony Graphics Suite
|
Structure: laButtonWidget_t
struct laButtonWidget_t { laWidget widget; laButtonState state; uint8_t toggleable; laString text; int32_t textLineSpace; laHAlignment halign; laVAlignment valign; GFXU_ImageAsset* pressedImage; GFXU_ImageAsset* releasedImage; laRelativePosition imagePosition; uint32_t imageMargin; int32_t pressedOffset; laButtonWidget_PressedEvent pressedEvent; laButtonWidget_ReleasedEvent releasedEvent; GFXU_ExternalAssetReader* reader; struct { GFX_Rect textRect; GFX_Rect clipRect; GFX_Rect drawRect; uint32_t newoffset; uint32_t end; GFX_Rect bounds; uint32_t numlines; uint32_t line; uint32_t lineY; uint32_t maxLines; GFX_Rect * lineRect; uint32_t * offset; } drawObj; };
Members |
Description |
laWidget widget; |
base widget header |
laButtonState state; |
button state |
uint8_t toggleable; |
indicates if the button is toggleable |
laString text; |
the string that holds the button text |
int32_t textLineSpace; |
the space between lines of text (pixels) |
laHAlignment halign; |
horizontal alignment of the button |
laVAlignment valign; |
vertical alignment of the button |
GFXU_ImageAsset* pressedImage; |
button pressed icon image |
GFXU_ImageAsset* releasedImage; |
button released icon image |
laRelativePosition imagePosition; |
icon position in relation to text |
uint32_t imageMargin; |
distance between text and icon |
int32_t pressedOffset; |
pressed text offset distance |
laButtonWidget_PressedEvent pressedEvent; |
pressed event callback |
laButtonWidget_ReleasedEvent releasedEvent; |
released event callback |
GFXU_ExternalAssetReader* reader; |
external asset reader state |
struct { GFX_Rect textRect; GFX_Rect clipRect; GFX_Rect drawRect; uint32_t newoffset; uint32_t end; GFX_Rect bounds; uint32_t numlines; uint32_t line; uint32_t lineY; uint32_t maxLines; GFX_Rect * lineRect; uint32_t * offset; } drawObj; |
stores string draw parameters, primarily for multi-line text |
None.
MPLAB® Harmony Graphics Suite
|