mirror of https://github.com/axmolengine/axmol.git
Add 'removeAllRadioButtons()'
This commit is contained in:
parent
202b549073
commit
887efdca1b
|
@ -224,6 +224,14 @@ void RadioButtonGroup::removeRadioButton(RadioButton* radioButton)
|
|||
}
|
||||
}
|
||||
|
||||
void RadioButtonGroup::removeAllRadioButtons()
|
||||
{
|
||||
while(!_radioButtons.empty())
|
||||
{
|
||||
removeRadioButton(_radioButtons.at(0));
|
||||
}
|
||||
}
|
||||
|
||||
ssize_t RadioButtonGroup::getNumberOfRadioButtons() const
|
||||
{
|
||||
return _radioButtons.size();
|
||||
|
|
|
@ -218,6 +218,11 @@ public:
|
|||
*/
|
||||
virtual void removeRadioButton(RadioButton* radioButton);
|
||||
|
||||
/**
|
||||
* Remove all radio button from this group.
|
||||
*/
|
||||
virtual void removeAllRadioButtons();
|
||||
|
||||
/**
|
||||
* Get the number of radio buttons in this group.
|
||||
*
|
||||
|
|
Loading…
Reference in New Issue