class_toolbutton.rst 813 B

12345678910111213141516171819202122232425262728293031
  1. .. Generated automatically by doc/tools/makerst.py in Godot's source tree.
  2. .. DO NOT EDIT THIS FILE, but the ToolButton.xml source instead.
  3. .. The source is found in doc/classes or modules/<name>/doc_classes.
  4. .. _class_ToolButton:
  5. ToolButton
  6. ==========
  7. **Inherits:** :ref:`Button<class_button>` **<** :ref:`BaseButton<class_basebutton>` **<** :ref:`Control<class_control>` **<** :ref:`CanvasItem<class_canvasitem>` **<** :ref:`Node<class_node>` **<** :ref:`Object<class_object>`
  8. **Category:** Core
  9. Brief Description
  10. -----------------
  11. Flat button helper class.
  12. Description
  13. -----------
  14. This is a helper class to generate a flat :ref:`Button<class_button>` (see :ref:`Button.set_flat<class_Button_set_flat>`), creating a ToolButton is equivalent to:
  15. ::
  16. var btn = Button.new()
  17. btn.set_flat(true)