#define wxMetaFile wxMetafile
#define wxMetaFileDC wxMetafileDC
-class WXDLLEXPORT wxMetafile;
+class WXDLLIMPEXP_FWD_CORE wxMetafile;
class WXDLLEXPORT wxMetafileRefData: public wxGDIRefData
{
- friend class WXDLLEXPORT wxMetafile;
+ friend class WXDLLIMPEXP_FWD_CORE wxMetafile;
public:
wxMetafileRefData(void);
virtual ~wxMetafileRefData(void);
virtual bool SetClipboard(int width = 0, int height = 0);
virtual bool Play(wxDC *dc);
- inline bool Ok(void) const { return (M_METAFILEDATA && (M_METAFILEDATA->m_metafile != 0)); };
+ inline bool Ok() const { return IsOk(); }
+ inline bool IsOk(void) const { return (M_METAFILEDATA && (M_METAFILEDATA->m_metafile != 0)); };
// Implementation
inline WXHANDLE GetHMETAFILE(void) { return M_METAFILEDATA->m_metafile; }
void SetHMETAFILE(WXHANDLE mf) ;
inline int GetWindowsMappingMode(void) { return M_METAFILEDATA->m_windowsMappingMode; }
void SetWindowsMappingMode(int mm);
-
- // 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; }
};
class WXDLLEXPORT wxMetafileDC: public wxDC
virtual void SetMapMode(int mode);
virtual void GetTextExtent(const wxString& string, long *x, long *y,
long *descent = NULL, long *externalLeading = NULL,
- wxFont *theFont = NULL, bool use16bit = false) const;
+ const wxFont *theFont = NULL, bool use16bit = false) const;
// Implementation
inline wxMetafile *GetMetaFile(void) const { return m_metaFile; }