Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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
type Modifier ¶
func AnimatedBackground ¶
func AnimatedBackground(anim *animation.VisibilityAnimation, color graphics.Color, shape background.Shape) Modifier
AnimatedBackground creates a modifier that paints a background with alpha scaled by animation.
func AnimatedHeight ¶
func AnimatedHeight(anim *animation.VisibilityAnimation, maxHeight int) 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) Modifier
Click to show internal directories.
Click to hide internal directories.