2000-01-02 03:59:22 +00:00
|
|
|
<!-- ##### SECTION Title ##### -->
|
|
|
|
Animations
|
|
|
|
|
|
|
|
<!-- ##### SECTION Short_Description ##### -->
|
|
|
|
Animations as multi-frame structures.
|
|
|
|
|
|
|
|
<!-- ##### SECTION Long_Description ##### -->
|
|
|
|
<para>
|
2000-04-13 01:18:41 +00:00
|
|
|
The <application>gdk-pixbuf</application> 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.
|
2000-01-02 03:59:22 +00:00
|
|
|
</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
|
2000-04-13 01:18:41 +00:00
|
|
|
next frame is displayed. The #GdkPixbufFrameAction determines
|
|
|
|
this. These are essentially the overlay modes supported by GIF
|
|
|
|
animations.
|
2000-01-02 03:59:22 +00:00
|
|
|
</para>
|
|
|
|
|
2000-04-13 01:18:41 +00:00
|
|
|
@GDK_PIXBUF_FRAME_RETAIN: The previous image should remain displayed,
|
|
|
|
and will potentially be occluded by the new frame.
|
|
|
|
|
|
|
|
@GDK_PIXBUF_FRAME_DISPOSE: The animation will be reverted to the state
|
|
|
|
before the frame was shown.
|
|
|
|
|
|
|
|
@GDK_PIXBUF_FRAME_REVERT: The animation will be reverted to the first
|
|
|
|
frame.
|
2000-01-02 03:59:22 +00:00
|
|
|
|
|
|
|
<!-- ##### 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>
|
|
|
|
|
|
|
|
<!-- ##### STRUCT GdkPixbufAnimation ##### -->
|
|
|
|
<para>
|
|
|
|
This structure describes an animation, which is represented as a
|
|
|
|
list of #GdkPixbufFrame structures.
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gdk_pixbuf_animation_new_from_file ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@filename:
|
|
|
|
@Returns:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gdk_pixbuf_animation_ref ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@animation:
|
2000-01-21 22:54:44 +00:00
|
|
|
@Returns:
|
2000-01-02 03:59:22 +00:00
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gdk_pixbuf_animation_unref ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
2000-04-13 01:18:41 +00:00
|
|
|
@animation:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gdk_pixbuf_animation_get_frames ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@animation:
|
|
|
|
@Returns:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gdk_pixbuf_animation_get_width ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@animation:
|
|
|
|
@Returns:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gdk_pixbuf_animation_get_num_frames ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@animation:
|
|
|
|
@Returns:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gdk_pixbuf_animation_get_height ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@animation:
|
|
|
|
@Returns:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gdk_pixbuf_frame_get_pixbuf ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@frame:
|
|
|
|
@Returns:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gdk_pixbuf_frame_get_action ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@frame:
|
|
|
|
@Returns:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gdk_pixbuf_frame_get_y_offset ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@frame:
|
|
|
|
@Returns:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gdk_pixbuf_frame_get_delay_time ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@frame:
|
|
|
|
@Returns:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gdk_pixbuf_frame_get_x_offset ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@frame:
|
|
|
|
@Returns:
|
|
|
|
|
|
|
|
<!--
|
2000-01-02 03:59:22 +00:00
|
|
|
Local variables:
|
|
|
|
mode: sgml
|
|
|
|
sgml-parent-document: ("../gdk-pixbuf.sgml" "book" "refsect2" "")
|
|
|
|
End:
|
|
|
|
-->
|