diff options
| author | Mattias Andrée <m@maandree.se> | 2026-06-07 10:42:40 +0200 |
|---|---|---|
| committer | Mattias Andrée <m@maandree.se> | 2026-06-07 10:42:40 +0200 |
| commit | cf89c3f538a5c3867ff3ae84c26dea87e54d615e (patch) | |
| tree | fb0b3efbbdcaa9393d2ab6395f2d27568a0ffe0e /common.h | |
| parent | style improvement + check mem alloc failure (diff) | |
| download | gcmap-cf89c3f538a5c3867ff3ae84c26dea87e54d615e.tar.gz gcmap-cf89c3f538a5c3867ff3ae84c26dea87e54d615e.tar.bz2 gcmap-cf89c3f538a5c3867ff3ae84c26dea87e54d615e.tar.xz | |
Implement basic character table
Signed-off-by: Mattias Andrée <m@maandree.se>
Diffstat (limited to 'common.h')
| -rw-r--r-- | common.h | 12 |
1 files changed, 12 insertions, 0 deletions
@@ -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 |
