Versions in this module Expand all Collapse all v0 v0.0.8 Apr 28, 2024 v0.0.7 Apr 23, 2024 v0.0.6 Apr 7, 2024 v0.0.5 Mar 23, 2024 Changes in this version type List + func (l *List) ScrollOffsetBy(dx int) + func (l *List) ScrollToOffset(dx int) v0.0.4 Feb 22, 2024 v0.0.2 Jan 29, 2024 v0.0.1 Dec 29, 2023 Changes in this version + func FPt(p image.Point) f32.Point + 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) FConvert(pt f32.Point) f32.Point + func (a Axis) String() string + type Background struct + func (Background) Layout(gtx Context, background, widget Widget) Dimensions + type Constraints struct + Max image.Point + Min image.Point + func Exact(size image.Point) Constraints + func (c Constraints) AddMin(delta image.Point) Constraints + func (c Constraints) Constrain(size image.Point) image.Point + func (c Constraints) SubMax(delta image.Point) Constraints + type Context struct + Constraints Constraints + Locale system.Locale + 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) Dp(v unit.Dp) int + func (c Context) Events(k event.Tag) []event.Event + func (c Context) Sp(v unit.Sp) 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 FlexControl(hflex bool, vflex bool, weight float32, widget Widget) FlexChild + func Flexed(weight float32, widget Widget) FlexChild + func Rigid(widget Widget) FlexChild + type Inset struct + Bottom unit.Dp + Left unit.Dp + Right unit.Dp + Top unit.Dp + func UniformInset(v unit.Dp) 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 + func (l *List) ScrollBy(num float32) + func (l *List) ScrollTo(n int) + type ListElement func(gtx Context, index int) Dimensions + type Position struct + BeforeEnd bool + Count int + First int + Length int + Offset int + OffsetLast int + type Spacer struct + Height unit.Dp + Width unit.Dp + 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