1 /* GdkPixbuf library - Progressive loader object
3 * Copyright (C) 1999 The Free Software Foundation
5 * Authors: Mark Crichton <crichton@gimp.org>
6 * Miguel de Icaza <miguel@gnu.org>
7 * Federico Mena-Quintero <federico@gimp.org>
8 * Jonathan Blandford <jrb@redhat.com>
10 * This library is free software; you can redistribute it and/or
11 * modify it under the terms of the GNU Lesser General Public
12 * License as published by the Free Software Foundation; either
13 * version 2 of the License, or (at your option) any later version.
15 * This library is distributed in the hope that it will be useful,
16 * but WITHOUT ANY WARRANTY; without even the implied warranty of
17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18 * Lesser General Public License for more details.
20 * You should have received a copy of the GNU Lesser General Public
21 * License along with this library; if not, write to the
22 * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
23 * Boston, MA 02111-1307, USA.
26 #ifndef GDK_PIXBUF_LOADER_H
27 #define GDK_PIXBUF_LOADER_H
31 #define GDK_TYPE_PIXBUF_LOADER (gdk_pixbuf_loader_get_type ())
32 #define GDK_PIXBUF_LOADER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GDK_TYPE_PIXBUF_LOADER, GdkPixbufLoader))
33 #define GDK_PIXBUF_LOADER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GDK_TYPE_PIXBUF_LOADER, GdkPixbufLoaderClass))
34 #define GDK_IS_PIXBUF_LOADER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GDK_TYPE_PIXBUF_LOADER))
35 #define GDK_IS_PIXBUF_LOADER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GDK_TYPE_PIXBUF_LOADER))
36 #define GDK_PIXBUF_LOADER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GDK_TYPE_PIXBUF_LOADER, GdkPixbufLoaderClass))
39 typedef struct _GdkPixbufLoader GdkPixbufLoader;
40 struct _GdkPixbufLoader
42 GObject parent_instance;
48 typedef struct _GdkPixbufLoaderClass GdkPixbufLoaderClass;
49 struct _GdkPixbufLoaderClass
51 GObjectClass parent_class;
53 void (*area_prepared) (GdkPixbufLoader *loader);
55 /* Last known frame needs a redraw for x, y, width, height */
56 void (*area_updated) (GdkPixbufLoader *loader,
62 void (*closed) (GdkPixbufLoader *loader);
66 GType gdk_pixbuf_loader_get_type (void) G_GNUC_CONST;
67 GdkPixbufLoader * gdk_pixbuf_loader_new (void);
68 GdkPixbufLoader * gdk_pixbuf_loader_new_with_type (const char *image_type,
70 gboolean gdk_pixbuf_loader_write (GdkPixbufLoader *loader,
74 GdkPixbuf * gdk_pixbuf_loader_get_pixbuf (GdkPixbufLoader *loader);
75 GdkPixbufAnimation * gdk_pixbuf_loader_get_animation (GdkPixbufLoader *loader);
76 gboolean gdk_pixbuf_loader_close (GdkPixbufLoader *loader,