Skip to content

RadioButton

Travis Gibson edited this page Sep 20, 2018 · 3 revisions

RadioButtons

Libui::RadioButton

A set of buttons where only one option can be chosen.

Methods

new()

Creates a new set of RadioButtons.

append(Str:D $text)

Adds another RadioButton to the set.

selected() returns SSIZE_T

Returns the index of the currently selected RadioButton.

set-selected(SSIZE_T $n) or selected(Int $n)

Sets the selected RadioButton

changed() returns Supply

Returns a Supply. An event is emitted whenever the selected RadioButton changes.

See SSIZE_T.