summaryrefslogtreecommitdiff
path: root/src/cairo-win32.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/cairo-win32.h')
-rw-r--r--src/cairo-win32.h26
1 files changed, 12 insertions, 14 deletions
diff --git a/src/cairo-win32.h b/src/cairo-win32.h
index fab497aa..93983456 100644
--- a/src/cairo-win32.h
+++ b/src/cairo-win32.h
@@ -34,38 +34,36 @@
*/
#ifndef _CAIRO_WIN32_H_
+#define _CAIRO_WIN32_H_
#include <cairo.h>
-#ifdef CAIRO_HAS_WIN32_SURFACE
+#if CAIRO_HAS_WIN32_SURFACE
#include <windows.h>
CAIRO_BEGIN_DECLS
-void
-cairo_set_target_win32 (cairo_t *cr,
- HDC hdc);
-
cairo_surface_t *
cairo_win32_surface_create (HDC hdc);
-cairo_font_t *
-cairo_win32_font_create_for_logfontw (LOGFONTW *logfont,
- cairo_matrix_t *scale);
+cairo_font_face_t *
+cairo_win32_font_face_create_for_logfontw (LOGFONTW *logfont);
cairo_status_t
-cairo_win32_font_select_font (cairo_font_t *font,
- HDC hdc);
+cairo_win32_scaled_font_select_font (cairo_scaled_font_t *scaled_font,
+ HDC hdc);
void
-cairo_win32_font_done_font (cairo_font_t *font);
+cairo_win32_scaled_font_done_font (cairo_scaled_font_t *scaled_font);
double
-cairo_win32_font_get_scale_factor (cairo_font_t *font);
-
-#endif /* CAIRO_HAS_WIN32_SURFACE */
+cairo_win32_scaled_font_get_metrics_factor (cairo_scaled_font_t *scaled_font);
CAIRO_END_DECLS
+#else /* CAIRO_HAS_WIN32_SURFACE */
+# error Cairo was not compiled with support for the win32 backend
+#endif /* CAIRO_HAS_WIN32_SURFACE */
+
#endif /* _CAIRO_WIN32_H_ */