Skip to main content

CheckBox Class

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

Two-state check box with a label. CheckBox.ValueChanged fires on each toggle.

class CheckBox : public Widget {};

Constructors​

CheckBox(Widget parent)​

CheckBox(const Widget& parent);

Create a check box inside parent.

ParameterTypeDescription
parentWidgetContaining widget.

Properties​

IsChecked​

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

Checked 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 check box. null is treated as empty. Getter returns the last value set.

Returns string

Events​

ValueChanged​

Core::Event<...> ValueChanged;

Fires when CheckBox.IsChecked toggles via user interaction. Runs on the UI thread.