diff --git a/docs/reference/gdk-pixbuf/gdk-pixbuf-decl.txt b/docs/reference/gdk-pixbuf/gdk-pixbuf-decl.txt
index 2413a24f95..a5246c9a8a 100644
--- a/docs/reference/gdk-pixbuf/gdk-pixbuf-decl.txt
+++ b/docs/reference/gdk-pixbuf/gdk-pixbuf-decl.txt
@@ -24,12 +24,15 @@ struct GdkPixbufModule {
gpointer (* begin_load) (ModulePreparedNotifyFunc prepare_func, ModuleUpdatedNotifyFunc update_func, gpointer user_data);
void (* stop_load) (gpointer context);
gboolean (* load_increment)(gpointer context, const gchar *buf, guint size);
+
+ /* Animation loading */
+ GdkPixbufAnimation *(* load_animation) (FILE *f);
};
gdk_pixbuf_get_moduleGdkPixbufModule *
-gchar *buffer, gint size
+gchar *buffer,gint size
gdk_pixbuf_load_module
@@ -79,17 +82,22 @@ void
gdk_pixbuf_loader_new
-GdkPixbufLoader *
+GdkPixbufLoader *
void
gdk_pixbuf_loader_writegboolean
-GdkPixbufLoader *loader, const gchar *buf, size_t count
+GdkPixbufLoader *loader,const gchar *buf,size_t count
gdk_pixbuf_loader_get_pixbuf
-GdkPixbuf *
+GdkPixbuf *
+GdkPixbufLoader *loader
+
+
+gdk_pixbuf_loader_get_animation
+GdkPixbufAnimation *
GdkPixbufLoader *loader
@@ -101,8 +109,24 @@ GdkPixbufLoader *loader
GdkPixbuf
+GdkPixbufFrame
+
+
+GdkPixbufAnimation
+
+
+GdkPixbufFrameAction
+typedef enum
+{
+ GDK_PIXBUF_FRAME_RETAIN,
+ GDK_PIXBUF_FRAME_DISPOSE,
+ GDK_PIXBUF_FRAME_REVERT
+} GdkPixbufFrameAction;
+
+GdkPixbuf
-struct GdkPixbuf {
+struct GdkPixbuf
+{
/* Reference count */
int ref_count;
@@ -110,6 +134,26 @@ struct GdkPixbuf {
ArtPixBuf *art_pixbuf;
};
+
+GdkPixbufFrame
+struct GdkPixbufFrame
+{
+ GdkPixbuf *pixbuf;
+
+ gushort x_offset;
+ gushort y_offset;
+ guint delaytime;
+ GdkPixbufFrameAction action;
+};
+
+
+GdkPixbufAnimation
+struct GdkPixbufAnimation
+{
+ int n_frames;
+ GList *frames;
+};
+gdk_pixbuf_get_formatArtPixFormat
@@ -173,17 +217,17 @@ ArtPixFormat format, gboolean has_alpha, int bits_per_sample,int width, int heig
gdk_pixbuf_new_from_fileGdkPixbuf *
-const char *filename
+const char *filename
gdk_pixbuf_new_from_dataGdkPixbuf *
-guchar *data, ArtPixFormat format, gboolean has_alpha,int width, int height, int rowstride,ArtDestroyNotify dfunc, gpointer dfunc_data
+guchar *data,ArtPixFormat format,gboolean has_alpha,int width, int height,int rowstride,ArtDestroyNotify dfunc,gpointer dfunc_data
gdk_pixbuf_new_from_xpm_dataGdkPixbuf *
-const gchar **data
+const gchar **data
gdk_pixbuf_add_alpha
@@ -217,6 +261,16 @@ GdkPixbuf *pixbuf, GdkDrawable *drawable,int src_x, int src_y,int dest_x, int de
GdkPixbuf *
GdkPixbuf *dest,GdkDrawable *src, GdkColormap *cmap,int src_x, int src_y,int dest_x, int dest_y,int width, int height
+
+gdk_pixbuf_animation_new_from_file
+GdkPixbufAnimation *
+const char *filename
+
+
+gdk_pixbuf_animation_destroy
+void
+GdkPixbufAnimation *animation,gboolean free_frames
+GNOME_TYPE_CANVAS_PIXBUF
#define GNOME_TYPE_CANVAS_PIXBUF (gnome_canvas_pixbuf_get_type ())
diff --git a/docs/reference/gdk-pixbuf/tmpl/gnome-canvas-pixbuf.sgml b/docs/reference/gdk-pixbuf/tmpl/gnome-canvas-pixbuf.sgml
index 9ae9baeed4..fd5d97e5bf 100644
--- a/docs/reference/gdk-pixbuf/tmpl/gnome-canvas-pixbuf.sgml
+++ b/docs/reference/gdk-pixbuf/tmpl/gnome-canvas-pixbuf.sgml
@@ -87,11 +87,13 @@ Canvas item to display #GdkPixbuf images.
Normally, the pixbuf item's translation and scaling arguments
are interpreted in units, so they will be modified by the item's
affine transformation. The width_pixels,
+ linkend="GnomeCanvasPixbuf--width-in-pixels">width_in_pixels,
height_pixels,
- x_pixels, and
- y_pixels
+ linkend="GnomeCanvasPixbuf--height-in-pixels">height_in_pixels,
+ x_in_pixels, and
+ y_in_pixels
object arguments can be used to modify this behavior. If one of
these arguments is %TRUE, then the corresponding scaling or
translation value will not be affected lengthwise by the pixbuf
@@ -102,11 +104,11 @@ Canvas item to display #GdkPixbuf images.
For example, consider a pixbuf item whose size is (300, 200).
If the item is modified with a scaling transformation of (0.5,
2.0) but the width_pixels is
- set to %TRUE, then the item will appear to be (300, 400) pixels
- in size. This means that in this case the item's affine
- transformation only applies to the height value, while the
- width value is kept in absolute pixels.
+ linkend="GnomeCanvasPixbuf--width-in-pixels">width_in_pixels
+ is set to %TRUE, then the item will appear to be (300, 400)
+ pixels in size. This means that in this case the item's affine
+ transformation only applies to the height value, while the width
+ value is kept in absolute pixels.
@@ -122,11 +124,11 @@ Canvas item to display #GdkPixbuf images.
. If the item is then modified by the same scaling
transformation of (0.5, 2.0) but the y_pixels argument
- is set to %TRUE, then the image's upper-left corner will appear
- to be at position (15, 40). In this case, the affine
- transformation is applied only to the x offset, while the y
- offset is kept in absolute pixels.
+ linkend="GnomeCanvasPixbuf--y-in-pixels">y_in_pixels
+ argument is set to %TRUE, then the image's upper-left corner
+ will appear to be at position (15, 40). In this case, the
+ affine transformation is applied only to the x offset, while the
+ y offset is kept in absolute pixels.
@@ -215,12 +217,12 @@ Canvas item to display #GdkPixbuf images.
will only be used if the width_set argument
is %TRUE. If the width_pixels
+ linkend="GnomeCanvasPixbuf--width-in-pixels">width_in_pixels
argument is %FALSE, the width will be taken to be in canvas units,
and thus will be scaled along with the canvas item's affine
- transformation. If width_pixels is %TRUE, the width will be taken
- to be in pixels, and will visually remain a constant size even if
- the item's affine transformation changes.
+ transformation. If width_in_pixels is %TRUE, the width will be
+ taken to be in pixels, and will visually remain a constant size
+ even if the item's affine transformation changes.
@@ -232,7 +234,7 @@ Canvas item to display #GdkPixbuf images.
used instead. This argument is %FALSE by default.
-
+
If this argument is %TRUE, then the width of the pixbuf will be
considered to be in pixels, that is, it will not be visually
@@ -261,10 +263,10 @@ Canvas item to display #GdkPixbuf images.
The default is %FALSE.
-
+
Works in the same way as the width_pixels
+ linkend="GnomeCanvasPixbuf--width-in-pixels">width_in_pixels
argument. The default is %FALSE.
@@ -285,7 +287,7 @@ Canvas item to display #GdkPixbuf images.
coordinates.
-
+
If this argument is %TRUE, the pixbuf's translation with respect
to its logical origin in item-relative coordinates will be in
@@ -312,11 +314,11 @@ Canvas item to display #GdkPixbuf images.
default is %FALSE.
-
+
Works in the same way as the x_pixels argument.
- The default is %FALSE.
+ linkend="GnomeCanvasPixbuf--x-in-pixels">x_in_pixels
+ argument. The default is %FALSE.