reflex-animation-0.1.1: Continuous animations support for reflex

Safe HaskellNone
LanguageHaskell2010

Reflex.Monad.Time

Synopsis

Documentation

class (MonadReflex t m, RealFrac time) => MonadTime t time m | m -> t time where Source

Methods

integrate :: (VectorSpace v, Scalar v ~ time) => v -> Behavior t v -> m (Behavior t v) Source

observe :: Behavior t a -> m (Event t a) Source

getTime :: m (Behavior t time) Source

after :: time -> m (Event t ()) Source

delay :: Event t (a, time) -> m (Event t (NonEmpty a)) Source

observeChanges :: (Eq a, MonadTime t time m) => Behavior t a -> m (Event t a) Source

delay_ :: MonadTime t time m => Event t time -> m (Event t ()) Source

pushFor :: Reflex t => Event t a -> (a -> PushM t b) -> Event t b Source

animate :: (Reflex t, RealFrac time) => Animation time a -> Behavior t time -> Behavior t a Source

animateClip :: (Reflex t, RealFrac time) => Clip time a -> Behavior t time -> Behavior t (Maybe a) Source

Sample a Clip during it's period, outside it's period return Nothing

animateOn :: (Reflex t, RealFrac time) => Event t (Animation time a) -> Behavior t time -> Event t (Behavior t a) Source

play :: MonadTime t time m => Animation time a -> m (Behavior t a) Source

playClip :: MonadTime t time m => Clip time a -> m (Behavior t (Maybe a), Event t ()) Source

playClamp :: MonadTime t time m => Clip time a -> m (Behavior t a, Event t ()) Source

playOn :: MonadTime t time m => Event t (Clip time a) -> m (Behavior t (Maybe a), Event t ()) Source

match :: (Reflex t, Eq a) => a -> Event t a -> Event t () Source

matchBy :: Reflex t => (a -> Bool) -> Event t a -> Event t () Source