Skip to content
Travis Gibson edited this page Sep 20, 2018 · 7 revisions

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.