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.Dazzle.Objects.Animation
Description
No description available in the introspection data.
Synopsis
- newtype Animation = Animation (ManagedPtr Animation)
- class (GObject o, IsDescendantOf Animation o) => IsAnimation o
- toAnimation :: (MonadIO m, IsAnimation o) => o -> m Animation
- animationAddProperty :: (HasCallStack, MonadIO m, IsAnimation a) => a -> GParamSpec -> GValue -> m ()
- animationCalculateDuration :: (HasCallStack, MonadIO m, IsMonitor a) => a -> Double -> Double -> m Word32
- animationStart :: (HasCallStack, MonadIO m, IsAnimation a) => a -> m ()
- animationStop :: (HasCallStack, MonadIO m, IsAnimation a) => Maybe a -> m ()
- constructAnimationDuration :: (IsAnimation o, MonadIO m) => Word32 -> m (GValueConstruct o)
- constructAnimationFrameClock :: (IsAnimation o, MonadIO m, IsFrameClock a) => a -> m (GValueConstruct o)
- constructAnimationMode :: (IsAnimation o, MonadIO m) => AnimationMode -> m (GValueConstruct o)
- constructAnimationTarget :: (IsAnimation o, MonadIO m, IsObject a) => a -> m (GValueConstruct o)
- type AnimationTickCallback = IO ()
- afterAnimationTick :: (IsAnimation a, MonadIO m) => a -> ((?self :: a) => AnimationTickCallback) -> m SignalHandlerId
- onAnimationTick :: (IsAnimation a, MonadIO m) => a -> ((?self :: a) => AnimationTickCallback) -> m SignalHandlerId
Exported types
Memory-managed wrapper type.
Instances
Eq Animation Source # | |
GObject Animation Source # | |
Defined in GI.Dazzle.Objects.Animation | |
ManagedPtrNewtype Animation Source # | |
Defined in GI.Dazzle.Objects.Animation Methods toManagedPtr :: Animation -> ManagedPtr Animation | |
TypedObject Animation Source # | |
Defined in GI.Dazzle.Objects.Animation | |
HasParentTypes Animation Source # | |
Defined in GI.Dazzle.Objects.Animation | |
IsGValue (Maybe Animation) Source # | Convert |
Defined in GI.Dazzle.Objects.Animation Methods gvalueGType_ :: IO GType gvalueSet_ :: Ptr GValue -> Maybe Animation -> IO () gvalueGet_ :: Ptr GValue -> IO (Maybe Animation) | |
type ParentTypes Animation Source # | |
Defined in GI.Dazzle.Objects.Animation type ParentTypes Animation = '[Object] |
class (GObject o, IsDescendantOf Animation o) => IsAnimation o Source #
Type class for types which can be safely cast to Animation
, for instance with toAnimation
.
Instances
(GObject o, IsDescendantOf Animation o) => IsAnimation o Source # | |
Defined in GI.Dazzle.Objects.Animation |
toAnimation :: (MonadIO m, IsAnimation o) => o -> m Animation Source #
Methods
Click to display all available methods, including inherited ones
Methods
addProperty, bindProperty, bindPropertyFull, forceFloating, freezeNotify, getv, isFloating, notify, notifyByPspec, ref, refSink, runDispose, start, stealData, stealQdata, stop, thawNotify, unref, watchClosure.
Getters
getData, getProperty, getQdata.
Setters
addProperty
Arguments
:: (HasCallStack, MonadIO m, IsAnimation a) | |
=> a |
|
-> GParamSpec |
|
-> GValue |
|
-> m () |
Adds a new property to the set of properties to be animated during the lifetime of the animation.
Side effects: None.
calculateDuration
animationCalculateDuration :: (HasCallStack, MonadIO m, IsMonitor a) => a -> Double -> Double -> m Word32 Source #
No description available in the introspection data.
start
Arguments
:: (HasCallStack, MonadIO m, IsAnimation a) | |
=> a |
|
-> m () |
Start the animation. When the animation stops, the internal reference will be dropped and the animation may be finalized.
Side effects: None.
stop
Arguments
:: (HasCallStack, MonadIO m, IsAnimation a) | |
=> Maybe a |
|
-> m () |
Stops a running animation. The internal reference to the animation is dropped and therefore may cause the object to finalize.
As a convenience, this function accepts Nothing
for animation
but
does nothing if that should occur.
Properties
duration
The "duration" property is the total number of milliseconds that the animation should run before being completed.
constructAnimationDuration :: (IsAnimation 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
.
frameClock
No description available in the introspection data.
constructAnimationFrameClock :: (IsAnimation o, MonadIO m, IsFrameClock a) => a -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “frame-clock
” property. This is rarely needed directly, but it is used by new
.
mode
The "mode" property is the Alpha function that should be used to determine the offset within the animation based on the current offset in the animations duration.
constructAnimationMode :: (IsAnimation o, MonadIO m) => AnimationMode -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “mode
” property. This is rarely needed directly, but it is used by new
.
target
The "target" property is the Object
that should have its properties
animated.
constructAnimationTarget :: (IsAnimation o, MonadIO m, IsObject a) => a -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “target
” property. This is rarely needed directly, but it is used by new
.
Signals
tick
type AnimationTickCallback = IO () Source #
The "tick" signal is emitted on each frame in the animation.
afterAnimationTick :: (IsAnimation a, MonadIO m) => a -> ((?self :: a) => AnimationTickCallback) -> m SignalHandlerId Source #
Connect a signal handler for the tick signal, to be run after the default handler. When overloading is enabled, this is equivalent to
after
animation #tick callback
By default the object invoking the signal is not passed to the callback.
If you need to access it, you can use the implit ?self
parameter.
Note that this requires activating the ImplicitParams
GHC extension.
onAnimationTick :: (IsAnimation a, MonadIO m) => a -> ((?self :: a) => AnimationTickCallback) -> m SignalHandlerId Source #
Connect a signal handler for the tick signal, to be run before the default handler. When overloading is enabled, this is equivalent to
on
animation #tick callback