diff options
Diffstat (limited to 'widgets/misc/e-hsv-utils.h')
-rw-r--r-- | widgets/misc/e-hsv-utils.h | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/widgets/misc/e-hsv-utils.h b/widgets/misc/e-hsv-utils.h new file mode 100644 index 0000000000..774d18585c --- /dev/null +++ b/widgets/misc/e-hsv-utils.h @@ -0,0 +1,31 @@ +/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ +#ifndef _E_HSV_UTILS_H_ +#define _E_HSV_UTILS_H_ + +#include <libgnome/gnome-defs.h> +#include <gdk/gdk.h> + +BEGIN_GNOME_DECLS + +void e_hsv_to_rgb (gdouble h, + gdouble s, + gdouble v, + gdouble *r, + gdouble *g, + gdouble *b); + +void e_rgb_to_hsv (gdouble r, + gdouble g, + gdouble b, + gdouble *h, + gdouble *s, + gdouble *v); + +void e_hsv_tweak (GdkColor *colour, + gdouble delta_h, + gdouble delta_s, + gdouble delta_v); + +END_GNOME_DECLS + +#endif /* _E_HSV_UTILS_H_ */ |