SplitterAxis

定义拆分器沿其水平或垂直方向划分容器的轴。

Defines the axis along which the splitter divides its container, either horizontally or vertically.

Properties

decoratenametypedescription
liveHorizontalSplits the container horizontally.
liveVerticalSplits the container vertically.

Example

#![allow(unused)]
fn main() {
axis: Vertical,
axis: Horizontal,
}

SplitterAlign

指定拆分器在其容器内的对齐或定位。

Specifies the alignment or positioning of the splitter within its container.

Properties

decoratenametypedescription
liveFromAf64Specifies the position of the splitter from the start of the first panel (A).
liveFromBf64Specifies the position of the splitter from the end of the second panel (B).
liveWeightedf64Specifies the position of the splitter based on a weight, with 0.0 being all the way to the start of panel A and 1.0 being all the way to the end of panel B.

Weighted range: [0,1]

Example

#![allow(unused)]
fn main() {
align: FromA(100.0),
align: Weighted(0.5),
}