PixelLightAPI
.
|
Manages a button group. More...
#include <ButtonGroup.h>
Public Member Functions | |
PLGUI_API | ButtonGroup () |
Constructor. | |
virtual PLGUI_API | ~ButtonGroup () |
Destructor. | |
PLGUI_API bool | IsExclusive () const |
Check if the button activation is exclusive. | |
PLGUI_API void | SetExclusive (bool bExclusive) |
Set if the button activation is exclusive. | |
PLGUI_API void | Activate (AbstractToggleButton &cButton) |
Activates a certain button. | |
Public Attributes | |
PLCore::Event < AbstractToggleButton * > | EventActivate |
Protected Attributes | |
bool | m_bExclusive |
AbstractToggleButton * | m_pButton |
Manages a button group.
PLGUI_API PLGui::ButtonGroup::ButtonGroup | ( | ) |
Constructor.
virtual PLGUI_API PLGui::ButtonGroup::~ButtonGroup | ( | ) | [virtual] |
Destructor.
PLGUI_API bool PLGui::ButtonGroup::IsExclusive | ( | ) | const |
Check if the button activation is exclusive.
PLGUI_API void PLGui::ButtonGroup::SetExclusive | ( | bool | bExclusive | ) |
Set if the button activation is exclusive.
[in] | bExclusive | 'true', if the button activation is exclusive, else 'false' |
PLGUI_API void PLGui::ButtonGroup::Activate | ( | AbstractToggleButton & | cButton | ) |
Activates a certain button.
[in] | cButton | Button that is being activated |
bool PLGui::ButtonGroup::m_bExclusive [protected] |
If 'true', only one button can be activated at the same time
AbstractToggleButton* PLGui::ButtonGroup::m_pButton [protected] |
Button that is currently activated
|