LabelButton

Categoryrefcounted
Typehime_label_button_t
InheritsButton

A button with text and icon.

The LabelButton does not have any visual style applied and is mostly served as the abstract base class of other buttons. For general buttons you should usually use the MaterialButton instead.

Constructors

hime_label_button_t hime_label_button_create()

Create a LabelButton.

Return

hime_label_button_t

Methods

void hime_label_button_set_title(self, title)

Set the text shown on the button.

Parameters

Return

void

const char16_t* hime_label_button_get_title(self)

Get the text shown on the button.

Parameters

Return

const char16_t*

void hime_label_button_make_default(self, is_default)

Make this button the default button, which handles the return key.

Parameters

Return

void

bool hime_label_button_is_default(self)

Return whether this button is the default button.

Parameters

Return

bool

void hime_label_button_set_image(self, image)

Set the image shown in the button.

Parameters

Return

void

void hime_label_button_set_image_for_state(self, image, state)

Set the image shown in the button for the specified state.

Parameters

Return

void