summaryrefslogtreecommitdiff
path: root/src/cairo-win32.h
diff options
context:
space:
mode:
authorOwen Taylor <otaylor@redhat.com>2005-01-31 16:11:37 +0000
committerOwen Taylor <otaylor@redhat.com>2005-01-31 16:11:37 +0000
commit86c8755e59a7f2000fc8a44811d06afae2d0dbb7 (patch)
tree2f152c7b1e0e5547dc3ff0647e5161a8c9d94d27 /src/cairo-win32.h
parent26148a1d15b710b8f2ce850f8704bf44b0c3d484 (diff)
downloadcairo-86c8755e59a7f2000fc8a44811d06afae2d0dbb7.tar.gz
configure.in src/cairo-features.h.in: Add a check for the Windows platform and --enable-win32. Also add some (currently always off) stubs for native Win32 fonts.
Make building the PDF backend conditional on having FreeType. src/Makefile.am src/cairo_win32_surface.c src/cairo_win32_font.c src/cairo-win32.h: Add a Win32 backend using GDI and software fallbacks Font code is not yet there yet, but it works with the fontconfig backend. src/cairo_gdip_font.cpp src/cairo_gdip_surface.cpp: Remove remnants of a GDI+ based backend. Prefer platform-specific font backends to the fontconfig backend.
Diffstat (limited to 'src/cairo-win32.h')
-rw-r--r--src/cairo-win32.h61
1 files changed, 61 insertions, 0 deletions
diff --git a/src/cairo-win32.h b/src/cairo-win32.h
new file mode 100644
index 000000000..7743fe7f6
--- /dev/null
+++ b/src/cairo-win32.h
@@ -0,0 +1,61 @@
+/* cairo - a vector graphics library with display and print output
+ *
+ * Copyright © 2005 Red Hat, Inc
+ *
+ * This library is free software; you can redistribute it and/or
+ * modify it either under the terms of the GNU Lesser General Public
+ * License version 2.1 as published by the Free Software Foundation
+ * (the "LGPL") or, at your option, under the terms of the Mozilla
+ * Public License Version 1.1 (the "MPL"). If you do not alter this
+ * notice, a recipient may use your version of this file under either
+ * the MPL or the LGPL.
+ *
+ * You should have received a copy of the LGPL along with this library
+ * in the file COPYING-LGPL-2.1; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ * You should have received a copy of the MPL along with this library
+ * in the file COPYING-MPL-1.1
+ *
+ * The contents of this file are subject to the Mozilla Public License
+ * Version 1.1 (the "License"); you may not use this file except in
+ * compliance with the License. You may obtain a copy of the License at
+ * http://www.mozilla.org/MPL/
+ *
+ * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY
+ * OF ANY KIND, either express or implied. See the LGPL or the MPL for
+ * the specific language governing rights and limitations.
+ *
+ * The Original Code is the cairo graphics library.
+ *
+ * The Initial Developer of the Original Code is Red Hat, Inc.
+ *
+ * Contributor(s):
+ * Owen Taylor <otaylor@redhat.com>
+ */
+
+#ifndef _CAIRO_WIN32_H_
+
+#include <cairo.h>
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
+#ifndef CAIRO_HAS_WIN32_SURFACE
+#error "cairo-win32.h included in a Cairo without the Win32 backend"
+#endif
+
+#include <windows.h>
+
+void
+cairo_set_target_win32 (cairo_t *cr,
+ HDC hdc);
+
+cairo_surface_t *
+cairo_win32_surface_create (HDC hdc);
+
+#ifdef __cplusplus
+}
+#endif
+
+#endif /* _CAIRO_WIN32_H_ */