aboutsummaryrefslogtreecommitdiff
path: root/include/cairo_util.h
diff options
context:
space:
mode:
authorIssam E. Maghni <issam.e.maghni@mailbox.org>2021-05-07 16:57:51 -0400
committerSimon Ser <contact@emersion.fr>2021-06-24 18:21:29 +0200
commit2b0765b46498706b1b36efb6145949f9d0461e32 (patch)
tree1b8fd8874d3612a2cac1931fb8f55fdc89c1b1e8 /include/cairo_util.h
parentf0dd271ccfb77d638b138307570da5f0c974b7cb (diff)
cairo: Replace <cairo/cairo.h> by <cairo.h>
For full context, read https://gitlab.freedesktop.org/cairo/cairo/-/issues/479 TL;DR, cairo’s pc file adds `/cairo` to CFLAGS. So namespace cairo shouldn’t be used. (cherry picked from commit d45623c2db570b7a2e0582943734d18f3d64b126)
Diffstat (limited to 'include/cairo_util.h')
-rw-r--r--include/cairo_util.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/include/cairo_util.h b/include/cairo_util.h
new file mode 100644
index 00000000..dc049c6d
--- /dev/null
+++ b/include/cairo_util.h
@@ -0,0 +1,14 @@
+#ifndef _SWAY_CAIRO_UTIL_H
+#define _SWAY_CAIRO_UTIL_H
+#include "config.h"
+#include <stdint.h>
+#include <cairo.h>
+#include <wayland-client-protocol.h>
+
+void cairo_set_source_u32(cairo_t *cairo, uint32_t color);
+cairo_subpixel_order_t to_cairo_subpixel_order(enum wl_output_subpixel subpixel);
+
+cairo_surface_t *cairo_image_surface_scale(cairo_surface_t *image,
+ int width, int height);
+
+#endif