class

Egui::Checkbox

Inherits Egui::Widget < Reference < Object

Constructors

new(checked : Bool, text : String, 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
style_class

Styled through the checkbox class: box_fill, box_stroke, rounding, check_color keys (unset keys keep the Visuals defaults — the classic look registers nothing, a Win95 preset paints a white sunken box with a black check).

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