Use util_clip_triangle() in pan_item_tri_new()
[geeqie.git] / src / color-man.h
index ec369a0..55ff086 100644 (file)
 #ifndef COLOR_MAN_H
 #define COLOR_MAN_H
 
+#include <gdk-pixbuf/gdk-pixbuf.h>
+#include <glib.h>
+
+struct FileData;
+struct ImageWindow;
+
 enum ColorManProfileType {
        COLOR_PROFILE_NONE = -1,
        COLOR_PROFILE_MEM = -2,
@@ -36,9 +42,6 @@ enum ColorManReturnType {
        COLOR_RETURN_IMAGE_CHANGED
 };
 
-struct ColorMan;
-using ColorManDoneFunc = void (*)(ColorMan *, ColorManReturnType, gpointer);
-
 
 struct ColorMan {
        ImageWindow *imd;
@@ -50,7 +53,8 @@ struct ColorMan {
 
        guint idle_id; /* event source id */
 
-       ColorManDoneFunc func_done;
+       using DoneFunc = void (*)(ColorMan *, ColorManReturnType, gpointer);
+       DoneFunc func_done;
        gpointer func_done_data;
 };
 
@@ -65,12 +69,10 @@ ColorMan *color_man_new_embedded(ImageWindow *imd, GdkPixbuf *pixbuf,
                                 guchar *screen_data, guint screen_data_len);
 void color_man_free(ColorMan *cm);
 
-void color_man_update(void);
+void color_man_update();
 
 void color_man_correct_region(ColorMan *cm, GdkPixbuf *pixbuf, gint x, gint y, gint w, gint h);
 
-void color_man_start_bg(ColorMan *cm, ColorManDoneFunc don_func, gpointer done_data);
-
 gboolean color_man_get_status(ColorMan *cm, gchar **image_profile, gchar **screen_profile);
 
 guchar *heif_color_profile(FileData *fd, guint *profile_len);