Skip to content

UXLabel

UXLabel is a static text label with no behaviour. Its kind is Label, which every driver with a native text widget realizes as one (GEM’s G_STRING, a UILabel, a TextView, a GtkLabel, the Win32 Label branch), so the toolkit does no drawing. setText works before or after attach; the realized node’s spec follows the title.

#use <UXKit>
UXLabel* caption = new UXLabel();
caption.setText((u8*)"Destination:");
content.addSubview(caption, UXGeom.make(8, 12, 100, 16));
  • Inherits UXControl: geometry and the realization seam. A label has no action.

Text · text · setText

u8* text(void)

The label’s text.

void setText(u8* s)

Replaces the text. If the label is already realized, the node’s spec is updated and the label is marked dirty. Before attach, the title is carried into realization.

UXLabel on the web backend

Text through the shared measurement seam, on canvas.