monomer-1.0.0.0: A GUI library for writing native Haskell applications.
Copyright(c) 2018 Francisco Vallarino
LicenseBSD-3-Clause (see the LICENSE file)
Maintainerfjvallarino@gmail.com
Stabilityexperimental
Portabilitynon-portable
Safe HaskellNone
LanguageHaskell2010

Monomer.Widgets.Animation.Slide

Description

Slide animation widget. Wraps a child widget whose content will be animated.

Config:

  • 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.

Messages:

  • Receives a AnimationMsg, used to control the state of the animation.
Synopsis

Documentation

animSlideIn :: WidgetEvent e => WidgetNode s e -> WidgetNode s e Source #

Animates a widget from the left to fully visible.

animSlideIn_ :: WidgetEvent e => [SlideCfg e] -> WidgetNode s e -> WidgetNode s e Source #

Animates a widget from the provided direction to fully visible (defaults to left). Accepts config.

animSlideOut :: WidgetEvent e => WidgetNode s e -> WidgetNode s e Source #

Animates a widget to the left from visible to not visible.

animSlideOut_ :: WidgetEvent e => [SlideCfg e] -> WidgetNode s e -> WidgetNode s e Source #

Animates a widget to the the provided direction from visible to not visible (defaults to left). Accepts config.

slideLeft :: SlideCfg e Source #

Slide from/to left.

slideRight :: SlideCfg e Source #

Slide from/to right.

slideTop :: SlideCfg e Source #

Slide from/to top.

slideBottom :: SlideCfg e Source #

Slide from/to bottom.