cairo_font_slant_t m_slant;
cairo_font_weight_t m_weight;
#endif
-#ifdef __WXMSW__
- wxCairoContext( wxGraphicsRenderer* renderer, HDC context );
-#endif
};
class wxCairoBitmapData : public wxGraphicsObjectRefData
wxCairoContext( wxGraphicsRenderer* renderer, const wxPrinterDC& dc );
#ifdef __WXGTK__
wxCairoContext( wxGraphicsRenderer* renderer, GdkDrawable *drawable );
+#endif
+#ifdef __WXMSW__
+ wxCairoContext( wxGraphicsRenderer* renderer, HDC context );
#endif
wxCairoContext( wxGraphicsRenderer* renderer, cairo_t *context );
wxCairoContext( wxGraphicsRenderer* renderer, wxWindow *window);
virtual bool SetAntialiasMode(wxAntialiasMode antialias);
+ virtual bool SetInterpolationQuality(wxInterpolationQuality interpolation);
+
virtual bool SetCompositionMode(wxCompositionMode op);
virtual void BeginLayer(wxDouble opacity);
m_width = sz.x;
m_height = sz.y;
#endif
+
+#ifdef __WXMSW__
+ m_mswSurface = cairo_win32_surface_create((HDC)window->GetHandle());
+ Init(cairo_create(m_mswSurface));
+#endif
+
}
wxCairoContext::~wxCairoContext()
if ( m_context )
{
PopState();
-#ifdef __WXMSW__
- m_mswSurface = cairo_win32_surface_create((HDC)window->GetHandle());
- m_context = cairo_create(m_mswSurface);
-#endif
PopState();
cairo_destroy(m_context);
}
return true;
}
+bool wxCairoContext::SetInterpolationQuality(wxInterpolationQuality WXUNUSED(interpolation))
+{
+ // placeholder
+ return false;
+}
+
bool wxCairoContext::SetCompositionMode(wxCompositionMode op)
{
if ( m_composition == op )
virtual wxGraphicsContext * CreateContext( wxWindow* window );
virtual wxGraphicsContext * CreateMeasuringContext();
-
+#ifdef __WXMSW__
+#if wxUSE_ENH_METAFILE
+ virtual wxGraphicsContext * CreateContext( const wxEnhMetaFileDC& dc);
+#endif
+#endif
// Path
virtual wxGraphicsPath CreatePath();
return NULL;
}
+#ifdef __WXMSW__
+#if wxUSE_ENH_METAFILE
+wxGraphicsContext * wxCairoRenderer::CreateContext( const wxEnhMetaFileDC& dc)
+{
+ return NULL;
+}
+#endif
+#endif
+
wxGraphicsContext * wxCairoRenderer::CreateContextFromNativeContext( void * context )
{
#ifdef __WXMSW__