:github_url: hide .. Generated automatically by doc/tools/makerst.py in Godot's source tree. .. DO NOT EDIT THIS FILE, but the ToolButton.xml source instead. .. The source is found in doc/classes or modules//doc_classes. .. _class_ToolButton: ToolButton ========== **Inherits:** :ref:`Button` **<** :ref:`BaseButton` **<** :ref:`Control` **<** :ref:`CanvasItem` **<** :ref:`Node` **<** :ref:`Object` **Category:** Core Brief Description ----------------- Flat button helper class. Theme Properties ---------------- +---------------------------------+---------------------+ | :ref:`StyleBox` | disabled | +---------------------------------+---------------------+ | :ref:`StyleBox` | focus | +---------------------------------+---------------------+ | :ref:`Font` | font | +---------------------------------+---------------------+ | :ref:`Color` | font_color | +---------------------------------+---------------------+ | :ref:`Color` | font_color_disabled | +---------------------------------+---------------------+ | :ref:`Color` | font_color_hover | +---------------------------------+---------------------+ | :ref:`Color` | font_color_pressed | +---------------------------------+---------------------+ | :ref:`StyleBox` | hover | +---------------------------------+---------------------+ | :ref:`int` | hseparation | +---------------------------------+---------------------+ | :ref:`StyleBox` | normal | +---------------------------------+---------------------+ | :ref:`StyleBox` | pressed | +---------------------------------+---------------------+ Description ----------- This is a helper class to generate a flat :ref:`Button` (see :ref:`Button.flat`), creating a ``ToolButton`` is equivalent to: :: var btn = Button.new() btn.flat = true