Label
class in package klyn.gui.windows

    public class Label extends Widget:

Widget
└ Label

Static text label.

Labels use the widget font stack so they integrate with modern form controls.

    lbl = Label("First name")

Properties

Modifier and Type | Member | Description
--- | --- | ---
public property | buddy `buddy as Widget = null` | Widget focused when the label mnemonic is activated.
public readonly property | displayText `displayText as String:` | Text rendered on screen after removing mnemonic markers.
public property | text `text as String = ""` | Raw label text.

Properties inherited from Widget: accentColor, backgroundColor, borderColor, bottom, canFocus, cornerRadius, font, foregroundColor, hasFocus, height, isEnabled, isHovered, isManaged, isVisible, layoutParams, margin, maxHeight, maxWidth, minHeight, minWidth, parent, preferredHeight, preferredWidth, right, sizePolicy, styleClass, width, window, x, y
Constructors

Modifier and Type | Member | Description
--- | --- | ---
public | Label `Label(text as String = ""):` | No summary.

Methods

Modifier and Type | Member | Description
--- | --- | ---
public static | displayTextFor `displayTextFor(value as String) as String:` | Removes mnemonic markers from label text.
public static | mnemonicFor `mnemonicFor(value as String) as String:` | Returns the mnemonic character declared in a label text.
public override | paint `paint(painter as Painter) as Void:` | Paints the label content with antialiased text.

Methods inherited from Widget: blur, containsPoint, paint, repaint, requestFocus, resolvePreferredHeight, resolvePreferredWidth, resolvedFont, setBounds