| 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.Fade
Contents
Description
Fade animation widget. Wraps a child widget whose content will be animated.
Messages:
- Accepts an
AnimationMsg, used to control the state of the animation.
Synopsis
- data FadeCfg e
- animFadeIn :: WidgetEvent e => WidgetNode s e -> WidgetNode s e
- animFadeIn_ :: WidgetEvent e => [FadeCfg e] -> WidgetNode s e -> WidgetNode s e
- animFadeOut :: WidgetEvent e => WidgetNode s e -> WidgetNode s e
- animFadeOut_ :: WidgetEvent e => [FadeCfg e] -> WidgetNode s e -> WidgetNode s e
Configuration
Configuration options for fade:
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.
Instances
| Monoid (FadeCfg e) Source # | |
| Semigroup (FadeCfg e) Source # | |
| Show e => Show (FadeCfg e) Source # | |
| Default (FadeCfg e) Source # | |
Defined in Monomer.Widgets.Animation.Fade | |
| Eq e => Eq (FadeCfg e) Source # | |
| CmbAutoStart (FadeCfg e) Source # | |
Defined in Monomer.Widgets.Animation.Fade | |
| CmbDuration (FadeCfg e) Millisecond Source # | |
Defined in Monomer.Widgets.Animation.Fade Methods duration :: Millisecond -> FadeCfg e Source # | |
| CmbOnFinished (FadeCfg e) e Source # | |
Defined in Monomer.Widgets.Animation.Fade Methods onFinished :: e -> FadeCfg e Source # | |
Constructors
Arguments
| :: WidgetEvent e | |
| => WidgetNode s e | The child node. |
| -> WidgetNode s e | The created animation container. |
Animates a widget from not visible state to fully visible.
Arguments
| :: WidgetEvent e | |
| => [FadeCfg e] | The config options. |
| -> WidgetNode s e | The child node. |
| -> WidgetNode s e | The created animation container. |
Animates a widget from not visible state to fully visible. Accepts config.
Arguments
| :: WidgetEvent e | |
| => WidgetNode s e | The child node. |
| -> WidgetNode s e | The created animation container. |
Animates a widget from visible state to not visible.
Arguments
| :: WidgetEvent e | |
| => [FadeCfg e] | The config options. |
| -> WidgetNode s e | The child node. |
| -> WidgetNode s e | The created animation container. |
Animates a widget from visible state to not visible. Accepts config.