summaryrefslogtreecommitdiff
path: root/libs/cairo/src/cairo-tee.h
diff options
context:
space:
mode:
Diffstat (limited to 'libs/cairo/src/cairo-tee.h')
-rw-r--r--libs/cairo/src/cairo-tee.h35
1 files changed, 35 insertions, 0 deletions
diff --git a/libs/cairo/src/cairo-tee.h b/libs/cairo/src/cairo-tee.h
new file mode 100644
index 000000000..c60cb5327
--- /dev/null
+++ b/libs/cairo/src/cairo-tee.h
@@ -0,0 +1,35 @@
+/* This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
+
+#ifndef CAIRO_TEE_H
+#define CAIRO_TEE_H
+
+#include "cairo.h"
+
+#if CAIRO_HAS_TEE_SURFACE
+
+CAIRO_BEGIN_DECLS
+
+cairo_public cairo_surface_t *
+cairo_tee_surface_create (cairo_surface_t *master);
+
+cairo_public void
+cairo_tee_surface_add (cairo_surface_t *surface,
+ cairo_surface_t *target);
+
+cairo_public void
+cairo_tee_surface_remove (cairo_surface_t *surface,
+ cairo_surface_t *target);
+
+cairo_public cairo_surface_t *
+cairo_tee_surface_index (cairo_surface_t *surface,
+ int index);
+
+CAIRO_END_DECLS
+
+#else /*CAIRO_HAS_TEE_SURFACE*/
+# error Cairo was not compiled with support for the TEE backend
+#endif /*CAIRO_HAS_TEE_SURFACE*/
+
+#endif /*CAIRO_TEE_H*/