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 |
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 duration :: Millisecond -> FadeCfg e Source # | |
CmbOnFinished (FadeCfg e) e Source # | |
Defined in Monomer.Widgets.Animation.Fade onFinished :: e -> FadeCfg e Source # |
Constructors
animFadeIn :: WidgetEvent e => WidgetNode s e -> WidgetNode s e Source #
Animates a widget from not visible state to fully visible.
animFadeIn_ :: WidgetEvent e => [FadeCfg e] -> WidgetNode s e -> WidgetNode s e Source #
Animates a widget from not visible state to fully visible. Accepts config.
animFadeOut :: WidgetEvent e => WidgetNode s e -> WidgetNode s e Source #
Animates a widget from visible state to not visible.
animFadeOut_ :: WidgetEvent e => [FadeCfg e] -> WidgetNode s e -> WidgetNode s e Source #
Animates a widget from visible state to not visible. Accepts config.