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.KeyframeTransition
Description
The ClutterKeyframeTransition
structure contains only private
data and should be accessed using the provided API.
Since: 1.12
Synopsis
- newtype KeyframeTransition = KeyframeTransition (ManagedPtr KeyframeTransition)
- class (GObject o, IsDescendantOf KeyframeTransition o) => IsKeyframeTransition o
- toKeyframeTransition :: (MonadIO m, IsKeyframeTransition o) => o -> m KeyframeTransition
- keyframeTransitionClear :: (HasCallStack, MonadIO m, IsKeyframeTransition a) => a -> m ()
- keyframeTransitionGetKeyFrame :: (HasCallStack, MonadIO m, IsKeyframeTransition a) => a -> Word32 -> m (Double, AnimationMode, GValue)
- keyframeTransitionGetNKeyFrames :: (HasCallStack, MonadIO m, IsKeyframeTransition a) => a -> m Word32
- keyframeTransitionNew :: (HasCallStack, MonadIO m) => Text -> m KeyframeTransition
- keyframeTransitionSetKeyFrame :: (HasCallStack, MonadIO m, IsKeyframeTransition a) => a -> Word32 -> Double -> AnimationMode -> GValue -> m ()
- keyframeTransitionSetKeyFrames :: (HasCallStack, MonadIO m, IsKeyframeTransition a) => a -> [Double] -> m ()
- keyframeTransitionSetModes :: (HasCallStack, MonadIO m, IsKeyframeTransition a) => a -> [AnimationMode] -> m ()
- keyframeTransitionSetValues :: (HasCallStack, MonadIO m, IsKeyframeTransition a) => a -> [GValue] -> m ()
Exported types
newtype KeyframeTransition Source #
Memory-managed wrapper type.
Constructors
KeyframeTransition (ManagedPtr KeyframeTransition) |
Instances
class (GObject o, IsDescendantOf KeyframeTransition o) => IsKeyframeTransition o Source #
Type class for types which can be safely cast to KeyframeTransition
, for instance with toKeyframeTransition
.
Instances
(GObject o, IsDescendantOf KeyframeTransition o) => IsKeyframeTransition o Source # | |
Defined in GI.Clutter.Objects.KeyframeTransition |
toKeyframeTransition :: (MonadIO m, IsKeyframeTransition o) => o -> m KeyframeTransition Source #
Cast to KeyframeTransition
, for types for which this is known to be safe. For general casts, use castTo
.
Methods
Click to display all available methods, including inherited ones
Methods
addMarker, addMarkerAtTime, advance, advanceToMarker, bindProperty, bindPropertyFull, clear, clone, forceFloating, freezeNotify, getv, hasMarker, isFloating, isPlaying, listMarkers, notify, notifyByPspec, parseCustomNode, pause, ref, refSink, removeMarker, rewind, runDispose, skip, start, stealData, stealQdata, stop, thawNotify, unref, watchClosure.
Getters
getAnimatable, getAutoReverse, getCubicBezierProgress, getCurrentRepeat, getData, getDelay, getDelta, getDirection, getDuration, getDurationHint, getElapsedTime, getId, getInterval, getKeyFrame, getLoop, getNKeyFrames, getProgress, getProgressMode, getProperty, getPropertyName, getQdata, getRemoveOnComplete, getRepeatCount, getStepProgress.
Setters
setAnimatable, setAutoReverse, setCubicBezierProgress, setCustomProperty, setData, setDataFull, setDelay, setDirection, setDuration, setFrom, setId, setInterval, setKeyFrame, setKeyFrames, setLoop, setModes, setProgressFunc, setProgressMode, setProperty, setPropertyName, setRemoveOnComplete, setRepeatCount, setStepProgress, setTo, setValues.
clear
keyframeTransitionClear Source #
Arguments
:: (HasCallStack, MonadIO m, IsKeyframeTransition a) | |
=> a |
|
-> m () |
Removes all key frames from transition
.
Since: 1.12
getKeyFrame
keyframeTransitionGetKeyFrame Source #
Arguments
:: (HasCallStack, MonadIO m, IsKeyframeTransition a) | |
=> a |
|
-> Word32 |
|
-> m (Double, AnimationMode, GValue) |
Retrieves the details of the key frame at index_
inside transition
.
The transition
must already have key frames set, and index_
must be
smaller than the number of key frames.
Since: 1.12
getNKeyFrames
keyframeTransitionGetNKeyFrames Source #
Arguments
:: (HasCallStack, MonadIO m, IsKeyframeTransition a) | |
=> a |
|
-> m Word32 | Returns: the number of key frames |
Retrieves the number of key frames inside transition
.
Since: 1.12
new
keyframeTransitionNew Source #
Arguments
:: (HasCallStack, MonadIO m) | |
=> Text |
|
-> m KeyframeTransition | Returns: the newly allocated
|
Creates a new KeyframeTransition
for propertyName
.
Since: 1.12
setKeyFrame
keyframeTransitionSetKeyFrame Source #
Arguments
:: (HasCallStack, MonadIO m, IsKeyframeTransition a) | |
=> a |
|
-> Word32 |
|
-> Double |
|
-> AnimationMode |
|
-> GValue |
|
-> m () |
Sets the details of the key frame at index_
inside transition
.
The transition
must already have a key frame at index_
, and index_
must be smaller than the number of key frames inside transition
.
Since: 1.12
setKeyFrames
keyframeTransitionSetKeyFrames Source #
Arguments
:: (HasCallStack, MonadIO m, IsKeyframeTransition a) | |
=> a |
|
-> [Double] |
|
-> m () |
Sets the keys for each key frame inside transition
.
If transition
does not hold any key frame, nKeyFrames
key frames
will be created; if transition
already has key frames, keyFrames
must
have at least as many elements as the number of key frames.
Since: 1.12
setModes
keyframeTransitionSetModes Source #
Arguments
:: (HasCallStack, MonadIO m, IsKeyframeTransition a) | |
=> a |
|
-> [AnimationMode] |
|
-> m () |
Sets the easing modes for each key frame inside transition
.
If transition
does not hold any key frame, nModes
key frames will
be created; if transition
already has key frames, modes
must have
at least as many elements as the number of key frames.
Since: 1.12
setValues
keyframeTransitionSetValues Source #
Arguments
:: (HasCallStack, MonadIO m, IsKeyframeTransition a) | |
=> a |
|
-> [GValue] |
|
-> m () |
Sets the values for each key frame inside transition
.
If transition
does not hold any key frame, nValues
key frames will
be created; if transition
already has key frames, values
must have
at least as many elements as the number of key frames.
Since: 1.12