X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/51146826fc0a0a949d88f23fb9d83fc1f1ada14e..09b895cb4a954494063eb17d3dc302a654fd99e5:/include/wx/cocoa/font.h diff --git a/include/wx/cocoa/font.h b/include/wx/cocoa/font.h index 1b6698e89e..c11e4e3e01 100644 --- a/include/wx/cocoa/font.h +++ b/include/wx/cocoa/font.h @@ -30,7 +30,7 @@ class wxFontRefData; See the documentation in src/cocoa/font.mm for more implementatoin details. */ -class WXDLLEXPORT wxFont : public wxFontBase +class WXDLLIMPEXP_CORE wxFont : public wxFontBase { friend class wxCocoaFontFactory; public: @@ -110,15 +110,6 @@ public: virtual bool RealizeResource(); protected: - /*! @abstract Helper method for COW. - @discussion - wxFont can be considered a mutable holder of an immutable opaque implementation object. - All methods that mutate the font should first call Unshare() to ensure that mutating - the implementation object does not cause another wxFont that happened to share the - same ref data to mutate. - */ - void Unshare(); - /*! @abstract Internal constructor with ref data @discussion Takes ownership of @a refData. That is, it is assumed that refData has either just been @@ -128,6 +119,10 @@ protected: explicit wxFont(wxFontRefData *refData) { Create(refData); } bool Create(wxFontRefData *refData); + + virtual wxGDIRefData *CreateGDIRefData() const; + virtual wxGDIRefData *CloneGDIRefData(const wxGDIRefData *data) const; + private: DECLARE_DYNAMIC_CLASS(wxFont) };