ButtonGroup¶
Inherits: BoxContainer < Container < Control < CanvasItem < Node < Object
Category: Core
Brief Description¶
Group of Buttons.
Member Functions¶
get_button_list ( ) const |
|
get_focused_button ( ) const |
|
get_pressed_button ( ) const |
|
get_pressed_button_index ( ) const |
|
void |
set_pressed_button ( BaseButton button ) |
Signals¶
button_selected ( Object 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.