28 lines
734 B
Markdown
28 lines
734 B
Markdown
|
# uiLabel
|
||
|
|
||
|
uiLabel is a control which represents a line of text that labels an element or area of a GUI.
|
||
|
|
||
|
Windows | Unix | OS X
|
||
|
-----|-----|-----
|
||
|
||
|
||
|
|
||
|
uiLabel derives from [uiControl](uiControl.md).
|
||
|
|
||
|
## constructor NewLabel()
|
||
|
```c
|
||
|
uiLabel *uiNewLabel(const char *text);
|
||
|
```
|
||
|
Creates a new uiLabel with the specifed text.
|
||
|
|
||
|
## func Text()
|
||
|
```c
|
||
|
char *uiLabelText(uiLabel *l);
|
||
|
```
|
||
|
Returns the text shown on the uiLabel. Free the returned string with `uiTextFree()`.
|
||
|
|
||
|
## func SetText()
|
||
|
```c
|
||
|
void uiLabelSetText(uiLabel *l, const char *text);
|
||
|
```
|
||
|
Changes the text shown on the uiLabel to the given text string.
|