.. Generated automatically by doc/tools/makerst.py in Godot's source tree. .. DO NOT EDIT THIS FILE, but the doc/base/classes.xml source instead. .. _class_ButtonGroup: ButtonGroup =========== **Inherits:** :ref:`BoxContainer` **<** :ref:`Container` **<** :ref:`Control` **<** :ref:`CanvasItem` **<** :ref:`Node` **<** :ref:`Object` **Category:** Core Brief Description ----------------- Group of Buttons. Member Functions ---------------- +--------------------------------------+--------------------------------------------------------------------------------------------------------------------------+ | :ref:`Array` | :ref:`get_button_list` **(** **)** const | +--------------------------------------+--------------------------------------------------------------------------------------------------------------------------+ | :ref:`BaseButton` | :ref:`get_focused_button` **(** **)** const | +--------------------------------------+--------------------------------------------------------------------------------------------------------------------------+ | :ref:`BaseButton` | :ref:`get_pressed_button` **(** **)** const | +--------------------------------------+--------------------------------------------------------------------------------------------------------------------------+ | :ref:`int` | :ref:`get_pressed_button_index` **(** **)** const | +--------------------------------------+--------------------------------------------------------------------------------------------------------------------------+ | void | :ref:`set_pressed_button` **(** :ref:`BaseButton` button **)** | +--------------------------------------+--------------------------------------------------------------------------------------------------------------------------+ Signals ------- - **button_selected** **(** :ref:`Object` button **)** Description ----------- Group of :ref:`Button`. All direct and indirect children buttons become radios. Only one allows being pressed. Member Function Description --------------------------- .. _class_ButtonGroup_get_button_list: - :ref:`Array` **get_button_list** **(** **)** const Return the list of all the buttons in the group. .. _class_ButtonGroup_get_focused_button: - :ref:`BaseButton` **get_focused_button** **(** **)** const Return the focused button. .. _class_ButtonGroup_get_pressed_button: - :ref:`BaseButton` **get_pressed_button** **(** **)** const Return the pressed button. .. _class_ButtonGroup_get_pressed_button_index: - :ref:`int` **get_pressed_button_index** **(** **)** const Return the index of the pressed button (by tree order). .. _class_ButtonGroup_set_pressed_button: - void **set_pressed_button** **(** :ref:`BaseButton` button **)** Set the button to be pressed.