44ceea7 ยท 1 month ago 7 commits
 1#ifndef _SWAY_CAIRO_H
 2#define _SWAY_CAIRO_H
 3
 4#include "config.h"
 5#include <stdint.h>
 6#include <cairo/cairo.h>
 7#include <wayland-client.h>
 8#if HAVE_GDK_PIXBUF
 9#include <gdk-pixbuf/gdk-pixbuf.h>
10#endif
11
12void cairo_set_source_u32(cairo_t *cairo, uint32_t color);
13cairo_subpixel_order_t to_cairo_subpixel_order(enum wl_output_subpixel subpixel);
14
15cairo_surface_t *cairo_surface_duplicate(cairo_surface_t *src);
16
17#if HAVE_GDK_PIXBUF
18
19cairo_surface_t* gdk_cairo_image_surface_create_from_pixbuf(
20		const GdkPixbuf *gdkbuf);
21
22#endif // HAVE_GDK_PIXBUF
23
24#endif