aboutsummaryrefslogtreecommitdiff
path: root/src/util.h
diff options
context:
space:
mode:
authorFederico Angelilli <code@fedang.net>2024-11-20 01:20:46 +0100
committerFederico Angelilli <code@fedang.net>2024-11-20 01:20:46 +0100
commitbb63935e63365d842fe530629387d1d2a4248042 (patch)
tree61c3ba787bd8dfdcf5a38ba17dfcc856b2605ae2 /src/util.h
parent30f91d7c8769a68e4bf11ed4ff0177bcf1bc9f03 (diff)
Refactor changes
Diffstat (limited to 'src/util.h')
-rw-r--r--src/util.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/util.h b/src/util.h
index 78dcad7..4183913 100644
--- a/src/util.h
+++ b/src/util.h
@@ -19,7 +19,7 @@ typedef struct {
typedef struct {
color_t *colors;
size_t length;
- cairo_pattern_t *cached;
+ cairo_pattern_t *pattern;
} gradient_t;
static inline color_t color_rgba(int r, int g, int b, int a)
@@ -44,6 +44,8 @@ void color_print(FILE *stream, color_t *color);
char *gradient_to_string(gradient_t *gradient);
+void gradient_print(FILE *stream, gradient_t *gradient);
+
void gradient_free(gradient_t *gradient);
const struct timespec timespec_from_ms(long ms);