Skip to main content

StackPanel Class

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

WPF-style StackPanel: stacks children vertically (default) or horizontally via LVGL flex layout. StackPanel.Spacing is the gap between children; each child's Widget.SetMargin stacks on top of that.

class StackPanel : public Widget {};

Constructors​

StackPanel(Widget parent)​

StackPanel(const Widget& parent);

Create a stack panel inside parent.

ParameterTypeDescription
parentWidgetContaining widget.

Properties​

Orientation​

void Orientation(Orientation value);

Direction in which children are arranged. Set-only; LVGL has no read-back.

Returns Orientation

Spacing​

void Spacing(int32_t value);

Gap in pixels between successive children. Set-only; LVGL has no read-back.

Returns int