Checkbox - Garland-g/perl6-libui GitHub Wiki
Checkbox
Libui::Checkbox
A standard checkbox.
Methods
new(Str:D $text)
Creates a new Checkbox.
text() returns Str
Returns the text of the Checkbox.
set-text(Str:D $text)
or text(Str:D $text)
Sets the text of the Checkbox.
toggled() returns Supply
Returns a Supply. An event is emitted whenever the Checkbox is toggled.
checked() returns Bool
Returns True if checked.
set-checked(Bool:D(Int) $checked)
or checked(Bool:D(Int) $checked)
Sets the checked state of the checkbox.