MPLAB® Harmony Graphics Suite
|
Structure: laLabelWidget_t
A label widget is a simple widget that draws a string of text.
typedef struct laLabelWidget_t { laWidget widget; laString text; laHAlignment halign; laVAlignment valign; GFXU_ExternalAssetReader* reader; int32_t textLineSpace; 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; } laLabelWidget;
Members |
Description |
laWidget widget; |
widget base class |
laString text; |
string to draw |
laHAlignment halign; |
horizontal alignment of string |
laVAlignment valign; |
vertical alignment of string |
GFXU_ExternalAssetReader* reader; |
asset reader |
int32_t textLineSpace; |
new line space per pixel |
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
|