monomer-1.5.1.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 HaskellSafe-Inferred
LanguageHaskell2010

Monomer.Widgets.Animation.Slide

Description

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

Messages:

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

Configuration

data SlideCfg e Source #

Configuration options for slide:

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

Instances

Instances details
Monoid (SlideCfg e) Source # 
Instance details

Defined in Monomer.Widgets.Animation.Slide

Methods

mempty :: SlideCfg e #

mappend :: SlideCfg e -> SlideCfg e -> SlideCfg e #

mconcat :: [SlideCfg e] -> SlideCfg e #

Semigroup (SlideCfg e) Source # 
Instance details

Defined in Monomer.Widgets.Animation.Slide

Methods

(<>) :: SlideCfg e -> SlideCfg e -> SlideCfg e #

sconcat :: NonEmpty (SlideCfg e) -> SlideCfg e #

stimes :: Integral b => b -> SlideCfg e -> SlideCfg e #

Show e => Show (SlideCfg e) Source # 
Instance details

Defined in Monomer.Widgets.Animation.Slide

Methods

showsPrec :: Int -> SlideCfg e -> ShowS #

show :: SlideCfg e -> String #

showList :: [SlideCfg e] -> ShowS #

Default (SlideCfg e) Source # 
Instance details

Defined in Monomer.Widgets.Animation.Slide

Methods

def :: SlideCfg e #

Eq e => Eq (SlideCfg e) Source # 
Instance details

Defined in Monomer.Widgets.Animation.Slide

Methods

(==) :: SlideCfg e -> SlideCfg e -> Bool #

(/=) :: SlideCfg e -> SlideCfg e -> Bool #

CmbAutoStart (SlideCfg e) Source # 
Instance details

Defined in Monomer.Widgets.Animation.Slide

CmbDuration (SlideCfg e) Millisecond Source # 
Instance details

Defined in Monomer.Widgets.Animation.Slide

CmbOnFinished (SlideCfg e) e Source # 
Instance details

Defined in Monomer.Widgets.Animation.Slide

Methods

onFinished :: e -> SlideCfg e Source #

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.

Constructors

animSlideIn Source #

Arguments

:: WidgetEvent e 
=> WidgetNode s e

The child node.

-> WidgetNode s e

The created animation container.

Animates a widget from the left to fully visible.

animSlideIn_ Source #

Arguments

:: WidgetEvent e 
=> [SlideCfg e]

The config options.

-> WidgetNode s e

The child node.

-> WidgetNode s e

The created animation container.

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

animSlideOut Source #

Arguments

:: WidgetEvent e 
=> WidgetNode s e

The child node.

-> WidgetNode s e

The created animation container.

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

animSlideOut_ Source #

Arguments

:: WidgetEvent e 
=> [SlideCfg e]

The config options.

-> WidgetNode s e

The child node.

-> WidgetNode s e

The created animation container.

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