Add missing #ifdef/#endif.
[geeqie.git] / src / histogram.h
1 /*
2  * Geeqie
3  *
4  * Author: Vladimir Nadvornik
5  * based on a patch by Uwe Ohse
6  *
7  * This software is released under the GNU General Public License (GNU GPL).
8  * Please read the included file COPYING for more information.
9  * This software comes with no warranty of any kind, use at your own risk!
10  */
11
12 #ifndef HISTOGRAM_H
13 #define HISTOGRAM_H
14
15 /* Note: The order is important */
16 #define HCHAN_R 0
17 #define HCHAN_G 1
18 #define HCHAN_B 2
19 #define HCHAN_RGB 3
20 #define HCHAN_VAL 4
21 #define HCHAN_MAX 5
22 #define HCHAN_COUNT (HCHAN_MAX+1)
23
24
25 Histogram *histogram_new();
26 void histogram_free(Histogram *histogram);
27 gint histogram_set_channel(Histogram *histogram, gint chan);
28 gint histogram_get_channel(Histogram *histogram);
29 gint histogram_set_mode(Histogram *histogram, gint mode);
30 gint histogram_get_mode(Histogram *histogram);
31 const gchar *histogram_label(Histogram *histogram);
32 gulong histogram_read(Histogram *histogram, GdkPixbuf *imgpixbuf);
33 gint histogram_draw(Histogram *histogram, GdkPixbuf *pixbuf, gint x, gint y, gint width, gint height);
34
35 #endif /* HISTOGRAM_H */