Preparing search index...

    Enum specifying horizontal or vertical orientation.

        // Orientation specifies horizontal or vertical direction for widgets.
    // Use it with Separator to create visual dividers in layouts.
    const root = new Widget(parent);
    const layout = new BoxLayout();
    layout.setDirection(Direction.TopToBottom);
    root.layout = layout;

    const topLabel = new Label(root);
    topLabel.text = 'Section A';
    layout.addWidget(topLabel);

    // Horizontal separator divides content vertically
    const sep = new Separator(Orientation.Horizontal, Shadow.Plain, root);
    layout.addWidget(sep);

    const bottomLabel = new Label(root);
    bottomLabel.text = 'Section B';
    layout.addWidget(bottomLabel);
    Index

    Enumeration Members

    Enumeration Members

    Horizontal: number

    Horizontal orientation, laying out elements along the X axis.

    Vertical: number

    Vertical orientation, laying out elements along the Y axis.