2 * Copyright (C) 2008 - 2016 The Geeqie Team
4 * Author: Vladimir Nadvornik
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License along
17 * with this program; if not, write to the Free Software Foundation, Inc.,
18 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
24 /* Note: The order is important */
31 #define HCHAN_DEFAULT HCHAN_RGB
34 Histogram *histogram_new(void);
35 void histogram_free(Histogram *histogram);
36 gint histogram_set_channel(Histogram *histogram, gint chan);
37 gint histogram_get_channel(Histogram *histogram);
38 gint histogram_set_mode(Histogram *histogram, gint mode);
39 gint histogram_get_mode(Histogram *histogram);
40 gint histogram_toggle_channel(Histogram *histogram);
41 gint histogram_toggle_mode(Histogram *histogram);
42 const gchar *histogram_label(Histogram *histogram);
44 void histmap_free(HistMap *histmap);
46 const HistMap *histmap_get(FileData *fd);
47 gboolean histmap_start_idle(FileData *fd);
49 gboolean histogram_draw(Histogram *histogram, const HistMap *histmap, GdkPixbuf *pixbuf, gint x, gint y, gint width, gint height);
51 void histogram_notify_cb(FileData *fd, NotifyType type, gpointer data);
53 #endif /* HISTOGRAM_H */
54 /* vim: set shiftwidth=8 softtabstop=0 cindent cinoptions={1s: */