| Copyright | Will Thompson and Iñaki García Etxebarria | 
|---|---|
| License | LGPL-2.1 | 
| Maintainer | Iñaki García Etxebarria | 
| Safe Haskell | Safe-Inferred | 
| Language | Haskell2010 | 
GI.Clutter.Objects.Animator
Description
The Animator structure contains only private data and
 should be accessed using the provided API
Since: 1.2
Synopsis
- newtype Animator = Animator (ManagedPtr Animator)
 - class (GObject o, IsDescendantOf Animator o) => IsAnimator o
 - toAnimator :: (MonadIO m, IsAnimator o) => o -> m Animator
 - animatorComputeValue :: (HasCallStack, MonadIO m, IsAnimator a, IsObject b) => a -> b -> Text -> Double -> GValue -> m Bool
 - animatorGetDuration :: (HasCallStack, MonadIO m, IsAnimator a) => a -> m Word32
 - animatorGetKeys :: (HasCallStack, MonadIO m, IsAnimator a, IsObject b) => a -> Maybe b -> Maybe Text -> Double -> m [AnimatorKey]
 - animatorGetTimeline :: (HasCallStack, MonadIO m, IsAnimator a) => a -> m Timeline
 - animatorNew :: (HasCallStack, MonadIO m) => m Animator
 - animatorPropertyGetEaseIn :: (HasCallStack, MonadIO m, IsAnimator a, IsObject b) => a -> b -> Text -> m Bool
 - animatorPropertyGetInterpolation :: (HasCallStack, MonadIO m, IsAnimator a, IsObject b) => a -> b -> Text -> m Interpolation
 - animatorPropertySetEaseIn :: (HasCallStack, MonadIO m, IsAnimator a, IsObject b) => a -> b -> Text -> Bool -> m ()
 - animatorPropertySetInterpolation :: (HasCallStack, MonadIO m, IsAnimator a, IsObject b) => a -> b -> Text -> Interpolation -> m ()
 - animatorRemoveKey :: (HasCallStack, MonadIO m, IsAnimator a, IsObject b) => a -> Maybe b -> Maybe Text -> Double -> m ()
 - animatorSetDuration :: (HasCallStack, MonadIO m, IsAnimator a) => a -> Word32 -> m ()
 - animatorSetKey :: (HasCallStack, MonadIO m, IsAnimator a, IsObject b) => a -> b -> Text -> Word32 -> Double -> GValue -> m Animator
 - animatorSetTimeline :: (HasCallStack, MonadIO m, IsAnimator a, IsTimeline b) => a -> b -> m ()
 - animatorStart :: (HasCallStack, MonadIO m, IsAnimator a) => a -> m Timeline
 - constructAnimatorDuration :: (IsAnimator o, MonadIO m) => Word32 -> m (GValueConstruct o)
 - getAnimatorDuration :: (MonadIO m, IsAnimator o) => o -> m Word32
 - setAnimatorDuration :: (MonadIO m, IsAnimator o) => o -> Word32 -> m ()
 - constructAnimatorTimeline :: (IsAnimator o, MonadIO m, IsTimeline a) => a -> m (GValueConstruct o)
 - getAnimatorTimeline :: (MonadIO m, IsAnimator o) => o -> m Timeline
 - setAnimatorTimeline :: (MonadIO m, IsAnimator o, IsTimeline a) => o -> a -> m ()
 
Exported types
Memory-managed wrapper type.
Instances
| Eq Animator Source # | |
| GObject Animator Source # | |
Defined in GI.Clutter.Objects.Animator  | |
| ManagedPtrNewtype Animator Source # | |
Defined in GI.Clutter.Objects.Animator Methods toManagedPtr :: Animator -> ManagedPtr Animator  | |
| TypedObject Animator Source # | |
Defined in GI.Clutter.Objects.Animator  | |
| HasParentTypes Animator Source # | |
Defined in GI.Clutter.Objects.Animator  | |
| IsGValue (Maybe Animator) Source # | Convert   | 
Defined in GI.Clutter.Objects.Animator Methods gvalueGType_ :: IO GType gvalueSet_ :: Ptr GValue -> Maybe Animator -> IO () gvalueGet_ :: Ptr GValue -> IO (Maybe Animator)  | |
| type ParentTypes Animator Source # | |
Defined in GI.Clutter.Objects.Animator  | |
class (GObject o, IsDescendantOf Animator o) => IsAnimator o Source #
Type class for types which can be safely cast to Animator, for instance with toAnimator.
Instances
| (GObject o, IsDescendantOf Animator o) => IsAnimator o Source # | |
Defined in GI.Clutter.Objects.Animator  | |
toAnimator :: (MonadIO m, IsAnimator o) => o -> m Animator Source #
Methods
Click to display all available methods, including inherited ones
Methods
bindProperty, bindPropertyFull, computeValue, forceFloating, freezeNotify, getv, isFloating, notify, notifyByPspec, parseCustomNode, propertyGetEaseIn, propertyGetInterpolation, propertySetEaseIn, propertySetInterpolation, ref, refSink, removeKey, runDispose, start, stealData, stealQdata, thawNotify, unref, watchClosure.
Getters
getData, getDuration, getId, getKeys, getProperty, getQdata, getTimeline.
Setters
setCustomProperty, setData, setDataFull, setDuration, setId, setKey, setProperty, setTimeline.
computeValue
Arguments
| :: (HasCallStack, MonadIO m, IsAnimator a, IsObject b) | |
| => a | 
  | 
| -> b | 
  | 
| -> Text | 
  | 
| -> Double | 
  | 
| -> GValue | 
  | 
| -> m Bool | Returns:   | 
Deprecated: (Since version 1.12)Use KeyframeTransition instead
Compute the value for a managed property at a given progress.
If the property is an ease-in property, the current value of the property on the object will be used as the starting point for computation.
Since: 1.2
getDuration
Arguments
| :: (HasCallStack, MonadIO m, IsAnimator a) | |
| => a | 
  | 
| -> m Word32 | Returns: the duration of the animation, in milliseconds  | 
Deprecated: (Since version 1.12)Use KeyframeTransition instead
Retrieves the current duration of an animator
Since: 1.2
getKeys
Arguments
| :: (HasCallStack, MonadIO m, IsAnimator a, IsObject b) | |
| => a | 
  | 
| -> Maybe b | |
| -> Maybe Text | 
  | 
| -> Double | 
  | 
| -> m [AnimatorKey] | Returns: a
   list of   | 
Deprecated: (Since version 1.12)Use KeyframeTransition instead
Returns a list of pointers to opaque structures with accessor functions that describe the keys added to an animator.
Since: 1.2
getTimeline
Arguments
| :: (HasCallStack, MonadIO m, IsAnimator a) | |
| => a | 
  | 
| -> m Timeline | Returns: the   | 
Deprecated: (Since version 1.12)Use KeyframeTransition instead
Get the timeline hooked up for driving the Animator
Since: 1.2
new
Arguments
| :: (HasCallStack, MonadIO m) | |
| => m Animator | Returns: a new   | 
Deprecated: (Since version 1.12)Use KeyframeTransition instead
Creates a new Animator instance
Since: 1.2
propertyGetEaseIn
animatorPropertyGetEaseIn Source #
Arguments
| :: (HasCallStack, MonadIO m, IsAnimator a, IsObject b) | |
| => a | 
  | 
| -> b | 
  | 
| -> Text | 
  | 
| -> m Bool | Returns:   | 
Deprecated: (Since version 1.12)Use KeyframeTransition instead
Checks if a property value is to be eased into the animation.
Since: 1.2
propertyGetInterpolation
animatorPropertyGetInterpolation Source #
Arguments
| :: (HasCallStack, MonadIO m, IsAnimator a, IsObject b) | |
| => a | 
  | 
| -> b | 
  | 
| -> Text | 
  | 
| -> m Interpolation | Returns: a ClutterInterpolation value.  | 
Deprecated: (Since version 1.12)Use KeyframeTransition instead
Get the interpolation used by animator for a property on a particular object.
Since: 1.2
propertySetEaseIn
animatorPropertySetEaseIn Source #
Arguments
| :: (HasCallStack, MonadIO m, IsAnimator a, IsObject b) | |
| => a | 
  | 
| -> b | 
  | 
| -> Text | 
  | 
| -> Bool | 
  | 
| -> m () | 
Deprecated: (Since version 1.12)Use KeyframeTransition instead
Sets whether a property value is to be eased into the animation.
Since: 1.2
propertySetInterpolation
animatorPropertySetInterpolation Source #
Arguments
| :: (HasCallStack, MonadIO m, IsAnimator a, IsObject b) | |
| => a | 
  | 
| -> b | 
  | 
| -> Text | 
  | 
| -> Interpolation | 
  | 
| -> m () | 
Deprecated: (Since version 1.12)Use KeyframeTransition instead
Set the interpolation method to use, InterpolationLinear causes
 the values to linearly change between the values, and
 InterpolationCubic causes the values to smoothly change between
 the values.
Since: 1.2
removeKey
Arguments
| :: (HasCallStack, MonadIO m, IsAnimator a, IsObject b) | |
| => a | 
  | 
| -> Maybe b | |
| -> Maybe Text | 
  | 
| -> Double | 
  | 
| -> m () | 
Deprecated: (Since version 1.12)Use KeyframeTransition instead
Removes all keys matching the conditions specificed in the arguments.
Since: 1.2
setDuration
Arguments
| :: (HasCallStack, MonadIO m, IsAnimator a) | |
| => a | 
  | 
| -> Word32 | 
  | 
| -> m () | 
Deprecated: (Since version 1.12)Use KeyframeTransition instead
Runs the timeline of the Animator with a duration in msecs
 as specified.
Since: 1.2
setKey
Arguments
| :: (HasCallStack, MonadIO m, IsAnimator a, IsObject b) | |
| => a | 
  | 
| -> b | 
  | 
| -> Text | 
  | 
| -> Word32 | 
  | 
| -> Double | 
  | 
| -> GValue | 
  | 
| -> m Animator | Returns: The animator instance  | 
Deprecated: (Since version 1.12)Use KeyframeTransition instead
Sets a single key in the Animator for the propertyName of
 object at progress.
See also: clutter_animator_set()
Since: 1.2
setTimeline
Arguments
| :: (HasCallStack, MonadIO m, IsAnimator a, IsTimeline b) | |
| => a | 
  | 
| -> b | 
  | 
| -> m () | 
Deprecated: (Since version 1.12)Use KeyframeTransition instead
Sets an external timeline that will be used for driving the animation
Since: 1.2
start
Arguments
| :: (HasCallStack, MonadIO m, IsAnimator a) | |
| => a | 
  | 
| -> m Timeline | Returns: the   | 
Deprecated: (Since version 1.12)Use KeyframeTransition instead
Start the ClutterAnimator, this is a thin wrapper that rewinds and starts the animators current timeline.
Since: 1.2
Properties
duration
constructAnimatorDuration :: (IsAnimator o, MonadIO m) => Word32 -> m (GValueConstruct o) Source #
Construct a GValueConstruct with valid value for the “duration” property. This is rarely needed directly, but it is used by new.
getAnimatorDuration :: (MonadIO m, IsAnimator o) => o -> m Word32 Source #
Get the value of the “duration” property.
 When overloading is enabled, this is equivalent to
get animator #duration
setAnimatorDuration :: (MonadIO m, IsAnimator o) => o -> Word32 -> m () Source #
Set the value of the “duration” property.
 When overloading is enabled, this is equivalent to
setanimator [ #duration:=value ]
timeline
constructAnimatorTimeline :: (IsAnimator o, MonadIO m, IsTimeline a) => a -> m (GValueConstruct o) Source #
Construct a GValueConstruct with valid value for the “timeline” property. This is rarely needed directly, but it is used by new.
getAnimatorTimeline :: (MonadIO m, IsAnimator o) => o -> m Timeline Source #
Get the value of the “timeline” property.
 When overloading is enabled, this is equivalent to
get animator #timeline
setAnimatorTimeline :: (MonadIO m, IsAnimator o, IsTimeline a) => o -> a -> m () Source #
Set the value of the “timeline” property.
 When overloading is enabled, this is equivalent to
setanimator [ #timeline:=value ]