Button
Inherited By: , CheckButton, , MenuButton, , ToolButton
Category: Core
Properties
disabled | |
StyleBox | focus |
font | |
Color | font_color |
font_color_disabled | |
Color | font_color_hover |
font_color_pressed | |
StyleBox | hover |
hseparation | |
StyleBox | normal |
pressed |
Enumerations
enum TextAlign:
- ALIGN_LEFT = 0 — Align the text to the left.
- ALIGN_CENTER = 1 — Align the text to the center.
- ALIGN_RIGHT = 2 — Align the text to the right.
Button is the standard themed button. It can contain text and an icon, and will display them according to the current Theme.
Property Descriptions
- clip_text
Setter | set_clip_text(value) |
Getter | get_clip_text() |
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. This property is disabled by default.
- bool flat
Flat buttons don’t display decoration.
- icon
Setter | set_button_icon(value) |
Getter | get_button_icon() |
- String text
The button’s text that will be displayed inside the button’s area.