Copyright | Will Thompson Iñaki García Etxebarria and Jonas Platte |
---|---|
License | LGPL-2.1 |
Maintainer | Iñaki García Etxebarria (inaki@blueleaf.cc) |
Safe Haskell | None |
Language | Haskell2010 |
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
- 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 #
Memory-managed wrapper type.
Instances
GObject PixbufSimpleAnim Source # | |
Defined in GI.GdkPixbuf.Objects.PixbufSimpleAnim gobjectType :: IO GType # | |
HasParentTypes PixbufSimpleAnim Source # | |
Defined in GI.GdkPixbuf.Objects.PixbufSimpleAnim | |
type ParentTypes PixbufSimpleAnim Source # | |
Defined in GI.GdkPixbuf.Objects.PixbufSimpleAnim |
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
.
noPixbufSimpleAnim :: Maybe PixbufSimpleAnim Source #
A convenience alias for Nothing
:: Maybe
PixbufSimpleAnim
.
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
Whether the animation should loop when it reaches the end.
Since: 2.18
constructPixbufSimpleAnimLoop :: IsPixbufSimpleAnim o => Bool -> IO (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 ]