| Copyright | (c) 2018 Francisco Vallarino |
|---|---|
| License | BSD-3-Clause (see the LICENSE file) |
| Maintainer | fjvallarino@gmail.com |
| Stability | experimental |
| Portability | non-portable |
| Safe Haskell | Safe-Inferred |
| Language | Haskell2010 |
Monomer.Widgets.Animation.Slide
Contents
Description
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
- slideLeft :: SlideCfg e
- slideRight :: SlideCfg e
- slideTop :: SlideCfg e
- slideBottom :: 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
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
| Monoid (SlideCfg e) Source # | |
| Semigroup (SlideCfg e) Source # | |
| Show e => Show (SlideCfg e) Source # | |
| Default (SlideCfg e) Source # | |
Defined in Monomer.Widgets.Animation.Slide | |
| Eq e => Eq (SlideCfg e) Source # | |
| CmbAutoStart (SlideCfg e) Source # | |
Defined in Monomer.Widgets.Animation.Slide | |
| CmbDuration (SlideCfg e) Millisecond Source # | |
Defined in Monomer.Widgets.Animation.Slide Methods duration :: Millisecond -> SlideCfg e Source # | |
| CmbOnFinished (SlideCfg e) e Source # | |
Defined in Monomer.Widgets.Animation.Slide Methods onFinished :: e -> SlideCfg e Source # | |
slideRight :: SlideCfg e Source #
Slide from/to right.
slideBottom :: SlideCfg e Source #
Slide from/to bottom.
Constructors
Arguments
| :: WidgetEvent e | |
| => WidgetNode s e | The child node. |
| -> WidgetNode s e | The created animation container. |
Animates a widget from the left to fully visible.
Arguments
| :: WidgetEvent e | |
| => [SlideCfg e] | The config options. |
| -> WidgetNode s e | The child node. |
| -> WidgetNode s e | The created animation container. |
Animates a widget from the provided direction to fully visible (defaults to left). Accepts config.
Arguments
| :: WidgetEvent e | |
| => WidgetNode s e | The child node. |
| -> WidgetNode s e | The created animation container. |
Animates a widget to the left from visible to not visible.
Arguments
| :: WidgetEvent e | |
| => [SlideCfg e] | The config options. |
| -> WidgetNode s e | The child node. |
| -> WidgetNode s e | The created animation container. |
Animates a widget to the the provided direction from visible to not visible (defaults to left). Accepts config.