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

Monomer.Widgets.Animation.Fade

Description

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

Configuration

data FadeCfg e Source #

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

Instances details
Monoid (FadeCfg e) Source # 
Instance details

Defined in Monomer.Widgets.Animation.Fade

Methods

mempty :: FadeCfg e #

mappend :: FadeCfg e -> FadeCfg e -> FadeCfg e #

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

Semigroup (FadeCfg e) Source # 
Instance details

Defined in Monomer.Widgets.Animation.Fade

Methods

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

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

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

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

Defined in Monomer.Widgets.Animation.Fade

Methods

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

show :: FadeCfg e -> String #

showList :: [FadeCfg e] -> ShowS #

Default (FadeCfg e) Source # 
Instance details

Defined in Monomer.Widgets.Animation.Fade

Methods

def :: FadeCfg e #

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

Defined in Monomer.Widgets.Animation.Fade

Methods

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

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

CmbAutoStart (FadeCfg e) Source # 
Instance details

Defined in Monomer.Widgets.Animation.Fade

CmbDuration (FadeCfg e) Millisecond Source # 
Instance details

Defined in Monomer.Widgets.Animation.Fade

CmbOnFinished (FadeCfg e) e Source # 
Instance details

Defined in Monomer.Widgets.Animation.Fade

Methods

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.