Documentation
¶
Index ¶
- func AnimatedBackground(anim *animation.VisibilityAnimation, color graphics.Color, ...) ui.Modifier
- func AnimatedHeight(anim *animation.VisibilityAnimation, maxHeight int) ui.Modifier
- func AnimatedWidth(anim *animation.VisibilityAnimation, maxWidth int) ui.Modifier
- func NewAnimatedHeightNode(element AnimatedHeightElement) node.ChainNode
- type AnimatedBackgroundElement
- type AnimatedBackgroundNode
- type AnimatedHeightElement
- type AnimatedHeightNode
- type AnimatedWidthElement
- type AnimatedWidthNode
- type Element
- type Node
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AnimatedBackground ¶
func AnimatedBackground(anim *animation.VisibilityAnimation, color graphics.Color, shape background.Shape) ui.Modifier
AnimatedBackground creates a modifier that paints a background with alpha scaled by animation.
func AnimatedHeight ¶
func AnimatedHeight(anim *animation.VisibilityAnimation, maxHeight int) ui.Modifier
AnimatedHeight animates the height of the content based on the VisibilityAnimation. It clips the content as it grows/shrinks.
func AnimatedWidth ¶
func AnimatedWidth(anim *animation.VisibilityAnimation, maxWidth int) ui.Modifier
func NewAnimatedHeightNode ¶
func NewAnimatedHeightNode(element AnimatedHeightElement) node.ChainNode
Types ¶
type AnimatedBackgroundElement ¶
type AnimatedBackgroundElement struct {
Anim *animation.VisibilityAnimation
Color graphics.Color
Shape background.Shape
}
func (AnimatedBackgroundElement) Create ¶
func (e AnimatedBackgroundElement) Create() Node
func (AnimatedBackgroundElement) Equals ¶
func (e AnimatedBackgroundElement) Equals(other Element) bool
func (AnimatedBackgroundElement) Update ¶
func (e AnimatedBackgroundElement) Update(node Node)
type AnimatedBackgroundNode ¶
func NewAnimatedBackgroundNode ¶
func NewAnimatedBackgroundNode(element AnimatedBackgroundElement) *AnimatedBackgroundNode
type AnimatedHeightElement ¶
type AnimatedHeightElement struct {
Anim *animation.VisibilityAnimation
MaxHeight int // Optional max height constraint, 0 means unconstrained (or fill max)
}
func (AnimatedHeightElement) Create ¶
func (e AnimatedHeightElement) Create() Node
func (AnimatedHeightElement) Equals ¶
func (e AnimatedHeightElement) Equals(other Element) bool
func (AnimatedHeightElement) Update ¶
func (e AnimatedHeightElement) Update(node Node)
type AnimatedHeightNode ¶
type AnimatedWidthElement ¶
type AnimatedWidthElement struct {
Anim *animation.VisibilityAnimation
MaxWidth int
}
func (AnimatedWidthElement) Create ¶
func (e AnimatedWidthElement) Create() Node
func (AnimatedWidthElement) Equals ¶
func (e AnimatedWidthElement) Equals(other Element) bool
func (AnimatedWidthElement) Update ¶
func (e AnimatedWidthElement) Update(node Node)
type AnimatedWidthNode ¶
func NewAnimatedWidthNode ¶
func NewAnimatedWidthNode(element AnimatedWidthElement) *AnimatedWidthNode
Click to show internal directories.
Click to hide internal directories.