Text label widget.
More...
#include "txt_main.h"
#include "txt_widget.h"
◆ txt_label_t
Label widget.
A label widget does nothing except show a text label.
◆ TXT_NewLabel()
Create a new label widget.
- Parameters
-
| label | String to display in the widget (UTF-8 format). |
- Returns
- Pointer to the new label widget.
◆ TXT_SetBGColor()
| void TXT_SetBGColor |
( |
txt_label_t * |
label, |
|
|
txt_color_t |
color |
|
) |
| |
Set the background color of a label widget.
- Parameters
-
| label | The widget. |
| color | The background color to use. |
◆ TXT_SetFGColor()
| void TXT_SetFGColor |
( |
txt_label_t * |
label, |
|
|
txt_color_t |
color |
|
) |
| |
Set the foreground color of a label widget.
- Parameters
-
| label | The widget. |
| color | The foreground color to use. |
◆ TXT_SetLabel()
| void TXT_SetLabel |
( |
txt_label_t * |
label, |
|
|
const char * |
value |
|
) |
| |
Set the string displayed in a label widget.
- Parameters
-
| label | The widget. |
| value | The string to display (UTF-8 format). |