Skip to content

GUI Labels

App: apps/gui_labels/

Shows every label variant side by side: default, colored (0–255), aligned (left/center/right), and word-wrapping. Colored separators are used to divide sections.

Terminal window
% ./plume3d gui_labels
VariantMethod
Default left-alignedlabel(text)
ColoredlabelColored(text, r, g, b, a) — colors 0–255
Colored + wrappinglabelColoredWrap(text, r, g, b, a)
Word-wrappinglabelWrap(text)
Left-alignedlabelAligned(text, 0x11)
Center-alignedlabelAligned(text, 0x12)
Right-alignedlabelAligned(text, 0x14)
Colored separatorseparator(r, g, b, a, true)
Gui.labelColored("Red warning", 255, 80, 80, 255)
Gui.labelColored("Semi-transparent", 255, 255, 0, 128)
// Alignment constants (Nuklear NK_TEXT_* flags):
// 0x11 = left, 0x12 = centered, 0x14 = right
Gui.labelAligned("Centered text", 0x12)
Gui.labelAligned("Right text", 0x14)
// Word wrap (long text wraps within column width)
Gui.labelWrap("This is a long label that will wrap onto the next line automatically.")
// Colored separator (rounded = true)
Gui.separator(200, 100, 100, 120, true)
  • Guilabel, labelColored, labelWrap, labelColoredWrap, labelAligned.
  • Guiseparator.