|
Packit |
a4058c |
/* GdkPixbuf library - Io handling. This is an internal header for
|
|
Packit |
a4058c |
* GdkPixbuf. You should never use it unless you are doing development for
|
|
Packit |
a4058c |
* GdkPixbuf itself.
|
|
Packit |
a4058c |
*
|
|
Packit |
a4058c |
* Copyright (C) 1999 The Free Software Foundation
|
|
Packit |
a4058c |
*
|
|
Packit |
a4058c |
* Authors: Mark Crichton <crichton@gimp.org>
|
|
Packit |
a4058c |
* Miguel de Icaza <miguel@gnu.org>
|
|
Packit |
a4058c |
* Federico Mena-Quintero <federico@gimp.org>
|
|
Packit |
a4058c |
* Jonathan Blandford <jrb@redhat.com>
|
|
Packit |
a4058c |
* Michael Fulbright <drmike@redhat.com>
|
|
Packit |
a4058c |
*
|
|
Packit |
a4058c |
* This library is free software; you can redistribute it and/or
|
|
Packit |
a4058c |
* modify it under the terms of the GNU Lesser General Public
|
|
Packit |
a4058c |
* License as published by the Free Software Foundation; either
|
|
Packit |
a4058c |
* version 2 of the License, or (at your option) any later version.
|
|
Packit |
a4058c |
*
|
|
Packit |
a4058c |
* This library is distributed in the hope that it will be useful,
|
|
Packit |
a4058c |
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
Packit |
a4058c |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
Packit |
a4058c |
* Lesser General Public License for more details.
|
|
Packit |
a4058c |
*
|
|
Packit |
a4058c |
* You should have received a copy of the GNU Lesser General Public
|
|
Packit |
a4058c |
* License along with this library; if not, see <http://www.gnu.org/licenses/>.
|
|
Packit |
a4058c |
*/
|
|
Packit |
a4058c |
|
|
Packit |
a4058c |
#ifndef GDK_PIXBUF_IO_H
|
|
Packit |
a4058c |
#define GDK_PIXBUF_IO_H
|
|
Packit |
a4058c |
|
|
Packit |
a4058c |
#if defined(GDK_PIXBUF_DISABLE_SINGLE_INCLUDES) && !defined (GDK_PIXBUF_H_INSIDE) && !defined (GDK_PIXBUF_COMPILATION)
|
|
Packit |
a4058c |
#error "Only <gdk-pixbuf/gdk-pixbuf.h> can be included directly."
|
|
Packit |
a4058c |
#endif
|
|
Packit |
a4058c |
|
|
Packit |
a4058c |
#include <stdio.h>
|
|
Packit |
a4058c |
#include <glib.h>
|
|
Packit |
a4058c |
#include <gmodule.h>
|
|
Packit |
a4058c |
#include <gdk-pixbuf/gdk-pixbuf-core.h>
|
|
Packit |
a4058c |
#include <gdk-pixbuf/gdk-pixbuf-animation.h>
|
|
Packit |
a4058c |
|
|
Packit |
a4058c |
G_BEGIN_DECLS
|
|
Packit |
a4058c |
|
|
Packit |
a4058c |
typedef struct _GdkPixbufFormat GdkPixbufFormat;
|
|
Packit |
a4058c |
|
|
Packit |
a4058c |
GDK_PIXBUF_AVAILABLE_IN_ALL
|
|
Packit |
a4058c |
GType gdk_pixbuf_format_get_type (void) G_GNUC_CONST;
|
|
Packit |
a4058c |
|
|
Packit |
a4058c |
GDK_PIXBUF_AVAILABLE_IN_ALL
|
|
Packit |
a4058c |
GSList *gdk_pixbuf_get_formats (void);
|
|
Packit |
a4058c |
GDK_PIXBUF_AVAILABLE_IN_2_2
|
|
Packit |
a4058c |
gchar *gdk_pixbuf_format_get_name (GdkPixbufFormat *format);
|
|
Packit |
a4058c |
GDK_PIXBUF_AVAILABLE_IN_2_2
|
|
Packit |
a4058c |
gchar *gdk_pixbuf_format_get_description (GdkPixbufFormat *format);
|
|
Packit |
a4058c |
GDK_PIXBUF_AVAILABLE_IN_2_2
|
|
Packit |
a4058c |
gchar **gdk_pixbuf_format_get_mime_types (GdkPixbufFormat *format);
|
|
Packit |
a4058c |
GDK_PIXBUF_AVAILABLE_IN_2_2
|
|
Packit |
a4058c |
gchar **gdk_pixbuf_format_get_extensions (GdkPixbufFormat *format);
|
|
Packit |
a4058c |
GDK_PIXBUF_AVAILABLE_IN_2_36
|
|
Packit |
a4058c |
gboolean gdk_pixbuf_format_is_save_option_supported (GdkPixbufFormat *format,
|
|
Packit |
a4058c |
const gchar *option_key);
|
|
Packit |
a4058c |
GDK_PIXBUF_AVAILABLE_IN_2_2
|
|
Packit |
a4058c |
gboolean gdk_pixbuf_format_is_writable (GdkPixbufFormat *format);
|
|
Packit |
a4058c |
GDK_PIXBUF_AVAILABLE_IN_2_6
|
|
Packit |
a4058c |
gboolean gdk_pixbuf_format_is_scalable (GdkPixbufFormat *format);
|
|
Packit |
a4058c |
GDK_PIXBUF_AVAILABLE_IN_2_6
|
|
Packit |
a4058c |
gboolean gdk_pixbuf_format_is_disabled (GdkPixbufFormat *format);
|
|
Packit |
a4058c |
GDK_PIXBUF_AVAILABLE_IN_2_6
|
|
Packit |
a4058c |
void gdk_pixbuf_format_set_disabled (GdkPixbufFormat *format,
|
|
Packit |
a4058c |
gboolean disabled);
|
|
Packit |
a4058c |
GDK_PIXBUF_AVAILABLE_IN_2_6
|
|
Packit |
a4058c |
gchar *gdk_pixbuf_format_get_license (GdkPixbufFormat *format);
|
|
Packit |
a4058c |
|
|
Packit |
a4058c |
GDK_PIXBUF_AVAILABLE_IN_2_4
|
|
Packit |
a4058c |
GdkPixbufFormat *gdk_pixbuf_get_file_info (const gchar *filename,
|
|
Packit |
a4058c |
gint *width,
|
|
Packit |
a4058c |
gint *height);
|
|
Packit |
a4058c |
GDK_PIXBUF_AVAILABLE_IN_2_32
|
|
Packit |
a4058c |
void gdk_pixbuf_get_file_info_async (const gchar *filename,
|
|
Packit |
a4058c |
GCancellable *cancellable,
|
|
Packit |
a4058c |
GAsyncReadyCallback callback,
|
|
Packit |
a4058c |
gpointer user_data);
|
|
Packit |
a4058c |
GDK_PIXBUF_AVAILABLE_IN_2_32
|
|
Packit |
a4058c |
GdkPixbufFormat *gdk_pixbuf_get_file_info_finish (GAsyncResult *async_result,
|
|
Packit |
a4058c |
gint *width,
|
|
Packit |
a4058c |
gint *height,
|
|
Packit |
a4058c |
GError **error);
|
|
Packit |
a4058c |
|
|
Packit |
a4058c |
GDK_PIXBUF_AVAILABLE_IN_ALL
|
|
Packit |
a4058c |
GdkPixbufFormat *gdk_pixbuf_format_copy (const GdkPixbufFormat *format);
|
|
Packit |
a4058c |
GDK_PIXBUF_AVAILABLE_IN_ALL
|
|
Packit |
a4058c |
void gdk_pixbuf_format_free (GdkPixbufFormat *format);
|
|
Packit |
a4058c |
|
|
Packit |
a4058c |
#ifdef GDK_PIXBUF_ENABLE_BACKEND
|
|
Packit |
a4058c |
|
|
Packit |
a4058c |
|
|
Packit |
a4058c |
|
|
Packit |
a4058c |
/**
|
|
Packit |
a4058c |
* GdkPixbufModuleSizeFunc:
|
|
Packit |
a4058c |
* @width: pointer to a location containing the current image width
|
|
Packit |
a4058c |
* @height: pointer to a location containing the current image height
|
|
Packit |
a4058c |
* @user_data: the loader.
|
|
Packit |
a4058c |
*
|
|
Packit |
a4058c |
* Defines the type of the function that gets called once the size
|
|
Packit |
a4058c |
* of the loaded image is known.
|
|
Packit |
a4058c |
*
|
|
Packit |
a4058c |
* The function is expected to set @width and @height to the desired
|
|
Packit |
a4058c |
* size to which the image should be scaled. If a module has no efficient
|
|
Packit |
a4058c |
* way to achieve the desired scaling during the loading of the image, it may
|
|
Packit |
a4058c |
* either ignore the size request, or only approximate it - gdk-pixbuf will
|
|
Packit |
a4058c |
* then perform the required scaling on the completely loaded image.
|
|
Packit |
a4058c |
*
|
|
Packit |
a4058c |
* If the function sets @width or @height to zero, the module should interpret
|
|
Packit |
a4058c |
* this as a hint that it will be closed soon and shouldn't allocate further
|
|
Packit |
a4058c |
* resources. This convention is used to implement gdk_pixbuf_get_file_info()
|
|
Packit |
a4058c |
* efficiently.
|
|
Packit |
a4058c |
*
|
|
Packit |
a4058c |
* Since: 2.2
|
|
Packit |
a4058c |
*/
|
|
Packit |
a4058c |
typedef void (* GdkPixbufModuleSizeFunc) (gint *width,
|
|
Packit |
a4058c |
gint *height,
|
|
Packit |
a4058c |
gpointer user_data);
|
|
Packit |
a4058c |
|
|
Packit |
a4058c |
/**
|
|
Packit |
a4058c |
* GdkPixbufModulePreparedFunc:
|
|
Packit |
a4058c |
* @pixbuf: the #GdkPixbuf that is currently being loaded.
|
|
Packit |
a4058c |
* @anim: if an animation is being loaded, the #GdkPixbufAnimation, else %NULL.
|
|
Packit |
a4058c |
* @user_data: the loader.
|
|
Packit |
a4058c |
*
|
|
Packit |
a4058c |
* Defines the type of the function that gets called once the initial
|
|
Packit |
a4058c |
* setup of @pixbuf is done.
|
|
Packit |
a4058c |
*
|
|
Packit |
a4058c |
* #GdkPixbufLoader uses a function of this type to emit the
|
|
Packit |
a4058c |
* "<link linkend="GdkPixbufLoader-area-prepared">area_prepared</link>"
|
|
Packit |
a4058c |
* signal.
|
|
Packit |
a4058c |
*
|
|
Packit |
a4058c |
* Since: 2.2
|
|
Packit |
a4058c |
*/
|
|
Packit |
a4058c |
typedef void (* GdkPixbufModulePreparedFunc) (GdkPixbuf *pixbuf,
|
|
Packit |
a4058c |
GdkPixbufAnimation *anim,
|
|
Packit |
a4058c |
gpointer user_data);
|
|
Packit |
a4058c |
|
|
Packit |
a4058c |
/**
|
|
Packit |
a4058c |
* GdkPixbufModuleUpdatedFunc:
|
|
Packit |
a4058c |
* @pixbuf: the #GdkPixbuf that is currently being loaded.
|
|
Packit |
a4058c |
* @x: the X origin of the updated area.
|
|
Packit |
a4058c |
* @y: the Y origin of the updated area.
|
|
Packit |
a4058c |
* @width: the width of the updated area.
|
|
Packit |
a4058c |
* @height: the height of the updated area.
|
|
Packit |
a4058c |
* @user_data: the loader.
|
|
Packit |
a4058c |
*
|
|
Packit |
a4058c |
* Defines the type of the function that gets called every time a region
|
|
Packit |
a4058c |
* of @pixbuf is updated.
|
|
Packit |
a4058c |
*
|
|
Packit |
a4058c |
* #GdkPixbufLoader uses a function of this type to emit the
|
|
Packit |
a4058c |
* "<link linkend="GdkPixbufLoader-area-updated">area_updated</link>"
|
|
Packit |
a4058c |
* signal.
|
|
Packit |
a4058c |
*
|
|
Packit |
a4058c |
* Since: 2.2
|
|
Packit |
a4058c |
*/
|
|
Packit |
a4058c |
typedef void (* GdkPixbufModuleUpdatedFunc) (GdkPixbuf *pixbuf,
|
|
Packit |
a4058c |
int x,
|
|
Packit |
a4058c |
int y,
|
|
Packit |
a4058c |
int width,
|
|
Packit |
a4058c |
int height,
|
|
Packit |
a4058c |
gpointer user_data);
|
|
Packit |
a4058c |
|
|
Packit |
a4058c |
/**
|
|
Packit |
a4058c |
* GdkPixbufModulePattern:
|
|
Packit |
a4058c |
* @prefix: the prefix for this pattern
|
|
Packit |
a4058c |
* @mask: mask containing bytes which modify how the prefix is matched against
|
|
Packit |
a4058c |
* test data
|
|
Packit |
a4058c |
* @relevance: relevance of this pattern
|
|
Packit |
a4058c |
*
|
|
Packit |
a4058c |
* The signature of a module is a set of prefixes. Prefixes are encoded as
|
|
Packit |
a4058c |
* pairs of ordinary strings, where the second string, called the mask, if
|
|
Packit |
a4058c |
* not %NULL, must be of the same length as the first one and may contain
|
|
Packit |
a4058c |
* ' ', '!', 'x', 'z', and 'n' to indicate bytes that must be matched,
|
|
Packit |
a4058c |
* not matched, "don't-care"-bytes, zeros and non-zeros.
|
|
Packit |
a4058c |
* Each prefix has an associated integer that describes the relevance of
|
|
Packit |
a4058c |
* the prefix, with 0 meaning a mismatch and 100 a "perfect match".
|
|
Packit |
a4058c |
*
|
|
Packit |
a4058c |
* Starting with gdk-pixbuf 2.8, the first byte of the mask may be '*',
|
|
Packit |
a4058c |
* indicating an unanchored pattern that matches not only at the beginning,
|
|
Packit |
a4058c |
* but also in the middle. Versions prior to 2.8 will interpret the '*'
|
|
Packit |
a4058c |
* like an 'x'.
|
|
Packit |
a4058c |
*
|
|
Packit |
a4058c |
* The signature of a module is stored as an array of
|
|
Packit |
a4058c |
* #GdkPixbufModulePatterns. The array is terminated by a pattern
|
|
Packit |
a4058c |
* where the @prefix is %NULL.
|
|
Packit |
a4058c |
*
|
|
Packit |
a4058c |
*
|
|
Packit |
a4058c |
* <informalexample><programlisting>
|
|
Packit |
a4058c |
* GdkPixbufModulePattern *signature[] = {
|
|
Packit |
a4058c |
* { "abcdx", " !x z", 100 },
|
|
Packit |
a4058c |
* { "bla", NULL, 90 },
|
|
Packit |
a4058c |
* { NULL, NULL, 0 }
|
|
Packit |
a4058c |
* };
|
|
Packit |
a4058c |
* </programlisting>
|
|
Packit |
a4058c |
* The example matches e.g. "auud\0" with relevance 100, and "blau" with
|
|
Packit |
a4058c |
* relevance 90.</informalexample>
|
|
Packit |
a4058c |
*
|
|
Packit |
a4058c |
* Since: 2.2
|
|
Packit |
a4058c |
*/
|
|
Packit |
a4058c |
typedef struct _GdkPixbufModulePattern GdkPixbufModulePattern;
|
|
Packit |
a4058c |
struct _GdkPixbufModulePattern {
|
|
Packit |
a4058c |
char *prefix;
|
|
Packit |
a4058c |
char *mask;
|
|
Packit |
a4058c |
int relevance;
|
|
Packit |
a4058c |
};
|
|
Packit |
a4058c |
|
|
Packit |
a4058c |
/**
|
|
Packit |
a4058c |
* GdkPixbufModule:
|
|
Packit |
a4058c |
* @module_name: the name of the module, usually the same as the
|
|
Packit |
a4058c |
* usual file extension for images of this type, eg. "xpm", "jpeg" or "png".
|
|
Packit |
a4058c |
* @module_path: the path from which the module is loaded.
|
|
Packit |
a4058c |
* @module: the loaded #GModule.
|
|
Packit |
a4058c |
* @info: a #GdkPixbufFormat holding information about the module.
|
|
Packit |
a4058c |
* @load: loads an image from a file.
|
|
Packit |
a4058c |
* @load_xpm_data: loads an image from data in memory.
|
|
Packit |
a4058c |
* @begin_load: begins an incremental load.
|
|
Packit |
a4058c |
* @stop_load: stops an incremental load.
|
|
Packit |
a4058c |
* @load_increment: continues an incremental load.
|
|
Packit |
a4058c |
* @load_animation: loads an animation from a file.
|
|
Packit |
a4058c |
* @save: saves a #GdkPixbuf to a file.
|
|
Packit |
a4058c |
* @save_to_callback: saves a #GdkPixbuf by calling the given #GdkPixbufSaveFunc.
|
|
Packit |
a4058c |
* @is_save_option_supported: returns whether a save option key is supported by the module
|
|
Packit |
a4058c |
*
|
|
Packit |
a4058c |
* A #GdkPixbufModule contains the necessary functions to load and save
|
|
Packit |
a4058c |
* images in a certain file format.
|
|
Packit |
a4058c |
*
|
|
Packit |
a4058c |
* A #GdkPixbufModule can be loaded dynamically from a #GModule.
|
|
Packit |
a4058c |
* Each loadable module must contain a #GdkPixbufModuleFillVtableFunc function
|
|
Packit |
a4058c |
* named <function>fill_vtable</function>, which will get called when the module
|
|
Packit |
a4058c |
* is loaded and must set the function pointers of the #GdkPixbufModule.
|
|
Packit |
a4058c |
*/
|
|
Packit |
a4058c |
typedef struct _GdkPixbufModule GdkPixbufModule;
|
|
Packit |
a4058c |
struct _GdkPixbufModule {
|
|
Packit |
a4058c |
char *module_name;
|
|
Packit |
a4058c |
char *module_path;
|
|
Packit |
a4058c |
GModule *module;
|
|
Packit |
a4058c |
GdkPixbufFormat *info;
|
|
Packit |
a4058c |
|
|
Packit |
a4058c |
GdkPixbuf *(* load) (FILE *f,
|
|
Packit |
a4058c |
GError **error);
|
|
Packit |
a4058c |
GdkPixbuf *(* load_xpm_data) (const char **data);
|
|
Packit |
a4058c |
|
|
Packit |
a4058c |
/* Incremental loading */
|
|
Packit |
a4058c |
|
|
Packit |
a4058c |
gpointer (* begin_load) (GdkPixbufModuleSizeFunc size_func,
|
|
Packit |
a4058c |
GdkPixbufModulePreparedFunc prepare_func,
|
|
Packit |
a4058c |
GdkPixbufModuleUpdatedFunc update_func,
|
|
Packit |
a4058c |
gpointer user_data,
|
|
Packit |
a4058c |
GError **error);
|
|
Packit |
a4058c |
gboolean (* stop_load) (gpointer context,
|
|
Packit |
a4058c |
GError **error);
|
|
Packit |
a4058c |
gboolean (* load_increment) (gpointer context,
|
|
Packit |
a4058c |
const guchar *buf,
|
|
Packit |
a4058c |
guint size,
|
|
Packit |
a4058c |
GError **error);
|
|
Packit |
a4058c |
|
|
Packit |
a4058c |
/* Animation loading */
|
|
Packit |
a4058c |
GdkPixbufAnimation *(* load_animation) (FILE *f,
|
|
Packit |
a4058c |
GError **error);
|
|
Packit |
a4058c |
|
|
Packit |
a4058c |
/* Saving */
|
|
Packit |
a4058c |
gboolean (* save) (FILE *f,
|
|
Packit |
a4058c |
GdkPixbuf *pixbuf,
|
|
Packit |
a4058c |
gchar **param_keys,
|
|
Packit |
a4058c |
gchar **param_values,
|
|
Packit |
a4058c |
GError **error);
|
|
Packit |
a4058c |
|
|
Packit |
a4058c |
gboolean (*save_to_callback) (GdkPixbufSaveFunc save_func,
|
|
Packit |
a4058c |
gpointer user_data,
|
|
Packit |
a4058c |
GdkPixbuf *pixbuf,
|
|
Packit |
a4058c |
gchar **option_keys,
|
|
Packit |
a4058c |
gchar **option_values,
|
|
Packit |
a4058c |
GError **error);
|
|
Packit |
a4058c |
|
|
Packit |
a4058c |
gboolean (* is_save_option_supported) (const gchar *option_key);
|
|
Packit |
a4058c |
|
|
Packit |
a4058c |
/*< private >*/
|
|
Packit |
a4058c |
void (*_reserved1) (void);
|
|
Packit |
a4058c |
void (*_reserved2) (void);
|
|
Packit |
a4058c |
void (*_reserved3) (void);
|
|
Packit |
a4058c |
void (*_reserved4) (void);
|
|
Packit |
a4058c |
};
|
|
Packit |
a4058c |
|
|
Packit |
a4058c |
/**
|
|
Packit |
a4058c |
* GdkPixbufModuleFillVtableFunc:
|
|
Packit |
a4058c |
* @module: a #GdkPixbufModule.
|
|
Packit |
a4058c |
*
|
|
Packit |
a4058c |
* Defines the type of the function used to set the vtable of a
|
|
Packit |
a4058c |
* #GdkPixbufModule when it is loaded.
|
|
Packit |
a4058c |
*
|
|
Packit |
a4058c |
* Since: 2.2
|
|
Packit |
a4058c |
*/
|
|
Packit |
a4058c |
|
|
Packit |
a4058c |
typedef void (* GdkPixbufModuleFillVtableFunc) (GdkPixbufModule *module);
|
|
Packit |
a4058c |
|
|
Packit |
a4058c |
/**
|
|
Packit |
a4058c |
* GdkPixbufModuleFillInfoFunc:
|
|
Packit |
a4058c |
* @info: a #GdkPixbufFormat.
|
|
Packit |
a4058c |
*
|
|
Packit |
a4058c |
* Defines the type of the function used to fill a
|
|
Packit |
a4058c |
* #GdkPixbufFormat structure with information about a module.
|
|
Packit |
a4058c |
*
|
|
Packit |
a4058c |
* Since: 2.2
|
|
Packit |
a4058c |
*/
|
|
Packit |
a4058c |
typedef void (* GdkPixbufModuleFillInfoFunc) (GdkPixbufFormat *info);
|
|
Packit |
a4058c |
|
|
Packit |
a4058c |
/**
|
|
Packit |
a4058c |
* GdkPixbufFormatFlags:
|
|
Packit |
a4058c |
* @GDK_PIXBUF_FORMAT_WRITABLE: the module can write out images in the format.
|
|
Packit |
a4058c |
* @GDK_PIXBUF_FORMAT_SCALABLE: the image format is scalable
|
|
Packit |
a4058c |
* @GDK_PIXBUF_FORMAT_THREADSAFE: the module is threadsafe. gdk-pixbuf
|
|
Packit |
a4058c |
* ignores modules that are not marked as threadsafe. (Since 2.28).
|
|
Packit |
a4058c |
*
|
|
Packit |
a4058c |
* Flags which allow a module to specify further details about the supported
|
|
Packit |
a4058c |
* operations.
|
|
Packit |
a4058c |
*
|
|
Packit |
a4058c |
* Since: 2.2
|
|
Packit |
a4058c |
*/
|
|
Packit |
a4058c |
typedef enum /*< skip >*/
|
|
Packit |
a4058c |
{
|
|
Packit |
a4058c |
GDK_PIXBUF_FORMAT_WRITABLE = 1 << 0,
|
|
Packit |
a4058c |
GDK_PIXBUF_FORMAT_SCALABLE = 1 << 1,
|
|
Packit |
a4058c |
GDK_PIXBUF_FORMAT_THREADSAFE = 1 << 2
|
|
Packit |
a4058c |
} GdkPixbufFormatFlags;
|
|
Packit |
a4058c |
|
|
Packit |
a4058c |
/**
|
|
Packit |
a4058c |
* GdkPixbufFormat:
|
|
Packit |
a4058c |
* @name: the name of the image format.
|
|
Packit |
a4058c |
* @signature: the signature of the module.
|
|
Packit |
a4058c |
* @domain: the message domain for the @description.
|
|
Packit |
a4058c |
* @description: a description of the image format.
|
|
Packit |
a4058c |
* @mime_types: a %NULL-terminated array of MIME types for the image format.
|
|
Packit |
a4058c |
* @extensions: a %NULL-terminated array of typical filename extensions for the
|
|
Packit |
a4058c |
* image format.
|
|
Packit |
a4058c |
* @flags: a combination of #GdkPixbufFormatFlags.
|
|
Packit |
a4058c |
* @disabled: a boolean determining whether the loader is disabled.
|
|
Packit |
a4058c |
* @license: a string containing license information, typically set to
|
|
Packit |
a4058c |
* shorthands like "GPL", "LGPL", etc.
|
|
Packit |
a4058c |
*
|
|
Packit |
a4058c |
* A #GdkPixbufFormat contains information about the image format accepted by a
|
|
Packit |
a4058c |
* module. Only modules should access the fields directly, applications should
|
|
Packit |
a4058c |
* use the <function>gdk_pixbuf_format_*</function> functions.
|
|
Packit |
a4058c |
*
|
|
Packit |
a4058c |
* Since: 2.2
|
|
Packit |
a4058c |
*/
|
|
Packit |
a4058c |
struct _GdkPixbufFormat {
|
|
Packit |
a4058c |
gchar *name;
|
|
Packit |
a4058c |
GdkPixbufModulePattern *signature;
|
|
Packit |
a4058c |
gchar *domain;
|
|
Packit |
a4058c |
gchar *description;
|
|
Packit |
a4058c |
gchar **mime_types;
|
|
Packit |
a4058c |
gchar **extensions;
|
|
Packit |
a4058c |
guint32 flags;
|
|
Packit |
a4058c |
gboolean disabled;
|
|
Packit |
a4058c |
gchar *license;
|
|
Packit |
a4058c |
};
|
|
Packit |
a4058c |
|
|
Packit |
a4058c |
#endif /* GDK_PIXBUF_ENABLE_BACKEND */
|
|
Packit |
a4058c |
|
|
Packit |
a4058c |
G_END_DECLS
|
|
Packit |
a4058c |
|
|
Packit |
a4058c |
#endif /* GDK_PIXBUF_IO_H */
|