Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
|
Class: kodi::gui::controls::CRadioButton
Functions | |
kodi::gui::controls::CRadioButton::CRadioButton (CWindow *window, int controlId) | |
Construct a new control. | |
kodi::gui::controls::CRadioButton::~CRadioButton () override=default | |
Destructor. | |
void | kodi::gui::controls::CRadioButton::SetVisible (bool visible) |
Set the control on window to visible. | |
void | kodi::gui::controls::CRadioButton::SetEnabled (bool enabled) |
Set's the control's enabled/disabled state. | |
void | kodi::gui::controls::CRadioButton::SetLabel (const std::string &label) |
To set the text string on radio button. | |
std::string | kodi::gui::controls::CRadioButton::GetLabel () const |
Get the used text from control. | |
void | kodi::gui::controls::CRadioButton::SetSelected (bool selected) |
To set radio button condition to on or off. | |
bool | kodi::gui::controls::CRadioButton::IsSelected () const |
Get the current selected condition of radio button. | |
Class: kodi::gui::controls::CRadioButton
You can choose the position, size, and look of the button. When the user clicks on the radio button, the state will change, toggling the extra textures (textureradioon and textureradiooff). Used for settings controls.
It has the header #include <kodi/gui/controls/RadioButton.h> be included to enjoy it.
Here you find the needed skin part for a radio button control.
Example:
Construct a new control.
[in] | window | Related window control class |
[in] | controlId | Used skin xml control id |
|
inline |
Get the used text from control.
|
inline |
Get the current selected condition of radio button.
Set's the control's enabled/disabled state.
[in] | enabled | If true enabled, otherwise disabled |
|
inline |
To set the text string on radio button.
[in] | label | Text to show |
To set radio button condition to on or off.
[in] | selected | true set radio button to selection on, otherwise off |
Set the control on window to visible.
[in] | visible | If true visible, otherwise hidden |
|
overridedefault |
Destructor.