X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b5dbe15d0bacde245539f54c4d97af6b4696f01f..19c4d91638c2546630c4427e39c02f5380a8bb87:/include/wx/palmos/metafile.h?ds=inline diff --git a/include/wx/palmos/metafile.h b/include/wx/palmos/metafile.h index ccbb807c26..3a0c60eb8a 100644 --- a/include/wx/palmos/metafile.h +++ b/include/wx/palmos/metafile.h @@ -27,15 +27,18 @@ class WXDLLIMPEXP_FWD_CORE wxMetafile; class WXDLLEXPORT wxMetafileRefData: public wxGDIRefData { - friend class WXDLLIMPEXP_FWD_CORE wxMetafile; public: wxMetafileRefData(); virtual ~wxMetafileRefData(); + virtual bool IsOk() const { return m_metafile != 0; } + public: WXHANDLE m_metafile; int m_windowsMappingMode; int m_width, m_height; + + friend class WXDLLIMPEXP_FWD_CORE wxMetafile; }; #define M_METAFILEDATA ((wxMetafileRefData *)m_refData) @@ -51,8 +54,6 @@ public: virtual bool SetClipboard(int width = 0, int height = 0); virtual bool Play(wxDC *dc); - bool Ok() const { return IsOk(); } - bool IsOk() const { return (M_METAFILEDATA && (M_METAFILEDATA->m_metafile != 0)); }; // set/get the size of metafile for clipboard operations wxSize GetSize() const { return wxSize(GetWidth(), GetHeight()); }