diff options
author | Leon Henrik Plickat <leonhenrik.plickat@stud.uni-goettingen.de> | 2020-09-24 18:50:50 +0200 |
---|---|---|
committer | Leon Henrik Plickat <leonhenrik.plickat@stud.uni-goettingen.de> | 2020-09-24 18:50:50 +0200 |
commit | 3a85053e4e72e7bd19790032e5851d2a6c785e9e (patch) | |
tree | 685cb56f66eb3d979e73e2611ff8c59b065dc6dd /src/colour.h | |
parent | 76c39ec0b1b6e48f8aa527c481a03f9aa6bfe472 (diff) | |
download | wlclock-3a85053e4e72e7bd19790032e5851d2a6c785e9e.tar.gz wlclock-3a85053e4e72e7bd19790032e5851d2a6c785e9e.tar.bz2 |
Render background
Diffstat (limited to 'src/colour.h')
-rw-r--r-- | src/colour.h | 17 |
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 + |