]> Pileus Git - ~andy/gtk/blob - gtk/gtkcolorutils.h
2bb13523c6bd54a93738f60ee598a72d811cdbd2
[~andy/gtk] / gtk / gtkcolorutils.h
1 /* Color utilties
2  *
3  * Copyright (C) 1999 The Free Software Foundation
4  *
5  * Authors: Simon Budig <Simon.Budig@unix-ag.org> (original code)
6  *          Federico Mena-Quintero <federico@gimp.org> (cleanup for GTK+)
7  *          Jonathan Blandford <jrb@redhat.com> (cleanup for GTK+)
8  *
9  * This library is free software; you can redistribute it and/or
10  * modify it under the terms of the GNU Lesser General Public
11  * License as published by the Free Software Foundation; either
12  * version 2 of the License, or (at your option) any later version.
13  *
14  * This library is distributed in the hope that it will be useful,
15  * but WITHOUT ANY WARRANTY; without even the implied warranty of
16  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
17  * Lesser General Public License for more details.
18  *
19  * You should have received a copy of the GNU Lesser General Public
20  * License along with this library; if not, write to the
21  * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
22  * Boston, MA 02111-1307, USA.
23  */
24
25 /*
26  * Modified by the GTK+ Team and others 1997-2000.  See the AUTHORS
27  * file for a list of people on the GTK+ Team.  See the ChangeLog
28  * files for a list of changes.  These files are distributed with
29  * GTK+ at ftp://ftp.gtk.org/pub/gtk/.
30  */
31
32 #if !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION)
33 #error "Only <gtk/gtk.h> can be included directly."
34 #endif
35
36 #ifndef __GTK_COLOR_UTILS_H__
37 #define __GTK_COLOR_UTILS_H__
38
39 #include <glib.h>
40
41 G_BEGIN_DECLS
42
43 void gtk_hsv_to_rgb (gdouble  h, gdouble  s, gdouble  v,
44                      gdouble *r, gdouble *g, gdouble *b);
45 void gtk_rgb_to_hsv (gdouble  r, gdouble  g, gdouble  b,
46                      gdouble *h, gdouble *s, gdouble *v);
47
48 G_END_DECLS
49
50 #endif /* __GTK_COLOR_UTILS_H__ */