Class
CdkPixbufPixbufAnimation
deprecated: 2.44
Description [src]
class CdkPixbuf.PixbufAnimation : GObject.Object
{
/* No available fields */
}
An opaque object representing an animation.
The CdkPixBuf library provides a simple mechanism to load and represent animations. An animation is conceptually a series of frames to be displayed over time.
The animation may not be represented as a series of frames internally; for example, it may be stored as a sprite and instructions for moving the sprite around a background.
To display an animation you don’t need to understand its
representation, however; you just ask CdkPixbuf what should
be displayed at a given point in time.
Deprecated since: 2.44
Use a different image loading library for animatable assets.
Constructors
cdk_pixbuf_animation_new_from_file
Creates a new animation by loading it from a file.
deprecated: 2.44
cdk_pixbuf_animation_new_from_resource
Creates a new pixbuf animation by loading an image from an resource.
deprecated: 2.44 since: 2.28
cdk_pixbuf_animation_new_from_stream
Creates a new animation by loading it from an input stream.
deprecated: 2.44 since: 2.28
cdk_pixbuf_animation_new_from_stream_finish
Finishes an asynchronous pixbuf animation creation operation started with
cdk_pixbuf_animation_new_from_stream_async().
deprecated: 2.44 since: 2.28
Functions
cdk_pixbuf_animation_new_from_stream_async
Creates a new animation by asynchronously loading an image from an input stream.
deprecated: 2.44 since: 2.28
Instance methods
cdk_pixbuf_animation_get_height
Queries the height of the bounding box of a pixbuf animation.
deprecated: 2.44
cdk_pixbuf_animation_get_width
Queries the width of the bounding box of a pixbuf animation.
deprecated: 2.44
cdk_pixbuf_animation_is_static_image
Checks whether the animation is a static image.
deprecated: 2.44
Signals
Signals inherited from GObject (1)
GObject::notify
The notify signal is emitted on an object when one of its properties has its value set through g_object_set_property(), g_object_set(), et al.
Class structure
struct CdkPixbufPixbufAnimationClass {
GObjectClass parent_class;
gboolean (* is_static_image) (
CdkPixbufAnimation* animation
);
CdkPixbuf* (* get_static_image) (
CdkPixbufAnimation* animation
);
void (* get_size) (
CdkPixbufAnimation* animation,
int* width,
int* height
);
CdkPixbufAnimationIter* (* get_iter) (
CdkPixbufAnimation* animation,
const GTimeVal* start_time
);
}
Modules supporting animations must derive a type from
CdkPixbufAnimation, providing suitable implementations of the
virtual functions.
Class members
parent_class: GObjectClassThe parent class.
is_static_image: gboolean (* is_static_image) ( CdkPixbufAnimation* animation )Returns whether the given animation is just a static image.
get_static_image: CdkPixbuf* (* get_static_image) ( CdkPixbufAnimation* animation )Returns a static image representing the given animation.
get_size: void (* get_size) ( CdkPixbufAnimation* animation, int* width, int* height )Fills
widthandheightwith the frame size of the animation.get_iter: CdkPixbufAnimationIter* (* get_iter) ( CdkPixbufAnimation* animation, const GTimeVal* start_time )Returns an iterator for the given animation.
Virtual methods
CdkPixbuf.PixbufAnimationClass.get_iter
Get an iterator for displaying an animation.
deprecated: 2.44
CdkPixbuf.PixbufAnimationClass.get_size
Fills width and height with the frame size of the animation.
CdkPixbuf.PixbufAnimationClass.get_static_image
Retrieves a static image for the animation.
deprecated: 2.44
CdkPixbuf.PixbufAnimationClass.is_static_image
Checks whether the animation is a static image.
deprecated: 2.44