summaryrefslogtreecommitdiff
path: root/src/cairo-xlib.h
diff options
context:
space:
mode:
authorJamey Sharp <jamey@minilop.net>2003-09-30 18:56:22 +0000
committerJamey Sharp <jamey@minilop.net>2003-09-30 18:56:22 +0000
commit973ee8998377f09aee66664ddf93725d6ffd416e (patch)
tree296c7f2ce0f53d2c11c4e0c67ae690712f933ebd /src/cairo-xlib.h
parent9c964b8f8afe03f2cf37073fc8f313fae24d58c6 (diff)
downloadcairo-973ee8998377f09aee66664ddf93725d6ffd416e.tar.gz
Virtualized the font and surface backend implementations.
Diffstat (limited to 'src/cairo-xlib.h')
-rw-r--r--src/cairo-xlib.h56
1 files changed, 56 insertions, 0 deletions
diff --git a/src/cairo-xlib.h b/src/cairo-xlib.h
new file mode 100644
index 000000000..0e282cbd4
--- /dev/null
+++ b/src/cairo-xlib.h
@@ -0,0 +1,56 @@
+/*
+ * Copyright © 2002 USC, Information Sciences Institute
+ *
+ * Permission to use, copy, modify, distribute, and sell this software
+ * and its documentation for any purpose is hereby granted without
+ * fee, provided that the above copyright notice appear in all copies
+ * and that both that copyright notice and this permission notice
+ * appear in supporting documentation, and that the name of the
+ * University of Southern California not be used in advertising or
+ * publicity pertaining to distribution of the software without
+ * specific, written prior permission. The University of Southern
+ * California makes no representations about the suitability of this
+ * software for any purpose. It is provided "as is" without express
+ * or implied warranty.
+ *
+ * THE UNIVERSITY OF SOUTHERN CALIFORNIA DISCLAIMS ALL WARRANTIES WITH
+ * REGARD TO THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF
+ * MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL THE UNIVERSITY OF
+ * SOUTHERN CALIFORNIA BE LIABLE FOR ANY SPECIAL, INDIRECT OR
+ * CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS
+ * OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
+ * NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN
+ * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
+ *
+ * Author: Carl D. Worth <cworth@isi.edu>
+ */
+
+#ifndef _CAIRO_XLIB_H_
+#define _CAIRO_XLIB_H_
+
+#include "cairo.h"
+
+#ifdef _CAIROINT_H_
+#include <slim_export.h>
+#else
+#include <slim_import.h>
+#endif
+
+/* XXX: This is a mess from the user's POV. Should the Visual or the
+ cairo_format_t control what render format is used? Maybe I can have
+ cairo_surface_create_for_window with a visual, and
+ cairo_surface_create_for_pixmap with a cairo_format_t. Would that work?
+*/
+extern cairo_surface_t * __external_linkage
+cairo_xlib_surface_create (Display *dpy,
+ Drawable drawable,
+ Visual *visual,
+ cairo_format_t format,
+ Colormap colormap);
+
+extern void __external_linkage
+cairo_set_target_drawable (cairo_t *cr,
+ Display *dpy,
+ Drawable drawable);
+
+#endif