ButtonGroup¶
Inherits: BoxContainer < Container < Control < CanvasItem < Node < Object
Category: Core
Brief Description¶
Group of Buttons.
Member Functions¶
Array | get_button_list ( ) const |
BaseButton | get_focused_button ( ) const |
BaseButton | get_pressed_button ( ) const |
int | get_pressed_button_index ( ) const |
void | set_pressed_button ( BaseButton button ) |
Description¶
Group of Button. All direct and indirect children buttons become radios. Only one allows being pressed.
Member Function Description¶
- Array get_button_list ( ) const
Return the list of all the buttons in the group.
- BaseButton get_focused_button ( ) const
Return the focused button.
- BaseButton get_pressed_button ( ) const
Return the pressed button.
- int get_pressed_button_index ( ) const
Return the index of the pressed button (by tree order).
- void set_pressed_button ( BaseButton button )
Set the button to be pressed.