summaryrefslogtreecommitdiff
path: root/render/color.h
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2003-03-16 21:11:39 +0000
committerDana Jansens <danakj@orodu.net>2003-03-16 21:11:39 +0000
commitf8a47de5ec444c452093371e3db16857eb39a490 (patch)
tree31db2567842d98232775f9980f7a8d2586c0ac71 /render/color.h
parent8ba0586bcbdc7fe9648f1063812126d71a041670 (diff)
merge the C branch into HEAD
Diffstat (limited to 'render/color.h')
-rw-r--r--render/color.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/render/color.h b/render/color.h
new file mode 100644
index 00000000..1e0cc57a
--- /dev/null
+++ b/render/color.h
@@ -0,0 +1,19 @@
+#ifndef __color_h
+#define __color_h
+
+#include <X11/Xlib.h>
+
+typedef struct color_rgb {
+ int r;
+ int g;
+ int b;
+ unsigned long pixel;
+ GC gc;
+} color_rgb;
+
+void color_allocate_gc(color_rgb *in);
+color_rgb *color_parse(char *colorname);
+color_rgb *color_new(int r, int g, int b);
+void color_free(color_rgb *in);
+
+#endif /* __color_h */