X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d3c7fc996a73e9f6a83067bc28a3c5581a3fee65..b2e10daccc99be6d3ca7a206c69e94d3bfe6b03d:/include/wx/mac/carbon/metafile.h diff --git a/include/wx/mac/carbon/metafile.h b/include/wx/mac/carbon/metafile.h index d959a386a9..d005640506 100644 --- a/include/wx/mac/carbon/metafile.h +++ b/include/wx/mac/carbon/metafile.h @@ -30,7 +30,7 @@ #define wxMetaFile wxMetafile #define wxMetaFileDC wxMetafileDC -class WXDLLEXPORT wxMetafile; +class WXDLLIMPEXP_FWD_CORE wxMetafile; class wxMetafileRefData ; #define M_METAFILEDATA ((wxMetafileRefData *)m_refData) @@ -47,7 +47,8 @@ public: virtual bool SetClipboard(int width = 0, int height = 0); virtual bool Play(wxDC *dc); - bool Ok() const ; + bool Ok() const { return IsOk(); } + bool IsOk() const ; wxSize GetSize() const; int GetWidth() const { return GetSize().x; } @@ -56,12 +57,10 @@ public: // Implementation WXHMETAFILE GetHMETAFILE() const ; void SetHMETAFILE(WXHMETAFILE mf) ; - - // Operators - inline bool operator == (const wxMetafile& metafile) const { return m_refData == metafile.m_refData; } - inline bool operator != (const wxMetafile& metafile) const { return m_refData != metafile.m_refData; } - -protected: + // Since the native metafile format is PDF for Quartz + // we need a call that allows setting PICT content for + // backwards compatibility + void SetPICT(void* pictHandle) ; }; class WXDLLEXPORT wxMetafileDC: public wxDC