StretchParam is a class that defines stretch parameters for layout.

StretchParam 是一个定义布局拉伸参数的类。

构造函数

属性

构造函数

属性

fixed: boolean

Whether the size is fixed.

是否固定大小。

max: number = 0

The maximum size for the stretch.

拉伸的最大尺寸。

min: number = 0

The minimum size for the stretch.

拉伸的最小尺寸。

priority: number = 0

The priority of the stretch.

拉伸的优先级。

ratio: number = 0

The ratio of stretch.

拉伸的比例。