X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/3222fc18c9363f4339937bac1f92705ee6cfcd7c..e10caf88b6cbf09bb38dea47dc258eb638237559:/src/cocoa/icon.mm?ds=sidebyside diff --git a/src/cocoa/icon.mm b/src/cocoa/icon.mm index 91b059ba59..44983b7272 100644 --- a/src/cocoa/icon.mm +++ b/src/cocoa/icon.mm @@ -32,6 +32,8 @@ public: wxIconRefData( const wxIconRefData& data ); virtual ~wxIconRefData(); + virtual bool IsOk() const { return m_ok; } + protected: int m_width; int m_height; @@ -98,7 +100,17 @@ wxIcon::~wxIcon() { } -bool wxIcon::CreateFromXpm(const char **xpm) +wxGDIRefData *wxIcon::CreateGDIRefData() const +{ + return new wxIconRefData; +} + +wxGDIRefData *wxIcon::CloneGDIRefData(const wxGDIRefData *data) const +{ + return new wxIconRefData(*wx_static_cast(const wxIconRefData *, data)); +} + +bool wxIcon::CreateFromXpm(const char* const* xpm) { wxBitmap bitmap(xpm); CopyFromBitmap(bitmap); @@ -126,11 +138,6 @@ void wxIcon::CopyFromBitmap(const wxBitmap& bitmap) M_ICONDATA->m_quality = 0; } -bool wxIcon::IsOk() const -{ - return m_refData && M_ICONDATA->m_ok; -} - int wxIcon::GetWidth() const { if(!m_refData)