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.GdkPixbuf.Objects.PixbufSimpleAnim
Description
An opaque struct representing a simple animation.
Synopsis
- newtype PixbufSimpleAnim = PixbufSimpleAnim (ManagedPtr PixbufSimpleAnim)
- class (GObject o, IsDescendantOf PixbufSimpleAnim o) => IsPixbufSimpleAnim o
- toPixbufSimpleAnim :: (MonadIO m, IsPixbufSimpleAnim o) => o -> m PixbufSimpleAnim
- pixbufSimpleAnimAddFrame :: (HasCallStack, MonadIO m, IsPixbufSimpleAnim a, IsPixbuf b) => a -> b -> m ()
- pixbufSimpleAnimGetLoop :: (HasCallStack, MonadIO m, IsPixbufSimpleAnim a) => a -> m Bool
- pixbufSimpleAnimNew :: (HasCallStack, MonadIO m) => Int32 -> Int32 -> Float -> m PixbufSimpleAnim
- pixbufSimpleAnimSetLoop :: (HasCallStack, MonadIO m, IsPixbufSimpleAnim a) => a -> Bool -> m ()
- constructPixbufSimpleAnimLoop :: (IsPixbufSimpleAnim o, MonadIO m) => Bool -> m (GValueConstruct o)
- getPixbufSimpleAnimLoop :: (MonadIO m, IsPixbufSimpleAnim o) => o -> m Bool
- setPixbufSimpleAnimLoop :: (MonadIO m, IsPixbufSimpleAnim o) => o -> Bool -> m ()
Exported types
newtype PixbufSimpleAnim Source #
Memory-managed wrapper type.
Constructors
PixbufSimpleAnim (ManagedPtr PixbufSimpleAnim) |
Instances
class (GObject o, IsDescendantOf PixbufSimpleAnim o) => IsPixbufSimpleAnim o Source #
Type class for types which can be safely cast to PixbufSimpleAnim
, for instance with toPixbufSimpleAnim
.
Instances
(GObject o, IsDescendantOf PixbufSimpleAnim o) => IsPixbufSimpleAnim o Source # | |
Defined in GI.GdkPixbuf.Objects.PixbufSimpleAnim |
toPixbufSimpleAnim :: (MonadIO m, IsPixbufSimpleAnim o) => o -> m PixbufSimpleAnim Source #
Cast to PixbufSimpleAnim
, 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
addFrame, bindProperty, bindPropertyFull, forceFloating, freezeNotify, getv, isFloating, isStaticImage, notify, notifyByPspec, ref, refSink, runDispose, stealData, stealQdata, thawNotify, unref, watchClosure.
Getters
getData, getHeight, getIter, getLoop, getProperty, getQdata, getStaticImage, getWidth.
Setters
addFrame
pixbufSimpleAnimAddFrame Source #
Arguments
:: (HasCallStack, MonadIO m, IsPixbufSimpleAnim a, IsPixbuf b) | |
=> a |
|
-> b |
|
-> m () |
Adds a new frame to animation
. The pixbuf
must
have the dimensions specified when the animation
was constructed.
Since: 2.8
getLoop
pixbufSimpleAnimGetLoop Source #
Arguments
:: (HasCallStack, MonadIO m, IsPixbufSimpleAnim a) | |
=> a |
|
-> m Bool | Returns: |
Gets whether animation
should loop indefinitely when it reaches the end.
Since: 2.18
new
Arguments
:: (HasCallStack, MonadIO m) | |
=> Int32 |
|
-> Int32 |
|
-> Float |
|
-> m PixbufSimpleAnim | Returns: a newly allocated |
Creates a new, empty animation.
Since: 2.8
setLoop
pixbufSimpleAnimSetLoop Source #
Arguments
:: (HasCallStack, MonadIO m, IsPixbufSimpleAnim a) | |
=> a |
|
-> Bool |
|
-> m () |
Sets whether animation
should loop indefinitely when it reaches the end.
Since: 2.18
Properties
loop
Whether the animation should loop when it reaches the end.
Since: 2.18
constructPixbufSimpleAnimLoop :: (IsPixbufSimpleAnim o, MonadIO m) => Bool -> m (GValueConstruct o) Source #
Construct a GValueConstruct
with valid value for the “loop
” property. This is rarely needed directly, but it is used by new
.
getPixbufSimpleAnimLoop :: (MonadIO m, IsPixbufSimpleAnim o) => o -> m Bool Source #
Get the value of the “loop
” property.
When overloading is enabled, this is equivalent to
get
pixbufSimpleAnim #loop
setPixbufSimpleAnimLoop :: (MonadIO m, IsPixbufSimpleAnim o) => o -> Bool -> m () Source #
Set the value of the “loop
” property.
When overloading is enabled, this is equivalent to
set
pixbufSimpleAnim [ #loop:=
value ]