class_buttongroup.rst 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. .. Generated automatically by doc/tools/makerst.py in Godot's source tree.
  2. .. DO NOT EDIT THIS FILE, but the ButtonGroup.xml source instead.
  3. .. The source is found in doc/classes or modules/<name>/doc_classes.
  4. .. _class_ButtonGroup:
  5. ButtonGroup
  6. ===========
  7. **Inherits:** :ref:`Resource<class_Resource>` **<** :ref:`Reference<class_Reference>` **<** :ref:`Object<class_Object>`
  8. **Category:** Core
  9. Brief Description
  10. -----------------
  11. Group of Buttons.
  12. Methods
  13. -------
  14. +--------------------------------------+-----------------------------------------------------------------------------+
  15. | :ref:`BaseButton<class_BaseButton>` | :ref:`get_pressed_button<class_ButtonGroup_get_pressed_button>` **(** **)** |
  16. +--------------------------------------+-----------------------------------------------------------------------------+
  17. Description
  18. -----------
  19. Group of :ref:`Button<class_Button>`. All direct and indirect children buttons become radios. Only one allows being pressed.
  20. :ref:`BaseButton.toggle_mode<class_BaseButton_toggle_mode>` should be ``true``.
  21. Method Descriptions
  22. -------------------
  23. .. _class_ButtonGroup_get_pressed_button:
  24. - :ref:`BaseButton<class_BaseButton>` **get_pressed_button** **(** **)**
  25. Return the pressed button.