class

Egui::Label

Inherits Egui::Widget < Reference < Object

Constructors

new(text : String, size : Float64 | Nil = nil, wrap : Bool | Nil = nil, userselect : Bool = true, id : String | Nil = nil)
Source
new(rich : RichText, wrap : Bool | Nil = nil, userselect : Bool = true, id : String | Nil = nil)
Source

Instance methods

inspector_label

Short human label for the inspector (the button's text, a label's text…); nil = no meaningful label.

Source
rich
Source
strikethrough
Source
style_class

CSS-like class this widget styles under in the global StyleSheet (nil = not registered yet). Widgets adopt the class system gradually; see Button and containers/sidebar.cr for the reference wiring (base + state overlays).

Source
style_properties

The stylable properties of THIS widget kind: the StyleVars keys its #ui actually reads, declared here — not hardcoded in the inspector. StyleProps.textlike / .buttonlike provide the common sets. An empty list (the default) means the widget reads no style keys and the inspector shows it as non-stylable.

Source
ui(ui : Ui) : Response
Source
underline

Text-decoration chainables (the Hyperlink#underline parity): a line under / through the WHOLE label's text.

Source
userselect?
Source
wrap
Source