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_t
Methods
void hime_textfield_set_type(self, type)
Set the input type.
Parameters
hime_textfield_t
selfhime_textfield_type_t
type
Return
void
void hime_textfield_set_text(self, text)
Set the text
currently displayed in the Textfield.
Parameters
hime_textfield_t
selfconst char16_t*
text
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
hime_textfield_t
selfconst char16_t*
placeholder
Return
void
void hime_textfield_set_readonly(self, readonly)
Set whether the textfield is readonly
.
Parameters
hime_textfield_t
selfbool
readonly
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
hime_textfield_t
selfbool
invalid
Return
void
bool hime_textfield_is_invalid(self)
Get whether to indicate the textfield has invalid content.
Parameters
Return
bool