libui/docs/uiLabel.md

734 B

uiLabel

uiLabel is a control which represents a line of text that labels an element or area of a GUI.

Windows Unix OS X
Label on Windows Label on Unix Label on OS X

uiLabel derives from uiControl.

constructor NewLabel()

uiLabel *uiNewLabel(const char *text);

Creates a new uiLabel with the specifed text.

func Text()

char *uiLabelText(uiLabel *l);

Returns the text shown on the uiLabel. Free the returned string with uiTextFree().

func SetText()

void uiLabelSetText(uiLabel *l, const char *text);

Changes the text shown on the uiLabel to the given text string.