Picker

Categoryrefcounted
Typehime_picker_t
InheritsView

Choose a single item from a list of items.

Constructors

hime_picker_t hime_picker_create()

Create a new Picker.

Return

hime_picker_t

Methods

void hime_picker_set_model(self, model)

Set the combobox model used for displaying.

Parameters

Return

void

hime_combobox_model_t hime_picker_get_model(self)

Return the picker's model.

Parameters

Return

hime_combobox_model_t

void hime_picker_select_item_at(self, index)

Select the item at index.

Pass a negative number to deselect the item.

Parameters

Return

void

const char16_t* hime_picker_get_selected_item(self)

Return the text of selected item.

Parameters

Return

const char16_t*

int hime_picker_get_selected_item_index(self)

Return the index of selected item.

When nothing is selected, -1 will be returned.

Parameters

Return

int

Events

void hime_picker_on_change(picker)

Emitted when the content has changed.

Parameters

Preventable

No.