class_buttongroup.rst 3.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  1. .. Generated automatically by doc/tools/makerst.py in Godot's source tree.
  2. .. DO NOT EDIT THIS FILE, but the doc/base/classes.xml source instead.
  3. .. _class_ButtonGroup:
  4. ButtonGroup
  5. ===========
  6. **Inherits:** :ref:`BoxContainer<class_boxcontainer>` **<** :ref:`Container<class_container>` **<** :ref:`Control<class_control>` **<** :ref:`CanvasItem<class_canvasitem>` **<** :ref:`Node<class_node>` **<** :ref:`Object<class_object>`
  7. **Category:** Core
  8. Brief Description
  9. -----------------
  10. Group of Buttons.
  11. Member Functions
  12. ----------------
  13. +--------------------------------------+--------------------------------------------------------------------------------------------------------------------------+
  14. | :ref:`Array<class_array>` | :ref:`get_button_list<class_ButtonGroup_get_button_list>` **(** **)** const |
  15. +--------------------------------------+--------------------------------------------------------------------------------------------------------------------------+
  16. | :ref:`BaseButton<class_basebutton>` | :ref:`get_focused_button<class_ButtonGroup_get_focused_button>` **(** **)** const |
  17. +--------------------------------------+--------------------------------------------------------------------------------------------------------------------------+
  18. | :ref:`BaseButton<class_basebutton>` | :ref:`get_pressed_button<class_ButtonGroup_get_pressed_button>` **(** **)** const |
  19. +--------------------------------------+--------------------------------------------------------------------------------------------------------------------------+
  20. | :ref:`int<class_int>` | :ref:`get_pressed_button_index<class_ButtonGroup_get_pressed_button_index>` **(** **)** const |
  21. +--------------------------------------+--------------------------------------------------------------------------------------------------------------------------+
  22. | void | :ref:`set_pressed_button<class_ButtonGroup_set_pressed_button>` **(** :ref:`BaseButton<class_basebutton>` button **)** |
  23. +--------------------------------------+--------------------------------------------------------------------------------------------------------------------------+
  24. Signals
  25. -------
  26. - **button_selected** **(** :ref:`Object<class_object>` button **)**
  27. Description
  28. -----------
  29. Group of :ref:`Button<class_button>`. All direct and indirect children buttons become radios. Only one allows being pressed.
  30. Member Function Description
  31. ---------------------------
  32. .. _class_ButtonGroup_get_button_list:
  33. - :ref:`Array<class_array>` **get_button_list** **(** **)** const
  34. Return the list of all the buttons in the group.
  35. .. _class_ButtonGroup_get_focused_button:
  36. - :ref:`BaseButton<class_basebutton>` **get_focused_button** **(** **)** const
  37. Return the focused button.
  38. .. _class_ButtonGroup_get_pressed_button:
  39. - :ref:`BaseButton<class_basebutton>` **get_pressed_button** **(** **)** const
  40. Return the pressed button.
  41. .. _class_ButtonGroup_get_pressed_button_index:
  42. - :ref:`int<class_int>` **get_pressed_button_index** **(** **)** const
  43. Return the index of the pressed button (by tree order).
  44. .. _class_ButtonGroup_set_pressed_button:
  45. - void **set_pressed_button** **(** :ref:`BaseButton<class_basebutton>` button **)**
  46. Set the button to be pressed.