X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f8855e47254a28f5141524b3aaaac03c2944e997..3eeefdf9bdc41618a14a8fff96a016004b030e95:/include/wx/mac/carbon/metafile.h?ds=sidebyside diff --git a/include/wx/mac/carbon/metafile.h b/include/wx/mac/carbon/metafile.h index add0be172a..d6f7fe2cb7 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) @@ -40,14 +40,15 @@ class WXDLLEXPORT wxMetafile: public wxGDIObject DECLARE_DYNAMIC_CLASS(wxMetafile) public: wxMetafile(const wxString& file = wxEmptyString); - ~wxMetafile(void); + virtual ~wxMetafile(void); // After this is called, the metafile cannot be used for anything // since it is now owned by the clipboard. 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,6 @@ 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: }; class WXDLLEXPORT wxMetafileDC: public wxDC @@ -75,7 +70,7 @@ class WXDLLEXPORT wxMetafileDC: public wxDC int width = 0, int height = 0, const wxString& description = wxEmptyString); - ~wxMetafileDC(void); + virtual ~wxMetafileDC(void); // Should be called at end of drawing virtual wxMetafile *Close(void);