Layout

Layout结构定义了用于管理布局的各种属性,包括滚动、剪切、填充、对齐、流和间距的参数。

The Layout struct defines various properties for managing layout, including parameters for scrolling, clipping, padding, alignment, flow, and spacing.

Properties

decoratenametypedescription
livescrollDVec2Specifies the scrolling vector for the layout.
liveclip_xboolDetermines whether the layout clips horizontally. Default is true.
liveclip_yboolDetermines whether the layout clips vertically. Default is true.
livepaddingPaddingSets the padding around the layout.
livealignAlignControls the alignment within the layout.
liveflowFlowDefines the flow direction of elements in the layout.
livespacingf64Specifies the spacing between elements in the layout.
liveline_spacingf64Determines the line spacing for elements in the layout.

See DVec2

See Padding

See Align

See Flow