LabelButton
| Category | refcounted |
| Type | hime_label_button_t |
| Inherits | Button |
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_tMethods
void hime_label_button_set_title(self, title)
Set the text shown on the button.
Parameters
hime_label_button_tselfconst char16_t*title
Return
voidconst 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
hime_label_button_tselfboolis_default
Return
voidbool hime_label_button_is_default(self)
Return whether this button is the default button.
Parameters
Return
boolvoid hime_label_button_set_image(self, image)
Set the image shown in the button.
Parameters
hime_label_button_tselfhime_image_timage
Return
voidvoid hime_label_button_set_image_for_state(self, image, state)
Set the image shown in the button for the specified state.
Parameters
hime_label_button_tselfhime_image_timagehime_button_state_tstate
Return
void