Type Column

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

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

Constructors

BeginColumn#

func BeginColumn(bounds Rect, gap float32) Column

BeginColumn starts a vertical stack inside bounds.

Methods

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.