Github User Fetcher 1.0.0
C Application with Server and GUI
Loading...
Searching...
No Matches
gdk-pixbuf-loader.h
Go to the documentation of this file.
1/* GdkPixbuf library - Progressive loader object
2 *
3 * Copyright (C) 1999 The Free Software Foundation
4 *
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>
9 *
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.
14 *
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.
19 *
20 * You should have received a copy of the GNU Lesser General Public
21 * License along with this library; if not, see <http://www.gnu.org/licenses/>.
22 */
23
24#ifndef GDK_PIXBUF_LOADER_H
25#define GDK_PIXBUF_LOADER_H
26
27#if defined(GDK_PIXBUF_DISABLE_SINGLE_INCLUDES) && !defined (GDK_PIXBUF_H_INSIDE) && !defined (GDK_PIXBUF_COMPILATION)
28#error "Only <gdk-pixbuf/gdk-pixbuf.h> can be included directly."
29#endif
30
31#include <glib.h>
32#include <glib-object.h>
36
38
39#define GDK_TYPE_PIXBUF_LOADER (gdk_pixbuf_loader_get_type ())
40#define GDK_PIXBUF_LOADER(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GDK_TYPE_PIXBUF_LOADER, GdkPixbufLoader))
41#define GDK_PIXBUF_LOADER_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), GDK_TYPE_PIXBUF_LOADER, GdkPixbufLoaderClass))
42#define GDK_IS_PIXBUF_LOADER(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GDK_TYPE_PIXBUF_LOADER))
43#define GDK_IS_PIXBUF_LOADER_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), GDK_TYPE_PIXBUF_LOADER))
44#define GDK_PIXBUF_LOADER_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), GDK_TYPE_PIXBUF_LOADER, GdkPixbufLoaderClass))
45
48{
49 /*< private >*/
51
53};
54
57{
59
60 void (*size_prepared) (GdkPixbufLoader *loader,
61 int width,
62 int height);
63
64 void (*area_prepared) (GdkPixbufLoader *loader);
65
66 /* Last known frame needs a redraw for x, y, width, height */
67 void (*area_updated) (GdkPixbufLoader *loader,
68 int x,
69 int y,
70 int width,
71 int height);
72
73 void (*closed) (GdkPixbufLoader *loader);
74};
75
82 GError **error);
85 GError **error);
88 int width,
89 int height);
92 const guchar *buf,
93 gsize count,
94 GError **error);
97 GBytes *buffer,
98 GError **error);
105 GError **error);
108
110
111#endif
112
113
const char * mime_type
Definition civetweb.c:8224
typedefG_BEGIN_DECLS struct _GBytes GBytes
Definition garray.h:38
typedefG_BEGIN_DECLS struct _GdkPixbufAnimation GdkPixbufAnimation
struct _GdkPixbuf GdkPixbuf
typedefG_BEGIN_DECLS struct _GdkPixbufFormat GdkPixbufFormat
GDK_PIXBUF_AVAILABLE_IN_2_4 GdkPixbufLoader * gdk_pixbuf_loader_new_with_mime_type(const char *mime_type, GError **error)
GDK_PIXBUF_AVAILABLE_IN_ALL GdkPixbuf * gdk_pixbuf_loader_get_pixbuf(GdkPixbufLoader *loader)
GDK_PIXBUF_AVAILABLE_IN_ALL gboolean gdk_pixbuf_loader_write(GdkPixbufLoader *loader, const guchar *buf, gsize count, GError **error)
GDK_PIXBUF_AVAILABLE_IN_ALL GdkPixbufLoader * gdk_pixbuf_loader_new(void)
GDK_PIXBUF_AVAILABLE_IN_2_2 GdkPixbufFormat * gdk_pixbuf_loader_get_format(GdkPixbufLoader *loader)
GDK_PIXBUF_AVAILABLE_IN_ALL GType gdk_pixbuf_loader_get_type(void) G_GNUC_CONST
GDK_PIXBUF_AVAILABLE_IN_ALL GdkPixbufLoader * gdk_pixbuf_loader_new_with_type(const char *image_type, GError **error)
GDK_PIXBUF_AVAILABLE_IN_2_2 void gdk_pixbuf_loader_set_size(GdkPixbufLoader *loader, int width, int height)
GDK_PIXBUF_AVAILABLE_IN_ALL GdkPixbufAnimation * gdk_pixbuf_loader_get_animation(GdkPixbufLoader *loader)
GDK_PIXBUF_AVAILABLE_IN_ALL gboolean gdk_pixbuf_loader_close(GdkPixbufLoader *loader, GError **error)
GDK_PIXBUF_AVAILABLE_IN_2_30 gboolean gdk_pixbuf_loader_write_bytes(GdkPixbufLoader *loader, GBytes *buffer, GError **error)
#define GDK_PIXBUF_AVAILABLE_IN_2_2
#define GDK_PIXBUF_AVAILABLE_IN_ALL
#define GDK_PIXBUF_AVAILABLE_IN_2_4
#define GDK_PIXBUF_AVAILABLE_IN_2_30
unsigned long gsize
Definition glibconfig.h:83
#define G_END_DECLS
Definition gmacros.h:910
#define G_BEGIN_DECLS
Definition gmacros.h:909
#define G_GNUC_CONST
Definition gmacros.h:637
gsize GType
Definition gtype.h:427
gint gboolean
Definition gtypes.h:56
unsigned char guchar
Definition gtypes.h:58
void * gpointer
Definition gtypes.h:109
static void error(LoadState *S, const char *why)
void(* area_prepared)(GdkPixbufLoader *loader)
void(* size_prepared)(GdkPixbufLoader *loader, int width, int height)
void(* area_updated)(GdkPixbufLoader *loader, int x, int y, int width, int height)
void(* closed)(GdkPixbufLoader *loader)