diff options
| author | Furkan Sahin <furkan-dev@proton.me> | 2018-03-27 15:25:25 -0400 |
|---|---|---|
| committer | Furkan Sahin <furkan-dev@proton.me> | 2018-03-27 15:25:25 -0400 |
| commit | bd8993dfd6488a878b13a97ec19dd357f697c3e2 (patch) | |
| tree | cbd9d4e4e3a7c605d2b0a5e3e66ce35554a74c4b /include/cairo.h | |
| parent | 2a4ddaa7d5aa90f4ad6d4f863bc92f8b74be06f3 (diff) | |
Add solid-color rendering to swaybg
Diffstat (limited to 'include/cairo.h')
| -rw-r--r-- | include/cairo.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/include/cairo.h b/include/cairo.h new file mode 100644 index 00000000..f5f474d7 --- /dev/null +++ b/include/cairo.h @@ -0,0 +1,18 @@ +#ifndef _SWAY_CAIRO_H +#define _SWAY_CAIRO_H +#include <stdint.h> +#include <cairo/cairo.h> + +void cairo_set_source_u32(cairo_t *cairo, uint32_t color); + +cairo_surface_t *cairo_image_surface_scale(cairo_surface_t *image, + int width, int height); + +#ifdef WITH_GDK_PIXBUF +#include <gdk-pixbuf/gdk-pixbuf.h> + +cairo_surface_t* gdk_cairo_image_surface_create_from_pixbuf( + const GdkPixbuf *gdkbuf); +#endif //WITH_GDK_PIXBUF + +#endif |
