Skip to main content

RadioButton Class

Package: GHIElectronics.Endpoint.UI
Namespace: GHIElectronics.Endpoint.UI

Circular-indicator CheckBox. Grouping (mutual exclusion) is up to the caller: subscribe to ValueChanged on each radio and clear the others when one gets selected.

class RadioButton : public Widget {};

Constructors​

RadioButton(Widget parent)​

RadioButton(const Widget& parent);

Create a radio button inside parent.

ParameterTypeDescription
parentWidgetContaining widget.

Properties​

IsChecked​

bool IsChecked() const;
void IsChecked(bool value);

Selected state. Read-back is supported by LVGL.

Returns bool

Text​

std::string Text() const;
void Text(std::string value);

Label text shown next to the radio button. null is treated as empty. Getter returns the last value set.

Returns string

Events​

ValueChanged​

Core::Event<...> ValueChanged;

Fires when the radio button is toggled via user interaction. Runs on the UI thread.