Combobox

Choose a single item from a list of items or type a custom value.

Categoryrefcounted
Typehime_combobox_t
Inheritshime_view_t

Constructors

hime_combobox_t hime_combobox_create()

Create a new Combobox.

Return

hime_combobox_t

Methods

void hime_combobox_set_model(self, model)

Set the combobox model used for displaying.

Parameters

Return

void

hime_combobox_model_t hime_combobox_get_model(self)

Return the combobox's model.

Parameters

Return

hime_combobox_model_t

void hime_combobox_set_text(self, text)

Set the text currently displayed in the Combobox.

Parameters

Return

void

const char16_t* hime_combobox_get_text(self)

Get the text for the Combobox.

Parameters

Return

const char16_t*

void hime_combobox_set_placeholder_text(self, placeholder)

Set the placeholder text to display when empty.

Parameters

Return

void

Events

void hime_combobox_on_change(picker)

Emitted when the content has changed.

Parameters

Preventable

No.