summaryrefslogtreecommitdiff
path: root/src/cairo-win32.h
diff options
context:
space:
mode:
authorOwen Taylor <otaylor@redhat.com>2005-02-01 15:06:33 +0000
committerOwen Taylor <otaylor@redhat.com>2005-02-01 15:06:33 +0000
commit711d7965c87550901653bb8713b4604c441cb5c3 (patch)
treedd62425dbbbb3ae8d7fdc8137d3d241d391bdbc6 /src/cairo-win32.h
parentf4ccbb4615841c509e6ada7c12f469634732c4e4 (diff)
downloadcairo-711d7965c87550901653bb8713b4604c441cb5c3.tar.gz
src/cairo_unicode.c src/cairoint.h src/Makefile.am: Add _cairo_utf8_to_utf16(), _cairo_utf8_to_ucs4() based on code from GLib.
Add CAIRO_STATUS_INVALID_STRING Use _cairo_utf8_to_ucs4(). Add cairo_bool_t Add TRUE/FALSE definitions. src/cairo.[ch] src/cairoint.h src/cairo_gstate.c: switch cairo_in_stroke/cairo_in_fill and all the functions used to implement them over to cairo_bool_t.
Diffstat (limited to 'src/cairo-win32.h')
-rw-r--r--src/cairo-win32.h20
1 files changed, 10 insertions, 10 deletions
diff --git a/src/cairo-win32.h b/src/cairo-win32.h
index 7743fe7f6..a8387382f 100644
--- a/src/cairo-win32.h
+++ b/src/cairo-win32.h
@@ -37,16 +37,12 @@
#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
+#ifdef CAIRO_HAS_WIN32_SURFACE
#include <windows.h>
+CAIRO_BEGIN_DECLS
+
void
cairo_set_target_win32 (cairo_t *cr,
HDC hdc);
@@ -54,8 +50,12 @@ cairo_set_target_win32 (cairo_t *cr,
cairo_surface_t *
cairo_win32_surface_create (HDC hdc);
-#ifdef __cplusplus
-}
-#endif
+cairo_font_t *
+cairo_win32_font_create_for_logfont (LOGFONT *logfont,
+ cairo_matrix_t *scale);
+
+#endif /* CAIRO_HAS_WIN32_SURFACE */
+
+CAIRO_END_DECLS
#endif /* _CAIRO_WIN32_H_ */