Copyright | (c) 2018 Francisco Vallarino |
---|---|
License | BSD-3-Clause (see the LICENSE file) |
Maintainer | fjvallarino@gmail.com |
Stability | experimental |
Portability | non-portable |
Safe Haskell | None |
Language | Haskell2010 |
Slide animation widget. Wraps a child widget whose content will be animated.
Messages:
- Accepts a
AnimationMsg
, used to control the state of the animation.
Synopsis
- data SlideCfg e
- animSlideIn :: WidgetEvent e => WidgetNode s e -> WidgetNode s e
- animSlideIn_ :: WidgetEvent e => [SlideCfg e] -> WidgetNode s e -> WidgetNode s e
- animSlideOut :: WidgetEvent e => WidgetNode s e -> WidgetNode s e
- animSlideOut_ :: WidgetEvent e => [SlideCfg e] -> WidgetNode s e -> WidgetNode s e
- slideLeft :: SlideCfg e
- slideRight :: SlideCfg e
- slideTop :: SlideCfg e
- slideBottom :: SlideCfg e
Configuration
Configuration options for slide:
autoStart
: whether the first time the widget is added, animation should run.duration
: how long the animation lasts in ms.onFinished
: event to raise when animation is complete.- Individual combinators for direction.
Instances
Eq e => Eq (SlideCfg e) Source # | |
Show e => Show (SlideCfg e) Source # | |
Semigroup (SlideCfg e) Source # | |
Monoid (SlideCfg e) Source # | |
Default (SlideCfg e) Source # | |
Defined in Monomer.Widgets.Animation.Slide | |
CmbAutoStart (SlideCfg e) Source # | |
Defined in Monomer.Widgets.Animation.Slide | |
CmbOnFinished (SlideCfg e) e Source # | |
Defined in Monomer.Widgets.Animation.Slide onFinished :: e -> SlideCfg e Source # | |
CmbDuration (SlideCfg e) Int Source # | |
Constructors
animSlideIn :: WidgetEvent e => WidgetNode s e -> WidgetNode s e Source #
Animates a widget from the left to fully visible.
animSlideIn_ :: WidgetEvent e => [SlideCfg e] -> WidgetNode s e -> WidgetNode s e Source #
Animates a widget from the provided direction to fully visible (defaults to left). Accepts config.
animSlideOut :: WidgetEvent e => WidgetNode s e -> WidgetNode s e Source #
Animates a widget to the left from visible to not visible.
animSlideOut_ :: WidgetEvent e => [SlideCfg e] -> WidgetNode s e -> WidgetNode s e Source #
Animates a widget to the the provided direction from visible to not visible (defaults to left). Accepts config.
slideRight :: SlideCfg e Source #
Slide from/to right.
slideBottom :: SlideCfg e Source #
Slide from/to bottom.