diff options
| author | Drew DeVault <sir@cmpwn.com> | 2019-01-13 21:15:32 -0500 |
|---|---|---|
| committer | Drew DeVault <sir@cmpwn.com> | 2019-01-13 21:16:47 -0500 |
| commit | b90637e2a6e854d586b977ed9b80b806edeb12dd (patch) | |
| tree | fa4d90324daf36d01850d7e8e90dce4b45602c40 /include/cairo.h | |
| parent | 43435cd7317e24bd57a9d154f18c7fd9f334418e (diff) | |
Convert swaylock into 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 |
