| Copyright | (c) 2023 Ruslan Gadeev 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.Zoom
Contents
Description
Zoom 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 ZoomCfg s e
- animZoomIn :: WidgetEvent e => WidgetNode s e -> WidgetNode s e
- animZoomIn_ :: WidgetEvent e => [ZoomCfg s e] -> WidgetNode s e -> WidgetNode s e
- animZoomOut :: WidgetEvent e => WidgetNode s e -> WidgetNode s e
- animZoomOut_ :: WidgetEvent e => [ZoomCfg s e] -> WidgetNode s e -> WidgetNode s e
Configuration
Configuration options for zoom:
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:WidgetRequestto generate when animation is complete.
Instances
| Monoid (ZoomCfg s e) Source # | |
| Semigroup (ZoomCfg s e) Source # | |
| Show (ZoomCfg s e) Source # | |
| Default (ZoomCfg s e) Source # | |
Defined in Monomer.Widgets.Animation.Zoom | |
| Eq e => Eq (ZoomCfg s e) Source # | |
| CmbAutoStart (ZoomCfg s e) Source # | |
Defined in Monomer.Widgets.Animation.Zoom | |
| CmbDuration (ZoomCfg s e) Millisecond Source # | |
Defined in Monomer.Widgets.Animation.Zoom Methods duration :: Millisecond -> ZoomCfg s e Source # | |
| WidgetEvent e => CmbOnFinished (ZoomCfg s e) e Source # | |
Defined in Monomer.Widgets.Animation.Zoom Methods onFinished :: e -> ZoomCfg s e Source # | |
| CmbOnFinishedReq (ZoomCfg s e) s e Source # | |
Defined in Monomer.Widgets.Animation.Zoom Methods onFinishedReq :: WidgetRequest s e -> ZoomCfg s e Source # | |
Constructors
Arguments
| :: WidgetEvent e | |
| => WidgetNode s e | The child node. |
| -> WidgetNode s e | The created animation container. |
Animates a widget to fully visible by increasing scale.
Arguments
| :: WidgetEvent e | |
| => [ZoomCfg s e] | The config options. |
| -> WidgetNode s e | The child node. |
| -> WidgetNode s e | The created animation container. |
Animates a widget to fully visible by increasing scale. Accepts config.
Arguments
| :: WidgetEvent e | |
| => WidgetNode s e | The child node. |
| -> WidgetNode s e | The created animation container. |
Animates a widget to not visible by decreasing scale.
Arguments
| :: WidgetEvent e | |
| => [ZoomCfg s e] | The config options. |
| -> WidgetNode s e | The child node. |
| -> WidgetNode s e | The created animation container. |
Animates a widget to not visible by decreasing scale. Accepts config.