Versions in this module Expand all Collapse all v0 v0.0.6 May 16, 2021 Changes in this version + func FPt(p image.Point) f32.Point + func FRect(r image.Rectangle) f32.Rectangle + type Alignment uint8 + const Baseline + const End + const Middle + const Start + func (a Alignment) String() string + type Axis uint8 + const Horizontal + const Vertical + func (a Axis) Convert(pt image.Point) image.Point + func (a Axis) String() string + type Constraints struct + Max image.Point + Min image.Point + func Exact(size image.Point) Constraints + func (c Constraints) Constrain(size image.Point) image.Point + type Context struct + Constraints Constraints + Metric unit.Metric + Now time.Time + Queue event.Queue + func NewContext(ops *op.Ops, e system.FrameEvent) Context + func (c Context) Disabled() Context + func (c Context) Events(k event.Tag) []event.Event + func (c Context) Px(v unit.Value) int + type Dimensions struct + Baseline int + Size image.Point + type Direction uint8 + const Center + const E + const N + const NE + const NW + const S + const SE + const SW + const W + func (d Direction) Layout(gtx Context, w Widget) Dimensions + func (d Direction) Position(widget, bounds image.Point) image.Point + func (d Direction) String() string + type Flex struct + Alignment Alignment + Axis Axis + Spacing Spacing + WeightSum float32 + func (f Flex) Layout(gtx Context, children ...FlexChild) Dimensions + type FlexChild struct + func Flexed(weight float32, widget Widget) FlexChild + func Rigid(widget Widget) FlexChild + type Inset struct + Bottom unit.Value + Left unit.Value + Right unit.Value + Top unit.Value + func UniformInset(v unit.Value) Inset + func (in Inset) Layout(gtx Context, w Widget) Dimensions + type List struct + Alignment Alignment + Axis Axis + Position Position + ScrollToEnd bool + func (l *List) Dragging() bool + func (l *List) Layout(gtx Context, len int, w ListElement) Dimensions + type ListElement func(gtx Context, index int) Dimensions + type Position struct + BeforeEnd bool + Count int + First int + Offset int + OffsetLast int + type Spacer struct + Height unit.Value + Width unit.Value + func (s Spacer) Layout(gtx Context) Dimensions + type Spacing uint8 + const SpaceAround + const SpaceBetween + const SpaceEnd + const SpaceEvenly + const SpaceSides + const SpaceStart + func (s Spacing) String() string + type Stack struct + Alignment Direction + func (s Stack) Layout(gtx Context, children ...StackChild) Dimensions + type StackChild struct + func Expanded(w Widget) StackChild + func Stacked(w Widget) StackChild + type Widget func(gtx Context) Dimensions