X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/7d53220e14254fa813a65ca10c05d3ef71888764..8d2c70414cc0c6b93147d0c0cc963f217fcb2023:/include/wx/graphics.h diff --git a/include/wx/graphics.h b/include/wx/graphics.h index 915cbfd4e1..b42c0ad1de 100644 --- a/include/wx/graphics.h +++ b/include/wx/graphics.h @@ -57,6 +57,7 @@ class WXDLLIMPEXP_FWD_CORE wxWindowDC; class WXDLLIMPEXP_FWD_CORE wxMemoryDC; #if wxUSE_PRINTING_ARCHITECTURE class WXDLLIMPEXP_FWD_CORE wxPrinterDC; +class WXDLLIMPEXP_FWD_CORE wxEnhMetaFileDC; #endif class WXDLLIMPEXP_FWD_CORE wxGraphicsContext; class WXDLLIMPEXP_FWD_CORE wxGraphicsPath; @@ -392,7 +393,10 @@ public: static wxGraphicsContext * Create( const wxMemoryDC& dc); #if wxUSE_PRINTING_ARCHITECTURE static wxGraphicsContext * Create( const wxPrinterDC& dc); +#ifdef __WXMSW__ + static wxGraphicsContext * Create( const wxEnhMetaFileDC& dc); #endif +#endif // wxUSE_PRINTING_ARCHITECTURE static wxGraphicsContext* CreateFromNative( void * context ); @@ -710,7 +714,10 @@ public: virtual wxGraphicsContext * CreateContext( const wxMemoryDC& dc) = 0; #if wxUSE_PRINTING_ARCHITECTURE virtual wxGraphicsContext * CreateContext( const wxPrinterDC& dc) = 0; +#ifdef __WXMSW__ + virtual wxGraphicsContext * CreateContext( const wxEnhMetaFileDC& dc) = 0; #endif +#endif // wxUSE_PRINTING_ARCHITECTURE virtual wxGraphicsContext * CreateContextFromNativeContext( void * context ) = 0;