Combobox - Garland-g/perl6-libui GitHub Wiki

Combobox

Libui::Combobox

A standard combobox.

Methods

new()

Creates a new Libui::Combobox.

append(Str:D $text)

Adds another row to the Combobox containing $text.

selected() returns SSIZE_T

Returns the number of the row of selected text.

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

Sets the selected row to the given value.

changed() returns Supply

Returns a Supply. An event is emitted whenever the selection is changed.