类型 Column

API 文档由 Go 源码生成,内容为英文。

type Column struct {
	// contains filtered or unexported fields
}

Column lays out slots top to bottom with a fixed gap. It mirrors Row.

构造函数

BeginColumn#

func BeginColumn(bounds Rect, gap float32) Column

BeginColumn starts a vertical stack inside bounds.

方法

Even#

func (c *Column) Even(n int) []Rect

Even returns n equal-height slots in one call.

Next#

func (c *Column) Next(height float32) Rect

Next returns the next slot with the requested height. Slots are full width.

NextFlex#

func (c *Column) NextFlex() Rect

NextFlex returns one slot filling all remaining height.

Remaining#

func (c Column) Remaining() float32

Remaining reports the unclaimed height, ignoring a trailing gap.