Return to Index

RadioButton

Parent class: Widget

A simple toggleable radio button widget.


Object Events:
ToggledThe event generated when the radio button changes state.

Method Summary:
RadioButton::RadioButton();
void RadioButton::setLabel(const String& pLabel);
String RadioButton::getLabel();
void RadioButton::setState(bool pState);
bool RadioButton::getState();
void RadioButton::toggle();



RadioButton::RadioButton
RadioButton::RadioButton();

Constructs a new radio button.

void RadioButton::setLabel
void RadioButton::setLabel(const String& pLabel);

Sets the text displayed on the radio button.
Parameters:
const String& pLabelThe new radio button label.

String RadioButton::getLabel
String RadioButton::getLabel();

Returns the radio button's label.

void RadioButton::setState
void RadioButton::setState(bool pState);

Changes the state of the radio button. Note that this does not generate a Toggle event.
Parameters:
bool pStateThe new state.

bool RadioButton::getState
bool RadioButton::getState();

Returns the current state of the radio button.

void RadioButton::toggle
void RadioButton::toggle();

Changes to the opposite state. This generates a Toggled event.


Generated automatically by docgen 0.0.1
© 2003 Aron Dobos