Slider Class
Package: GHIElectronics.Endpoint.UI
Namespace: GHIElectronics.Endpoint.UI
Draggable horizontal slider. Default range is 0-100.
class Slider : public Widget {};
Constructors
Slider(Widget parent)
Slider(const Widget& parent);
Create a slider inside parent.
| Parameter | Type | Description |
|---|---|---|
parent | Widget | Containing widget. |
Properties
Maximum
int32_t Maximum() const;
void Maximum(int32_t value);
Upper bound of Slider.Value. Setting it pushes both bounds to LVGL. Getter returns the last value set.
Returns int
Minimum
int32_t Minimum() const;
void Minimum(int32_t value);
Lower bound of Slider.Value. Setting it pushes both bounds to LVGL. Getter returns the last value set.
Returns int
Value
int32_t Value() const;
void Value(int32_t value);
Current slider position between Slider.Minimum and Slider.Maximum. Read-back is supported by LVGL.
Returns int
Events
ValueChanged
Core::Event<...> ValueChanged;
Fires on every change of Slider.Value from user drag. Runs on the UI thread.