2000-01-02 03:59:22 +00:00
|
|
|
<!-- ##### SECTION Title ##### -->
|
|
|
|
Animations
|
|
|
|
|
|
|
|
<!-- ##### SECTION Short_Description ##### -->
|
|
|
|
Animations as multi-frame structures.
|
|
|
|
|
|
|
|
<!-- ##### SECTION Long_Description ##### -->
|
|
|
|
<para>
|
|
|
|
The GdkPixbuf library provides a simple mechanism to load and
|
|
|
|
represent animations, primarily animated GIF files. Animations
|
|
|
|
are represented as lists of #GdkPixbufFrame structures. Each
|
|
|
|
frame structure contains a #GdkPixbuf structure and information
|
|
|
|
about the frame's overlay mode and duration.
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<!-- ##### SECTION See_Also ##### -->
|
|
|
|
<para>
|
|
|
|
#GdkPixbufLoader
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<!-- ##### ENUM GdkPixbufFrameAction ##### -->
|
|
|
|
<para>
|
2000-01-05 19:46:15 +00:00
|
|
|
Each animation frame can have several things happen to it when the
|
|
|
|
next frame is displayed. The #GdkPixbufFrameAction determines this.
|
|
|
|
If a frame as marked as @GDK_PIXBUF_FRAME_RETAIN, then the image
|
|
|
|
will remain displayed, and will be potentially occluded by the next
|
|
|
|
frame. If it is marked as @GDK_PIXBUF_FRAME_DISPOSE, then the
|
|
|
|
animation is reverted to the setting before the frame was shown. If
|
|
|
|
it is marked as @GDK_PIXBUF_FRAME_REVERT, then the animation is
|
|
|
|
reverted to the first image before continuing.
|
2000-01-02 03:59:22 +00:00
|
|
|
</para>
|
|
|
|
|
|
|
|
@GDK_PIXBUF_FRAME_RETAIN:
|
|
|
|
@GDK_PIXBUF_FRAME_DISPOSE:
|
|
|
|
@GDK_PIXBUF_FRAME_REVERT:
|
|
|
|
|
|
|
|
<!-- ##### STRUCT GdkPixbufFrame ##### -->
|
|
|
|
<para>
|
|
|
|
This structure describes a frame in a #GdkPixbufAnimation. Each
|
|
|
|
frame consists of a #GdkPixbuf, an offset of the frame within the
|
|
|
|
animation's bounding box, a duration, and an overlay mode or
|
|
|
|
action.
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@pixbuf: The frame's image contents.
|
|
|
|
@x_offset: X offset of the frame inside the animation's bounding box.
|
|
|
|
@y_offset: Y offset of the frame inside the animation's bounding box.
|
|
|
|
@delay_time: Duration of the frame in milliseconds.
|
|
|
|
@action: Overlay mode.
|
|
|
|
|
|
|
|
<!-- ##### STRUCT GdkPixbufAnimation ##### -->
|
|
|
|
<para>
|
|
|
|
This structure describes an animation, which is represented as a
|
|
|
|
list of #GdkPixbufFrame structures.
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@ref_count: Reference count.
|
|
|
|
@n_frames: Number of frames in the animation.
|
|
|
|
@frames: List of #GdkPixbufFrame structures.
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gdk_pixbuf_animation_new_from_file ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@filename:
|
|
|
|
@Returns:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gdk_pixbuf_animation_ref ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@animation:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gdk_pixbuf_animation_unref ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
2000-01-06 01:08:10 +00:00
|
|
|
@animation: <!--
|
2000-01-02 03:59:22 +00:00
|
|
|
Local variables:
|
|
|
|
mode: sgml
|
|
|
|
sgml-parent-document: ("../gdk-pixbuf.sgml" "book" "refsect2" "")
|
|
|
|
End:
|
|
|
|
-->
|
2000-01-06 01:08:10 +00:00
|
|
|
|
|
|
|
|