ToolButton¶
Inherits: Button < BaseButton < Control < CanvasItem < Node < Object
Flat button helper class.
Descripción¶
This is a helper class to generate a flat Button (see Button.flat), creating a ToolButton
is equivalent to:
var btn = Button.new()
btn.flat = true
Propiedades¶
flat |
|
Propiedades del Theme¶
|
||
|
||
|
||
|
||
|
||
|
||
Theme Property Descriptions¶
Color font_color
Default |
|
Default text Color of the ToolButton
.
Color font_color_disabled
Default |
|
Text Color used when the ToolButton
is disabled.
Color font_color_focus
Default |
|
Text Color used when the ToolButton
is focused. Only replaces the normal text color of the button. Disabled, hovered, and pressed states take precedence over this color.
Color font_color_hover
Default |
|
Text Color used when the ToolButton
is being hovered.
Color font_color_pressed
Default |
|
Text Color used when the ToolButton
is being pressed.
int hseparation
Default |
|
The horizontal space between ToolButton
's icon and text.
Font font
Font of the ToolButton
's text.
StyleBox disabled
StyleBox used when the ToolButton
is disabled.
StyleBox focus
StyleBox used when the ToolButton
is focused. It is displayed over the current StyleBox, so using StyleBoxEmpty will just disable the focus visual effect.
StyleBox hover
StyleBox used when the ToolButton
is being hovered.
StyleBox normal
Default StyleBox for the ToolButton
.
StyleBox pressed
StyleBox used when the ToolButton
is being pressed.