Button - Garland-g/perl6-libui GitHub Wiki
Button
Libui::Button
A button with a label.
Methods
new(Str:D :$label)
Creates a new Libui::Button.
text() returns Str
Returns the label.
text(Str:D $label)
or set-text(Str:D $label)
Sets the label.
clicked() returns Supply
Returns a Supply. An event is emitted whenever the button is pressed.