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 s e
- animFadeIn :: WidgetEvent e => WidgetNode s e -> WidgetNode s e
- animFadeIn_ :: WidgetEvent e => [FadeCfg s e] -> WidgetNode s e -> WidgetNode s e
- animFadeOut :: WidgetEvent e => WidgetNode s e -> WidgetNode s e
- animFadeOut_ :: WidgetEvent e => [FadeCfg s 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.onFinishedReq
:WidgetRequest
to generate when animation is complete.
Instances
Monoid (FadeCfg s e) Source # | |
Semigroup (FadeCfg s e) Source # | |
Show (FadeCfg s e) Source # | |
Default (FadeCfg s e) Source # | |
Defined in Monomer.Widgets.Animation.Fade | |
Eq e => Eq (FadeCfg s e) Source # | |
CmbAutoStart (FadeCfg s e) Source # | |
Defined in Monomer.Widgets.Animation.Fade | |
CmbDuration (FadeCfg s e) Millisecond Source # | |
Defined in Monomer.Widgets.Animation.Fade duration :: Millisecond -> FadeCfg s e Source # | |
WidgetEvent e => CmbOnFinished (FadeCfg s e) e Source # | |
Defined in Monomer.Widgets.Animation.Fade onFinished :: e -> FadeCfg s e Source # | |
CmbOnFinishedReq (FadeCfg s e) s e Source # | |
Defined in Monomer.Widgets.Animation.Fade onFinishedReq :: WidgetRequest s e -> FadeCfg s e Source # |
Constructors
:: 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.
:: WidgetEvent e | |
=> [FadeCfg s 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.
:: WidgetEvent e | |
=> WidgetNode s e | The child node. |
-> WidgetNode s e | The created animation container. |
Animates a widget from visible state to not visible.
:: WidgetEvent e | |
=> [FadeCfg s 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.