| Safe Haskell | None |
|---|---|
| Language | GHC2024 |
Mischief.Animation.Animator
Documentation
data AnimationStatus Source #
class (Typeable (Input a), Typeable a, Typeable (State a), Typeable (Shift a)) => AnimatorTag (a :: k) where Source #
Associated Types
data TransitionType Source #
Constructors
| SoftTransition | |
| HardTransition |
Instances
| Eq TransitionType Source # | |
Defined in Mischief.Animation.Animator Methods (==) :: TransitionType -> TransitionType -> Bool # (/=) :: TransitionType -> TransitionType -> Bool # | |
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 |
type IsFinished = Bool Source #
checkTransitions :: forall {k} (a :: k). AnimatorTag a => State a -> Input a -> Maybe (Shift a) -> AnimationStatus -> Maybe (State a) Source #