![]() |
µGFX
2.9
version 2.9
|
Simple label widget.
Setting the dimensions of the widget to 0 will automatically set the labels dimensions to fit the entire text. Note that the dimensions of the label will change every time the text is changed through gwinSetText().
Modules | |
Renderings | |
Built-in rendering functions for the label widget. | |
Functions | |
GHandle | gwinGLabelCreate (GDisplay *g, GLabelObject *widget, GWidgetInit *pInit) |
Create a label widget. More... | |
void | gwinLabelSetBorder (GHandle gh, gBool border) |
Border settings for the default rendering routine. More... | |
void | gwinLabelSetAttribute (GHandle gh, gCoord tab, const char *attr) |
Add an text attribute in front of the normal label text. More... | |
#define | GLABEL_FLG_BORDER 0x01 |
The internal label flags. More... | |
GHandle gwinGLabelCreate | ( | GDisplay * | g, |
GLabelObject * | widget, | ||
GWidgetInit * | pInit | ||
) |
Create a label widget.
A label widget is a simple window which has a static text.
[in] | g | The GDisplay to display this window on |
[in] | widget | The label structure to initialise. If this is NULL, the structure is dynamically allocated. |
[in] | pInit | The initialisation parameters to use. |
Add an text attribute in front of the normal label text.
Often you want to display a text like this: Current IP: 192.168.1.42 In that case, the actual IP will be variable, the text in front of it always remains the same. The static text is called the attribute and can be set using this function. Furthermore, the tab can be set in order to vertically align multiple labels. Please check out the website for further explanation, illustraions and usage examples.
[in] | gh | The widget handle (must be a label handle) |
[in] | tab | The distance of the label text from the left widget edge |
[in] | attr | The attribute to be displayed |
void gwinLabelSetBorder | ( | GHandle | gh, |
gBool | border | ||
) |
Border settings for the default rendering routine.
[in] | gh | The widget handle (must be a label handle) |
[in] | border | Shall a border be rendered? |
#define GLABEL_FLG_BORDER 0x01 |
The internal label flags.
Definition at line 41 of file gwin_label.h.