This is a class designed to facilitate operations across an entire group of RadioButtons. More...
#include <radiobutton.h>
Collaboration diagram for Mezzanine::UI::RadioButtonGroup:Public Types | |
|
typedef RadioButtonContainer::const_iterator | ConstRadioButtonIterator |
| Const Iterator type for RadioButton instances stored by this class. | |
|
typedef std::vector < RadioButton * > | RadioButtonContainer |
| Basic container type for RadioButton storage by this class. | |
|
typedef RadioButtonContainer::iterator | RadioButtonIterator |
| Iterator type for RadioButton instances stored by this class. | |
Public Member Functions | |
| RadioButtonGroup () | |
| Class constructor. | |
| ~RadioButtonGroup () | |
| Class destructor. | |
| void | _NotifyButtonSelected (RadioButton *Selected) |
| Notifies this group a button has been selected. More... | |
| void | AddButtonToGroup (RadioButton *ToAdd) |
| Adds a RadioButton to this group. More... | |
| void | DeselectOtherButtons (RadioButton *Exclude) |
| Deselects all but one (or just all) button(s) in this group. More... | |
| Whole | GetNumButtons () const |
| Gets the number of buttons in this group. More... | |
| RadioButtonIterator | RadioButtonBegin () |
| Gets an iterator to the first RadioButton. More... | |
| ConstRadioButtonIterator | RadioButtonBegin () const |
| Gets a const iterator to the first RadioButton. More... | |
| RadioButtonIterator | RadioButtonEnd () |
| Gets an iterator to one passed the last RadioButton. More... | |
| ConstRadioButtonIterator | RadioButtonEnd () const |
| Gets an iterator to one passed the last RadioButton. More... | |
| void | RemoveButtonFromGroup (RadioButton *ToRemove) |
| Removes a RadioButton from this group. More... | |
| void | SelectButton (RadioButton *ToSelect) |
| Makes a RadioButton in this group the selection, deselecting all other RadioButtons in the group. More... | |
Protected Attributes | |
| RadioButton * | CurrentSelection |
| A pointer to the RadioButton that is the current selection, or NULL if none are selected. More... | |
| RadioButtonContainer | GroupButtons |
| A container storing all the RadioButtons belonging to this group. More... | |
This is a class designed to facilitate operations across an entire group of RadioButtons.
Definition at line 54 of file radiobutton.h.
| void Mezzanine::UI::RadioButtonGroup::_NotifyButtonSelected | ( | RadioButton * | Selected) |
Notifies this group a button has been selected.
Definition at line 124 of file radiobutton.cpp.
| void Mezzanine::UI::RadioButtonGroup::AddButtonToGroup | ( | RadioButton * | ToAdd) |
Adds a RadioButton to this group.
| ToAdd | A pointer to the RadioButton to be added to this group. |
Definition at line 69 of file radiobutton.cpp.
| void Mezzanine::UI::RadioButtonGroup::DeselectOtherButtons | ( | RadioButton * | Exclude) |
Deselects all but one (or just all) button(s) in this group.
| Exclude | The Button that will be excluded from forced deselection. |
Definition at line 99 of file radiobutton.cpp.
| Whole Mezzanine::UI::RadioButtonGroup::GetNumButtons | ( | ) | const |
Gets the number of buttons in this group.
Definition at line 77 of file radiobutton.cpp.
| RadioButtonGroup::RadioButtonIterator Mezzanine::UI::RadioButtonGroup::RadioButtonBegin | ( | ) |
Gets an iterator to the first RadioButton.
Definition at line 109 of file radiobutton.cpp.
| RadioButtonGroup::ConstRadioButtonIterator Mezzanine::UI::RadioButtonGroup::RadioButtonBegin | ( | ) | const |
Gets a const iterator to the first RadioButton.
Definition at line 115 of file radiobutton.cpp.
| RadioButtonGroup::RadioButtonIterator Mezzanine::UI::RadioButtonGroup::RadioButtonEnd | ( | ) |
Gets an iterator to one passed the last RadioButton.
Definition at line 112 of file radiobutton.cpp.
| RadioButtonGroup::ConstRadioButtonIterator Mezzanine::UI::RadioButtonGroup::RadioButtonEnd | ( | ) | const |
Gets an iterator to one passed the last RadioButton.
Definition at line 118 of file radiobutton.cpp.
| void Mezzanine::UI::RadioButtonGroup::RemoveButtonFromGroup | ( | RadioButton * | ToRemove) |
Removes a RadioButton from this group.
| ToRemove | A pointer to the RadioButton to be removed from this group. |
Definition at line 82 of file radiobutton.cpp.
| void Mezzanine::UI::RadioButtonGroup::SelectButton | ( | RadioButton * | ToSelect) |
Makes a RadioButton in this group the selection, deselecting all other RadioButtons in the group.
| ToSelect | A pointer to the RadioButton in this group that will be selected. |
Definition at line 90 of file radiobutton.cpp.
|
protected |
A pointer to the RadioButton that is the current selection, or NULL if none are selected.
Definition at line 69 of file radiobutton.h.
|
protected |
A container storing all the RadioButtons belonging to this group.
Definition at line 66 of file radiobutton.h.
1.8.4