summaryrefslogtreecommitdiff
path: root/src/colour.h
blob: 1159abda1ff37601241d2131b24d1fd0389da203 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
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