// Metafile and metafile device context classes
// ----------------------------------------------------------------------------
-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();
virtual ~wxMetafileRefData();
int GetWindowsMappingMode() const { return M_METAFILEDATA->m_windowsMappingMode; }
void SetWindowsMappingMode(int mm);
- // Operators
- bool operator==(const wxMetafile& metafile) const
- { return m_refData == metafile.m_refData; }
- bool operator!=(const wxMetafile& metafile) const
- { return m_refData != metafile.m_refData; }
-
private:
DECLARE_DYNAMIC_CLASS(wxMetafile)
};
// Should be called at end of drawing
virtual wxMetafile *Close();
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;
+ virtual void DoGetTextExtent(const wxString& string,
+ wxCoord *x, wxCoord *y,
+ wxCoord *descent = NULL,
+ wxCoord *externalLeading = NULL,
+ const wxFont *theFont = NULL) const;
// Implementation
wxMetafile *GetMetaFile() const { return m_metaFile; }