diff options
author | 2018-03-28 15:25:33 -0400 | |
---|---|---|
committer | 2018-03-28 15:25:33 -0400 | |
commit | 9070950eecded7bfa64e7bca3bb76b150ccc8b72 (patch) | |
tree | 509a9c669bf2679085e27a1ff1b0c95526abf14c /include/cairo.h | |
parent | Merge pull request #1641 from swaywm/transformed-events (diff) | |
parent | Address review comments (diff) | |
download | sway-9070950eecded7bfa64e7bca3bb76b150ccc8b72.tar.gz sway-9070950eecded7bfa64e7bca3bb76b150ccc8b72.tar.zst sway-9070950eecded7bfa64e7bca3bb76b150ccc8b72.zip |
Merge pull request #1638 from swaywm/swaybg-layers
Reimplement swaybg using surface layers
Diffstat (limited to 'include/cairo.h')
-rw-r--r-- | include/cairo.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/include/cairo.h b/include/cairo.h new file mode 100644 index 00000000..31672705 --- /dev/null +++ b/include/cairo.h | |||
@@ -0,0 +1,19 @@ | |||
1 | #ifndef _SWAY_CAIRO_H | ||
2 | #define _SWAY_CAIRO_H | ||
3 | #include <stdint.h> | ||
4 | #include <cairo/cairo.h> | ||
5 | |||
6 | void cairo_set_source_u32(cairo_t *cairo, uint32_t color); | ||
7 | |||
8 | cairo_surface_t *cairo_image_surface_scale(cairo_surface_t *image, | ||
9 | int width, int height); | ||
10 | |||
11 | #include "config.h" | ||
12 | #ifdef HAVE_GDK_PIXBUF | ||
13 | #include <gdk-pixbuf/gdk-pixbuf.h> | ||
14 | |||
15 | cairo_surface_t* gdk_cairo_image_surface_create_from_pixbuf( | ||
16 | const GdkPixbuf *gdkbuf); | ||
17 | #endif //WITH_GDK_PIXBUF | ||
18 | |||
19 | #endif | ||