mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-10-03 20:47:32 +00:00
71337db92e
Thu Sep 7 14:15:03 2000 Owen Taylor <otaylor@redhat.com> * gdk/* gtk/*: Move gtk-reference files into GTK+ tree proper. * Update sections.txt files to correspond to current code, tweak .sgml files and Makefiles to correspond. * gtk/tmpl/gtkradiomenuitem.sgml (this): Remove extra <para>
181 lines
3.1 KiB
Plaintext
181 lines
3.1 KiB
Plaintext
<!-- ##### SECTION Title ##### -->
|
|
Animations
|
|
|
|
<!-- ##### SECTION Short_Description ##### -->
|
|
Animations as multi-frame structures.
|
|
|
|
<!-- ##### SECTION Long_Description ##### -->
|
|
<para>
|
|
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.
|
|
</para>
|
|
|
|
<!-- ##### SECTION See_Also ##### -->
|
|
<para>
|
|
#GdkPixbufLoader
|
|
</para>
|
|
|
|
<!-- ##### ENUM GdkPixbufFrameAction ##### -->
|
|
<para>
|
|
Each animation frame can have several things happen to it when the
|
|
next frame is displayed. The #GdkPixbufFrameAction determines
|
|
this. These are essentially the overlay modes supported by GIF
|
|
animations.
|
|
</para>
|
|
|
|
@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.
|
|
|
|
<!-- ##### 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:
|
|
@x_offset:
|
|
@y_offset:
|
|
@delay_time:
|
|
@action:
|
|
|
|
<!-- ##### STRUCT GdkPixbufAnimation ##### -->
|
|
<para>
|
|
This structure describes an animation, which is represented as a
|
|
list of #GdkPixbufFrame structures.
|
|
</para>
|
|
|
|
@parent_instance:
|
|
@n_frames:
|
|
@frames:
|
|
@width:
|
|
@height:
|
|
|
|
<!-- ##### STRUCT GdkPixbufAnimationClass ##### -->
|
|
<para>
|
|
|
|
</para>
|
|
|
|
|
|
<!-- ##### FUNCTION gdk_pixbuf_animation_new_from_file ##### -->
|
|
<para>
|
|
|
|
</para>
|
|
|
|
@filename:
|
|
@Returns:
|
|
|
|
|
|
<!-- ##### FUNCTION gdk_pixbuf_animation_ref ##### -->
|
|
<para>
|
|
|
|
</para>
|
|
|
|
@animation:
|
|
@Returns:
|
|
|
|
|
|
<!-- ##### FUNCTION gdk_pixbuf_animation_unref ##### -->
|
|
<para>
|
|
|
|
</para>
|
|
|
|
@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: <!--
|
|
Local variables:
|
|
mode: sgml
|
|
sgml-parent-document: ("../gdk-pixbuf.sgml" "book" "refsect2" "")
|
|
End:
|
|
-->
|
|
|
|
|