diff options
author | Drew DeVault <sir@cmpwn.com> | 2019-04-25 11:03:40 -0400 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2019-04-25 11:03:40 -0400 |
commit | 34e4a47a8675ad2183fb34b0f93699a5a3c21258 (patch) | |
tree | a05f189144d2758cc44d70bbea79fbe136c9bc48 /include/cairo.h | |
parent | 3ee910d46840771bf32bfd8776ff8bb25853d216 (diff) | |
download | swaybg-34e4a47a8675ad2183fb34b0f93699a5a3c21258.tar.gz swaybg-34e4a47a8675ad2183fb34b0f93699a5a3c21258.tar.bz2 |
Split swaybg into a standalone project
Diffstat (limited to 'include/cairo.h')
-rw-r--r-- | include/cairo.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/include/cairo.h b/include/cairo.h new file mode 100644 index 0000000..15664cd --- /dev/null +++ b/include/cairo.h @@ -0,0 +1,25 @@ +#ifndef _SWAY_CAIRO_H +#define _SWAY_CAIRO_H + +#include "config.h" +#include <stdint.h> +#include <cairo/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 |