Public Member Functions | List of all members
sf::ui::CheckBoxGroup Class Reference

A group that allow only one check box selected in the same time. More...

#include <CheckBoxGroup.hpp>

Inheritance diagram for sf::ui::CheckBoxGroup:
sf::ui::ComponentObserver

Public Member Functions

 CheckBoxGroup ()
 A group of check box. More...
 
void addCheckBox (CheckBox &checkbox)
 Add a checkbox to this group. More...
 
std::set< CheckBox * >
::const_iterator 
getCheckboxBegin () const
 
std::set< CheckBox * >
::const_iterator 
getCheckboxEnd () const
 
void removeCheckbox (CheckBox &checkbox)
 Remove a checkbox to this group; This function does NOT delete the checkbox. More...
 
unsigned int countCheckbox () const
 
bool isCheckBoxInGroup (CheckBox *checkbox) const
 
virtual void onComponentEvent (const ComponentEvent &event)
 Called each time a component change. More...
 

Detailed Description

A group that allow only one check box selected in the same time.

See also
sf::ui::CheckBox

Definition at line 30 of file CheckBoxGroup.hpp.

Constructor & Destructor Documentation

sf::ui::CheckBoxGroup::CheckBoxGroup ( )

A group of check box.

Only one of this check boxes can be selected at time.

Member Function Documentation

void sf::ui::CheckBoxGroup::addCheckBox ( CheckBox checkbox)

Add a checkbox to this group.

Parameters
checkboxthe checkbox to add
unsigned int sf::ui::CheckBoxGroup::countCheckbox ( ) const
Returns
the number of checkboxes in this group
std::set<CheckBox*>::const_iterator sf::ui::CheckBoxGroup::getCheckboxBegin ( ) const
Returns
the begin of checkbox's iterator
std::set<CheckBox*>::const_iterator sf::ui::CheckBoxGroup::getCheckboxEnd ( ) const
Returns
the end of checkbox's iterator
bool sf::ui::CheckBoxGroup::isCheckBoxInGroup ( CheckBox checkbox) const
Returns
if the check box is in this group
Parameters
checkboxthe checkbox to check
virtual void sf::ui::CheckBoxGroup::onComponentEvent ( const ComponentEvent event)
virtual

Called each time a component change.

Implements sf::ui::ComponentObserver.

void sf::ui::CheckBoxGroup::removeCheckbox ( CheckBox checkbox)

Remove a checkbox to this group; This function does NOT delete the checkbox.

Parameters
checkbox- the checkbox to remove

The documentation for this class was generated from the following file: