X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/51146826fc0a0a949d88f23fb9d83fc1f1ada14e..b23bc769d3d1943ca2b02ca90701d86b00880af9:/include/wx/cocoa/font.h?ds=sidebyside diff --git a/include/wx/cocoa/font.h b/include/wx/cocoa/font.h index 1b6698e89e..f19d666288 100644 --- a/include/wx/cocoa/font.h +++ b/include/wx/cocoa/font.h @@ -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) };