aboutsummaryrefslogtreecommitdiffstats
path: root/common.h
diff options
context:
space:
mode:
Diffstat (limited to 'common.h')
-rw-r--r--common.h12
1 files changed, 12 insertions, 0 deletions
diff --git a/common.h b/common.h
index a7cd690..a30d4c7 100644
--- a/common.h
+++ b/common.h
@@ -2,6 +2,10 @@
#ifndef COMMON_H_
#define COMMON_H_
+#if defined(__GNUC__)
+# pragma GCC diagnostic ignored "-Wunsuffixed-float-constants"
+#endif
+
#include <libsimple.h>
#include <libsimple-arg.h>
#include <libcmap.h>
@@ -15,6 +19,7 @@
#if defined(__GNUC__)
# pragma GCC diagnostic pop
#endif
+#include <math.h>
#if GTK_CHECK_VERSION(2, 12, 0)
# define HAVE_ITEM_TOOLTIPS
@@ -24,4 +29,11 @@
#include "char-table.h"
+/* colour.c */
+double srgb_encode_unsigned(double t);
+double srgb_decode_unsigned(double t);
+double srgb_blend(double at0, double t, double at1);
+void set_source_colour_blend(cairo_t *g, const GdkColor *at0, double t, const GdkColor *at1);
+void set_source_colour(cairo_t *g, const GdkColor *colour);
+
#endif