Label

Display text.

Categoryrefcounted
Typehime_label_t
Inheritshime_view_t

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

Return

void

const char16_t* hime_label_get_text(self)

Return the text displayed.

Parameters

Return

const char16_t*

void hime_label_set_multi_line(self, multi_line)

Set if the label text can wrap on multiple lines.

Parameters

Return

void

bool hime_label_is_multi_line(self)

Get if the label text can wrap on multiple lines.

Default is false.

Parameters

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

Return

bool

bool hime_label_is_selectable(self)

Return if the label is selectable.

Default is false.

Parameters

Return

bool