aboutsummaryrefslogtreecommitdiffstats
path: root/color.h
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2004-07-24 00:49:19 +0000
committerGuy Harris <guy@alum.mit.edu>2004-07-24 00:49:19 +0000
commitd5425a709a89d182645944ac72f64d579858bdf3 (patch)
tree9e10671e06966ae72acfdf904307564dce9cb8e2 /color.h
parent34de3c15d994d65a99b65d0dd55b0e2208685b3b (diff)
Move the declaration of "create_color()" up to "color.h", so it's
declared in a toolkit-independent header file. Get rid of "gtk/color_utils.h", as there's nothing left in it. svn path=/trunk/; revision=11498
Diffstat (limited to 'color.h')
-rw-r--r--color.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/color.h b/color.h
index bbc04bd388..56f9f1a909 100644
--- a/color.h
+++ b/color.h
@@ -44,6 +44,18 @@ typedef struct {
guint16 blue;
} color_t;
+/** Create a color from R, G, and B values, and do whatever toolkit-dependent
+ ** work needs to be done.
+ *
+ * @param color the color_t to be filled
+ * @param red the red value for the color
+ * @param green the green value for the color
+ * @param blue the blue value for the color
+ * @param source the GdkColor to be filled
+ * @return TRUE if it succeeds, FALSE if it fails
+ */
+gboolean create_color(color_t *color, guint16 red, guint16 green, guint16 blue);
+
/* Data for a color filter. */
typedef struct _color_filter {
gchar *filter_name; /* name of the filter */