Textfield

Single-line text input view.

Categoryrefcounted
Typehime_textfield_t
Inheritshime_view_t

Constructors

hime_textfield_t hime_textfield_create()

Create a new Textfield.

Return

hime_textfield_t

Methods

void hime_textfield_set_type(self, type)

Set the input type.

Parameters

Return

void

void hime_textfield_set_text(self, text)

Set the text currently displayed in the Textfield.

Parameters

Return

void

const char16_t* hime_textfield_get_text(self)

Get the text for the Textfield.

Call sites should take care to not reveal the text for a password textfield.

Parameters

Return

const char16_t*

void hime_textfield_set_placeholder_text(self, placeholder)

Set the placeholder text to display when empty.

Parameters

Return

void

void hime_textfield_set_readonly(self, readonly)

Set whether the textfield is readonly.

Parameters

Return

void

bool hime_textfield_is_readonly(self)

Get whether the textfield is read-only.

Parameters

Return

bool

void hime_textfield_set_invalid(self, invalid)

Set whether to indicate the textfield has invalid content.

Parameters

Return

void

bool hime_textfield_is_invalid(self)

Get whether to indicate the textfield has invalid content.

Parameters

Return

bool