Mercurial > geeqie
view src/color-man.h @ 117:0c2e1f0a001b
Wed Nov 29 14:28:30 2006 John Ellis <johne@verizon.net>
* image-overlay.[ch]: Rewrite most of the information overlay code to
be more flexible and easily extended.
* image.[ch], typedefs.h: Remove image_new_func, and replace it with
image_state_func callback which is much more informative.
* img-view.c, layout.c, layout_image.c: Updates for new image overlay
function names.
author | gqview |
---|---|
date | Wed, 29 Nov 2006 19:38:25 +0000 |
parents | 53b2bfdcff69 |
children | f6e307c7bad6 |
line wrap: on
line source
/* * GQview * (C) 2006 John Ellis * * Author: John Ellis * * This software is released under the GNU General Public License (GNU GPL). * Please read the included file COPYING for more information. * This software comes with no warranty of any kind, use at your own risk! */ #ifndef COLOR_MAN_H #define COLOR_MAN_H typedef enum { COLOR_PROFILE_NONE = 0, COLOR_PROFILE_FILE, COLOR_PROFILE_SRGB, COLOR_PROFILE_MEM } ColorManProfileType; typedef enum { COLOR_RETURN_SUCCESS = 0, COLOR_RETURN_ERROR, COLOR_RETURN_IMAGE_CHANGED } ColorManReturnType; typedef struct _ColorMan ColorMan; typedef void (* ColorManDoneFunc)(ColorMan *cm, ColorManReturnType success, gpointer data); struct _ColorMan { ImageWindow *imd; GdkPixbuf *pixbuf; gint incremental_sync; gint row; gpointer profile; gint idle_id; ColorManDoneFunc func_done; gpointer func_done_data; }; ColorMan *color_man_new(ImageWindow *imd, GdkPixbuf *pixbuf, ColorManProfileType input_type, const gchar *input_file, ColorManProfileType screen_type, const gchar *screen_file, ColorManDoneFunc done_func, gpointer done_data); ColorMan *color_man_new_embedded(ImageWindow *imd, GdkPixbuf *pixbuf, unsigned char *input_data, guint input_data_len, ColorManProfileType screen_type, const gchar *screen_file, ColorManDoneFunc done_func, gpointer done_data); void color_man_free(ColorMan *cm); void color_man_update(void); #endif