class_toolbutton.rst 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. :github_url: hide
  2. .. Generated automatically by doc/tools/makerst.py in Godot's source tree.
  3. .. DO NOT EDIT THIS FILE, but the ToolButton.xml source instead.
  4. .. The source is found in doc/classes or modules/<name>/doc_classes.
  5. .. _class_ToolButton:
  6. ToolButton
  7. ==========
  8. **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>`
  9. **Category:** Core
  10. Brief Description
  11. -----------------
  12. Flat button helper class.
  13. Properties
  14. ----------
  15. +-------------------------+------+-------------+
  16. | :ref:`bool<class_bool>` | flat | **O:** true |
  17. +-------------------------+------+-------------+
  18. Theme Properties
  19. ----------------
  20. +---------------------------------+---------------------+------------------------------+
  21. | :ref:`StyleBox<class_StyleBox>` | disabled | |
  22. +---------------------------------+---------------------+------------------------------+
  23. | :ref:`StyleBox<class_StyleBox>` | focus | |
  24. +---------------------------------+---------------------+------------------------------+
  25. | :ref:`Font<class_Font>` | font | |
  26. +---------------------------------+---------------------+------------------------------+
  27. | :ref:`Color<class_Color>` | font_color | Color( 0.88, 0.88, 0.88, 1 ) |
  28. +---------------------------------+---------------------+------------------------------+
  29. | :ref:`Color<class_Color>` | font_color_disabled | Color( 0.9, 0.95, 1, 0.3 ) |
  30. +---------------------------------+---------------------+------------------------------+
  31. | :ref:`Color<class_Color>` | font_color_hover | Color( 0.94, 0.94, 0.94, 1 ) |
  32. +---------------------------------+---------------------+------------------------------+
  33. | :ref:`Color<class_Color>` | font_color_pressed | Color( 1, 1, 1, 1 ) |
  34. +---------------------------------+---------------------+------------------------------+
  35. | :ref:`StyleBox<class_StyleBox>` | hover | |
  36. +---------------------------------+---------------------+------------------------------+
  37. | :ref:`int<class_int>` | hseparation | 3 |
  38. +---------------------------------+---------------------+------------------------------+
  39. | :ref:`StyleBox<class_StyleBox>` | normal | |
  40. +---------------------------------+---------------------+------------------------------+
  41. | :ref:`StyleBox<class_StyleBox>` | pressed | |
  42. +---------------------------------+---------------------+------------------------------+
  43. Description
  44. -----------
  45. This is a helper class to generate a flat :ref:`Button<class_Button>` (see :ref:`Button.flat<class_Button_property_flat>`), creating a ``ToolButton`` is equivalent to:
  46. ::
  47. var btn = Button.new()
  48. btn.flat = true