Textfield
| Category | refcounted |
| Type | hime_textfield_t |
| Inherits | View |
Single-line text input view.
Constructors
hime_textfield_t hime_textfield_create()
Create a new Textfield.
Return
hime_textfield_tMethods
void hime_textfield_set_type(self, type)
Set the input type.
Parameters
hime_textfield_tselfhime_textfield_type_ttype
Return
voidvoid hime_textfield_set_text(self, text)
Set the text currently displayed in the Textfield.
Parameters
hime_textfield_tselfconst char16_t*text
Return
voidconst 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
hime_textfield_tselfconst char16_t*placeholder
Return
voidvoid hime_textfield_set_readonly(self, readonly)
Set whether the textfield is readonly.
Parameters
hime_textfield_tselfboolreadonly
Return
voidbool hime_textfield_is_readonly(self)
Get whether the textfield is read-only.
Parameters
Return
boolvoid hime_textfield_set_invalid(self, invalid)
Set whether to indicate the textfield has invalid content.
Parameters
hime_textfield_tselfboolinvalid
Return
voidbool hime_textfield_is_invalid(self)
Get whether to indicate the textfield has invalid content.
Parameters
Return
bool