From 3cb81c3573036a3606a4c7a1cedbe3e814a22773 Mon Sep 17 00:00:00 2001 From: "Issam E. Maghni" Date: Fri, 7 May 2021 17:36:07 -0400 Subject: cairo: Replace by Same as https://github.com/swaywm/sway/pull/6262 --- include/cairo_util.h | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 include/cairo_util.h (limited to 'include/cairo_util.h') diff --git a/include/cairo_util.h b/include/cairo_util.h new file mode 100644 index 0000000..a64c355 --- /dev/null +++ b/include/cairo_util.h @@ -0,0 +1,25 @@ +#ifndef _SWAY_CAIRO_UTIL_H +#define _SWAY_CAIRO_UTIL_H + +#include "config.h" +#include +#include +#include +#if HAVE_GDK_PIXBUF +#include +#endif + +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); + +#if HAVE_GDK_PIXBUF + +cairo_surface_t* gdk_cairo_image_surface_create_from_pixbuf( + const GdkPixbuf *gdkbuf); + +#endif // HAVE_GDK_PIXBUF + +#endif -- cgit v1.2.3