Skip to content
Alessandro Febretti edited this page Mar 22, 2014 · 5 revisions

module omegaToolkit extends Widget wraps omegaTookit::ui::Button

Represents a generic button.

Methods

Method(s) Description
static Button create(Container parent) Creates a new button widget inside the specified Container.
string getText(), setText(string name) Gets or sets the label for the button.
bool isCheckable() True if this button is a check box.
setCheckable(value) Sets the button as a check box.
bool isChecked(), setChecked(bool value) Gets or sets the checked state for checkable buttons
bool isRadio(), bool setRadio(value) Gets or sets the radio button mode for this button. When multiple radio buttons exist in the same container, only one of them can be checked.
setIcon(PixelData icon), PixelData getIcon() Gets or sets the button icon (as a PixelData object)
Image getImage() Gets a reference to the internal Image widget used to display the button icon
Label getLabel() gets the internal Label Widget used to display the button label.
Clone this wiki locally