Documentation
¶
Overview ¶
Package kit holds helpers three or more components share.
Index ¶
- Variables
- func Arrive(e ui.Element, from ui.Pose, delay time.Duration) ui.Element
- func Card(c *ui.Context) ui.Element
- func CardHead(c *ui.Context, glyph, title string, trailing func())
- func Changed(e ui.Element, cue sound.Cue) bool
- func Chip(c *ui.Context, text string, ink ui.Color) ui.Element
- func Clicked(e ui.Element, cue sound.Cue) bool
- func Glass(t *ui.Theme, alpha float32) ui.Color
- func Hairline(t *ui.Theme) ui.Color
- func IndexFold(s, q string) (int, int)
- func Inside(radius float32, fn func(p *ui.Painter, r ui.Rect)) func(p *ui.Painter, r ui.Rect)
- func Lift(e ui.Element) ui.Element
- func Log(component, event string, args ...any)
- func Marked(t *ui.Theme, s string, lo, hi int) []ui.Span
- func Muted(c *ui.Context, s string) ui.Element
- func Numeric(c *ui.Context, s string) ui.Element
- func Press(e ui.Element) ui.Element
- func Resting(e ui.Element) bool
- func Settle(c *ui.Context, e ui.Element, used []float32, read func() []float32)
- func Shade(a float32) ui.Color
- func Slide(c *ui.Context, key int, content func())
- func Stagger(c *ui.Context, list, row ui.Element, i int) ui.Element
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Enter fades an element in from 4 DIP below. Enter = ui.ElementTransition{ Duration: 160 * time.Millisecond, Enter: &ui.Motion{Y: 4}, Exit: &ui.Motion{Y: 4}, } // Pop scales an element in and out with a bounce. Pop = ui.ElementTransition{ Animation: &popSpring, Enter: &ui.Motion{Scale: 0.9}, Exit: &ui.Motion{Scale: 0.9}, } )
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.