Struct Button
Standard themed Button.
struct Button
;
Button is the standard themed button. It can contain text and an icon, and will display them according to the current Theme.
Properties
| Name | Type | Description |
|---|---|---|
_align[get, set]
|
Button | Text alignment policy for the button's text, use one of the textalign constants.
|
clipText[get, set]
|
bool | When this property is enabled, text that is too large to fit the button is clipped, when disabled the Button will always be wide enough to hold the text. |
expandIcon[get, set]
|
bool | When enabled, the button's icon will expand/shrink to fit the button's size while keeping its aspect. |
flat[get, set]
|
bool | Flat buttons don't display decoration. |
icon[get, set]
|
Texture | Button's icon, if text is present the icon will be placed before the text. |
text[get, set]
|
String | The button's text that will be displayed inside the button's area. |
Methods
| Name | Description |
|---|---|
getButtonIcon
|
|
getClipText
|
|
getText
|
|
getTextAlign
|
|
isExpandIcon
|
|
isFlat
|
|
setButtonIcon
|
|
setClipText
|
|
setExpandIcon
|
|
setFlat
|
|
setText
|
|
setTextAlign
|
Enums
| Name | Description |
|---|---|
Constants
|
|
TextAlign
|