mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-11-06 00:30:08 +00:00
b4e4a0ed9d
2001-05-04 Havoc Pennington <hp@redhat.com> * configure.in: fix some shell typos * gtk/gtkcolorsel.c (gtk_color_selection_destroy): warning fix * gtk/gtkimage.c: handle animations * gtk/gtkcheckbutton.c (gtk_check_button_size_request): request border_width * 2, not just border_width * gtk/gtkscale.c: add "format_value" signal to allow people to override the way values are drawn. (gtk_scale_get_value_size): fix width/height mistake, and compute size from actual displayed text, not from made-up text. * gtk/gtktexttag.c (gtk_text_tag_class_init): fix return type in signal registration * tests/testtext.c: Add "Remove all tags" menu item for testing * gtk/gtktextbuffer.c (gtk_text_buffer_remove_all_tags): implement * demos/gtk-demo/main.c (main): add hack so we can find modules without installing gtk * demos/gtk-demo/textview.c (insert_text): demo font scaling * gtk/gtkcellrenderertext.c: Add "scale" property (font scaling factor) (gtk_cell_renderer_text_set_property): remove some bogus g_object_notify * gtk/gtktexttag.c: add "scale" property which is a font scaling factor * gtk/gtktextlayout.c (add_text_attrs): add font scale attribute to layout * gtk/gtktextiter.c (gtk_text_iter_is_start): rename from gtk_text_iter_is_first 2001-05-04 Havoc Pennington <hp@redhat.com> * pixops/pixops.c (pixops_process): merge fix from stable: Patch from hoshem@mel.comcen.com.au to fix nonzero X offsets. Fixes bug #50371. * gdk-pixbuf/pixops/pixops.c (pixops_composite_nearest): merge from stable: Patch from OKADA Mitsuru <m-okada@fjb.co.jp> to fix confusion of using "src" instead of "p". (pixops_composite_color_nearest): Use a more accurate (and correct, to begin with) compositing method. This cures checks showing through on images with no alpha. * gdk-pixbuf.c (gdk_pixbuf_fill): fix bug that left some trailing bytes unfilled. * gdk-pixbuf-io.h: fix UpdatedNotifyFunc to use signed ints * gdk-pixbuf-loader.h (struct _GdkPixbufLoaderClass): Change area_updated signal to use signed ints. Removed animation-related signals. * io-gif.c, io-gif-animation.h, io-gif-animation.c: Massive rewrite action * gdk-pixbuf-animation.c: Add GdkPixbufAnimationIter to abstract all the pesky details. Remove old frame-based API. Make GdkPixbufAnimation an abstract base class, derived by the loaders.
102 lines
3.8 KiB
C
102 lines
3.8 KiB
C
/* GdkPixbuf library - Io handling. This is an internal header for gdk-pixbuf.
|
||
* You should never use it unless you are doing developement for gdkpixbuf itself.
|
||
*
|
||
* Copyright (C) 1999 The Free Software Foundation
|
||
*
|
||
* Authors: Mark Crichton <crichton@gimp.org>
|
||
* Miguel de Icaza <miguel@gnu.org>
|
||
* Federico Mena-Quintero <federico@gimp.org>
|
||
* Jonathan Blandford <jrb@redhat.com>
|
||
* Michael Fulbright <drmike@redhat.com>
|
||
*
|
||
* This library is free software; you can redistribute it and/or
|
||
* modify it under the terms of the GNU Lesser General Public
|
||
* License as published by the Free Software Foundation; either
|
||
* version 2 of the License, or (at your option) any later version.
|
||
*
|
||
* This library is distributed in the hope that it will be useful,
|
||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||
* Lesser General Public License for more details.
|
||
*
|
||
* You should have received a copy of the GNU Lesser General Public
|
||
* License along with this library; if not, write to the
|
||
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
||
* Boston, MA 02111-1307, USA.
|
||
*/
|
||
|
||
#ifndef GDK_PIXBUF_IO_H
|
||
#define GDK_PIXBUF_IO_H
|
||
|
||
#include <gmodule.h>
|
||
#include <stdio.h>
|
||
#include "gdk-pixbuf.h"
|
||
#include "gdk-pixbuf-i18n.h"
|
||
|
||
#ifdef __cplusplus
|
||
extern "C" {
|
||
#endif
|
||
|
||
|
||
|
||
typedef void (* ModulePreparedNotifyFunc) (GdkPixbuf *pixbuf,
|
||
GdkPixbufAnimation *anim,
|
||
gpointer user_data);
|
||
typedef void (* ModuleUpdatedNotifyFunc) (GdkPixbuf *pixbuf,
|
||
int x,
|
||
int y,
|
||
int width,
|
||
int height,
|
||
gpointer user_data);
|
||
|
||
typedef struct _GdkPixbufModule GdkPixbufModule;
|
||
struct _GdkPixbufModule {
|
||
char *module_name;
|
||
gboolean (* format_check) (guchar *buffer, int size);
|
||
GModule *module;
|
||
GdkPixbuf *(* load) (FILE *f,
|
||
GError **error);
|
||
GdkPixbuf *(* load_xpm_data) (const char **data);
|
||
|
||
/* Incremental loading */
|
||
|
||
gpointer (* begin_load) (ModulePreparedNotifyFunc prepare_func,
|
||
ModuleUpdatedNotifyFunc update_func,
|
||
gpointer user_data,
|
||
GError **error);
|
||
gboolean (* stop_load) (gpointer context,
|
||
GError **error);
|
||
gboolean (* load_increment) (gpointer context,
|
||
const guchar *buf,
|
||
guint size,
|
||
GError **error);
|
||
|
||
/* Animation loading */
|
||
GdkPixbufAnimation *(* load_animation) (FILE *f,
|
||
GError **error);
|
||
|
||
gboolean (* save) (FILE *f,
|
||
GdkPixbuf *pixbuf,
|
||
gchar **param_keys,
|
||
gchar **param_values,
|
||
GError **error);
|
||
};
|
||
|
||
typedef void (* ModuleFillVtableFunc) (GdkPixbufModule *module);
|
||
|
||
GdkPixbufModule *_gdk_pixbuf_get_module (guchar *buffer, guint size,
|
||
const gchar *filename,
|
||
GError **error);
|
||
GdkPixbufModule *_gdk_pixbuf_get_named_module (const char *name,
|
||
GError **error);
|
||
gboolean _gdk_pixbuf_load_module (GdkPixbufModule *image_module,
|
||
GError **error);
|
||
|
||
|
||
|
||
#ifdef __cplusplus
|
||
}
|
||
#endif
|
||
|
||
#endif
|