/*
- * GQview
- * (C) 2006 John Ellis
+ * Copyright (C) 2006 John Ellis
+ * Copyright (C) 2008 - 2016 The Geeqie Team
*
* 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!
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program 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 General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License along
+ * with this program; if not, write to the Free Software Foundation, Inc.,
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
*/
#ifndef IMAGE_OVERLAY_H
#define IMAGE_OVERLAY_H
-typedef enum {
+#include <glib.h>
+
+struct Histogram;
+struct ImageWindow;
+
+enum ImageOSDFlag {
IMAGE_OSD_NONE = 0,
IMAGE_OSD_ROTATE_USER,
IMAGE_OSD_ROTATE_AUTO,
IMAGE_OSD_LAST,
IMAGE_OSD_ICON,
IMAGE_OSD_COUNT
-} ImageOSDFlag;
+};
+
+enum OsdShowFlags {
+ OSD_SHOW_NOTHING = 0,
+ OSD_SHOW_INFO = 1 << 0,
+ OSD_SHOW_STATUS = 1 << 1,
+ OSD_SHOW_HISTOGRAM = 1 << 2
+};
+void set_image_overlay_template_string(gchar **template_string, const gchar *value);
+void set_default_image_overlay_template_string(gchar **template_string);
+void set_image_overlay_font_string(gchar **font_string, const gchar *value);
-void image_osd_set(ImageWindow *imd, gint info, gint status);
-gint image_osd_get(ImageWindow *imd, gint *info, gint *status);
+void image_osd_set(ImageWindow *imd, OsdShowFlags show);
+OsdShowFlags image_osd_get(ImageWindow *imd);
+
+Histogram *image_osd_get_histogram(ImageWindow *imd);
+
+void image_osd_copy_status(ImageWindow *src, ImageWindow *dest);
void image_osd_update(ImageWindow *imd);
void image_osd_icon(ImageWindow *imd, ImageOSDFlag flag, gint duration);
+void image_osd_histogram_toggle_channel(ImageWindow *imd);
+void image_osd_histogram_toggle_mode(ImageWindow *imd);
+void image_osd_histogram_set_channel(ImageWindow *imd, gint chan);
+void image_osd_histogram_set_mode(ImageWindow *imd, gint mode);
+gint image_osd_histogram_get_channel(ImageWindow *imd);
+gint image_osd_histogram_get_mode(ImageWindow *imd);
-#endif
+void image_osd_toggle(ImageWindow *imd);
+#endif
+/* vim: set shiftwidth=8 softtabstop=0 cindent cinoptions={1s: */