Base class for different kinds of buttons.
|void||_pressed ( ) virtual|
|void||_toggled ( bool button_pressed ) virtual|
|int||get_draw_mode ( ) const|
|bool||is_hovered ( ) const|
Emitted when the button starts being held down.
Emitted when the button stops being held down.
This signal is emitted every time the button is toggled or pressed (i.e. activated, so on
button_down if “Click on press” is active and on
This signal is emitted when the button was just toggled between pressed and normal states (only if toggle_mode is active). The new state is contained in the pressed argument.
BaseButton is the abstract base class for buttons, so it shouldn’t be used directly (it doesn’t display anything). Other types of buttons inherit from it.
Called when button is pressed.
Called when button is toggled (only if toggle_mode is active).
Return the visual state used to draw the button. This is useful mainly when implementing your own draw code by either overriding _draw() or connecting to “draw” signal. The visual state of the button is defined by the DRAW_* enum.
Return true if mouse entered the button before it exit.
© 2014–2018 Juan Linietsky, Ariel Manzur, Godot Engine contributors
Licensed under the MIT License.