mischief-render
Safe HaskellNone
LanguageGHC2024

Mischief.Animation.Animator

Documentation

class (Typeable (Input a), Typeable a, Typeable (State a), Typeable (Shift a)) => AnimatorTag (a :: k) where Source #

Minimal complete definition

animation, start

Associated Types

data State (a :: k) Source #

data Input (a :: k) Source #

data Shift (a :: k) Source #

data TransitionType Source #

Instances

Instances details
Eq TransitionType Source # 
Instance details

Defined in Mischief.Animation.Animator

data Transition state input shift Source #

Constructors

Transition 

Fields

to :: state -> Condition input shift -> Transition state input shift Source #

to' :: state -> Condition input shift -> Transition state input shift Source #

data Condition input shift Source #

Constructors

WhenCondition (input -> Bool) 
ShiftCondition shift 

when :: (input -> Bool) -> Condition input shift Source #

on :: shift -> Condition input shift Source #

checkTransitions :: forall {k} (a :: k). AnimatorTag a => State a -> Input a -> Maybe (Shift a) -> AnimationStatus -> Maybe (State a) Source #