summaryrefslogtreecommitdiff
path: root/src/colour.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/colour.h')
-rw-r--r--src/colour.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/colour.h b/src/colour.h
new file mode 100644
index 0000000..1159abd
--- /dev/null
+++ b/src/colour.h
@@ -0,0 +1,17 @@
+#ifndef WLCLOCK_COLOUR_H
+#define WLCLOCK_COLOUR_H
+
+#include<stdbool.h>
+#include<cairo/cairo.h>
+
+struct Wlclock_colour
+{
+ double r, g, b, a;
+};
+
+bool colour_from_string (struct Wlclock_colour *colour, const char *hex);
+void colour_set_cairo_source (cairo_t *cairo, struct Wlclock_colour *colour);
+bool colour_is_transparent (struct Wlclock_colour *colour);
+
+#endif
+