Provides a base class for different kinds of buttons.
</brief_description>
<description>
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.
</description>
<tutorials>
</tutorials>
<demos>
</demos>
<methods>
<methodname="_pressed"qualifiers="virtual">
<returntype="void">
</return>
<description>
Called when button is pressed.
</description>
</method>
<methodname="_toggled"qualifiers="virtual">
<returntype="void">
</return>
<argumentindex="0"name="pressed"type="bool">
</argument>
<description>
Called when button is toggled (only if toggle_mode is active).
</description>
</method>
<methodname="get_action_mode"qualifiers="const">
<returntype="int"enum="BaseButton.ActionMode">
</return>
<description>
Return the current mode of action (see [method set_action_mode]) (one of the ACTION_MODE_* constants).
</description>
</method>
<methodname="get_button_group"qualifiers="const">
<returntype="ButtonGroup">
</return>
<description>
</description>
</method>
<methodname="get_draw_mode"qualifiers="const">
<returntype="int"enum="BaseButton.DrawMode">
</return>
<description>
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.
This signal is emitted every time the button is toggled or pressed (i.e. activated, so on [code]button_down[/code] if "Click on press" is active and on [code]button_up[/code] otherwise).
</description>
</signal>
<signalname="toggled">
<argumentindex="0"name="pressed"type="bool">
</argument>
<description>
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 [i]pressed[/i] argument.
</description>
</signal>
</signals>
<constants>
<constantname="DRAW_NORMAL"value="0">
The normal state (i.e. not pressed, not hovered, not toggled and enabled) of buttons.