Inheritance diagram for Exponent::GUI::Controls::CRadioButton:
A radio button is a panel with a set of buttons
To set the postions of the panel, call getButtons,
and then loop through the array, remmebering that the
radio button itself is a panel and therefore controls are set relative to it..
Definition at line 44 of file CRadioButton.hpp.
Exponent::GUI::Controls::CRadioButton::CRadioButton | ( | IControlRoot * | root, | |
const long | uniqueId, | |||
const CRect & | area, | |||
const long | numberOfButtons, | |||
IActionListener * | listener = NULL | |||
) |
Construction
root | The root control that this control is being added to | |
uniqueId | The unique Identifier of this control or CCONTROL_NO_ID_REQUIRED if no id is required | |
area | The area of this control relative to the root controls top left | |
numberOfButtons | The number of buttons to be displayed as part of the radio button | |
listener | The action listener |
virtual Exponent::GUI::Controls::CRadioButton::~CRadioButton | ( | ) | [virtual] |
Destruction
virtual TCountedPointerArray<IControl>* Exponent::GUI::Controls::CRadioButton::getButtons | ( | ) | const [inline, virtual] |
Get the buttons array
TCountedPointerArray<IControl>* | The array of button, guaranteed to be valid |
Definition at line 97 of file CRadioButton.hpp.
References Exponent::GUI::Controls::CControlRoot::m_controlArray.
virtual long Exponent::GUI::Controls::CRadioButton::getSelectedIndex | ( | ) | const [inline, virtual] |
Get the selected index
long | The index of the currently selected button |
Definition at line 83 of file CRadioButton.hpp.
References m_selectedIndex.
virtual void Exponent::GUI::Controls::CRadioButton::handleActionEvent | ( | const CActionEvent & | event | ) | [virtual] |
Handle the action event
event | The event to handle |
virtual void Exponent::GUI::Controls::CRadioButton::setArea | ( | const CRect & | area | ) | [virtual] |
Set the size of the control
area | The are of the control |
Reimplemented from Exponent::GUI::Controls::CControlPanel.
virtual void Exponent::GUI::Controls::CRadioButton::setNumberOfButtons | ( | const long | number | ) | [virtual] |
Set the number of buttons
number | The number of buttons. Implies reinitialisation of class |
virtual void Exponent::GUI::Controls::CRadioButton::setSelectedButton | ( | const long | index | ) | [virtual] |
Set the selected indx
index | THe index of the button you want to be selected |
long Exponent::GUI::Controls::CRadioButton::m_numberOfButtons [protected] |
How many buttons do we have
Definition at line 118 of file CRadioButton.hpp.
long Exponent::GUI::Controls::CRadioButton::m_selectedIndex [protected] |
Which is currently selected
Definition at line 117 of file CRadioButton.hpp.
Referenced by getSelectedIndex().