Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria (garetxe@gmail.com) |
Safe Haskell | None |
Language | Haskell2010 |
An opaque struct representing a simple animation.
- newtype PixbufSimpleAnim = PixbufSimpleAnim (ManagedPtr PixbufSimpleAnim)
- class GObject o => IsPixbufSimpleAnim o
- toPixbufSimpleAnim :: (MonadIO m, IsPixbufSimpleAnim o) => o -> m PixbufSimpleAnim
- noPixbufSimpleAnim :: Maybe 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 => Bool -> IO (GValueConstruct o)
- getPixbufSimpleAnimLoop :: (MonadIO m, IsPixbufSimpleAnim o) => o -> m Bool
- setPixbufSimpleAnimLoop :: (MonadIO m, IsPixbufSimpleAnim o) => o -> Bool -> m ()
Exported types
newtype PixbufSimpleAnim Source #
class GObject o => IsPixbufSimpleAnim o Source #
toPixbufSimpleAnim :: (MonadIO m, IsPixbufSimpleAnim o) => o -> m PixbufSimpleAnim Source #
Methods
addFrame
pixbufSimpleAnimAddFrame Source #
:: (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 #
:: (HasCallStack, MonadIO m, IsPixbufSimpleAnim a) | |
=> a |
|
-> m Bool | Returns: |
Gets whether animation
should loop indefinitely when it reaches the end.
Since: 2.18
new
:: (HasCallStack, MonadIO m) | |
=> Int32 |
|
-> Int32 |
|
-> Float |
|
-> m PixbufSimpleAnim | Returns: a newly allocated |
Creates a new, empty animation.
Since: 2.8
setLoop
pixbufSimpleAnimSetLoop Source #
:: (HasCallStack, MonadIO m, IsPixbufSimpleAnim a) | |
=> a |
|
-> Bool |
|
-> m () |
Sets whether animation
should loop indefinitely when it reaches the end.
Since: 2.18
Properties
loop
constructPixbufSimpleAnimLoop :: IsPixbufSimpleAnim o => Bool -> IO (GValueConstruct o) Source #
getPixbufSimpleAnimLoop :: (MonadIO m, IsPixbufSimpleAnim o) => o -> m Bool Source #
setPixbufSimpleAnimLoop :: (MonadIO m, IsPixbufSimpleAnim o) => o -> Bool -> m () Source #