diff options
author | Issam E. Maghni <issam.e.maghni@mailbox.org> | 2021-05-07 17:36:07 -0400 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2021-05-10 10:29:07 +0200 |
commit | 3cb81c3573036a3606a4c7a1cedbe3e814a22773 (patch) | |
tree | fc089a0565d049f5f425e5095ee2fcaa2f6c0e70 /include/cairo_util.h | |
parent | 808a226ec63c00e20c402bee332e4aa81f86e7ea (diff) | |
download | swaybg-3cb81c3573036a3606a4c7a1cedbe3e814a22773.tar.gz swaybg-3cb81c3573036a3606a4c7a1cedbe3e814a22773.tar.bz2 |
cairo: Replace <cairo/cairo.h> by <cairo.h>
Same as https://github.com/swaywm/sway/pull/6262
Diffstat (limited to 'include/cairo_util.h')
-rw-r--r-- | include/cairo_util.h | 25 |
1 files changed, 25 insertions, 0 deletions
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 <stdint.h> +#include <cairo.h> +#include <wayland-client.h> +#if HAVE_GDK_PIXBUF +#include <gdk-pixbuf/gdk-pixbuf.h> +#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 |