LensStudio:Ui.Orientation
EnumEnum specifying horizontal or vertical orientation.
Index
Enumeration Members
Example
// 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);
Enumeration Members
Horizontal
Horizontal:
number
Horizontal orientation, laying out elements along the X axis.
Vertical
Vertical:
number
Vertical orientation, laying out elements along the Y axis.