Label
Category | refcounted |
Type | hime_label_t |
Inherits | View |
Display text.
Constructors
hime_label_t hime_label_create()
Create a new empty Label.
Return
hime_label_t
Methods
void hime_label_set_text(self, text)
Set the text to display.
Parameters
hime_label_t
selfconst char16_t*
text
Return
void
const char16_t* hime_label_get_text(self)
Return the text displayed.
Parameters
hime_label_const_t
self
Return
const char16_t*
void hime_label_set_multi_line(self, multi_line)
Set if the label text can wrap on multiple lines.
Parameters
hime_label_t
selfbool
multi_line
Return
void
bool hime_label_is_multi_line(self)
Get if the label text can wrap on multiple lines.
Default is false.
Parameters
hime_label_const_t
self
Return
bool
bool hime_label_set_selectable(self, selectable)
Set whether the label is selectable.
It will return false on failure. i.e. when selection is not supported but
selectable
is true. For example, obscured labels do not support text
selection.
Parameters
hime_label_t
selfbool
selectable
Return
bool
bool hime_label_is_selectable(self)
Return if the label is selectable.
Default is false.
Parameters
hime_label_const_t
self
Return
bool