]> git.saurik.com Git - wxWidgets.git/commitdiff
Add wxIcon::GetSize() to wxIcon in wxOSX.
authorVadim Zeitlin <vadim@wxwidgets.org>
Sat, 23 Oct 2010 21:47:22 +0000 (21:47 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sat, 23 Oct 2010 21:47:22 +0000 (21:47 +0000)
This fixes the compilation errors under OS X after r65884 due to the lack of
this method there.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@65887 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/cocoa/icon.h
include/wx/osx/icon.h

index ebeb2975f819dd8810b250cc3b785a0278a6a899..3d1f3f86153e133f1f18135a8e32090fe75d4ed7 100644 (file)
@@ -48,6 +48,8 @@ public:
     int GetWidth() const;
     int GetHeight() const;
 
+    wxSize GetSize() const { return wxSize(GetWidth(), GetHeight()); }
+
     WX_NSImage GetNSImage() const;
     bool CreateFromXpm(const char* const* bits);
 
index 1728e07ec5fa2012b1c3ea21c95f4b148e873722..d552bf89950237c34524b178eb35c343d8376812 100644 (file)
@@ -50,6 +50,8 @@ public:
     void SetDepth(int d);
     void SetOk(bool isOk);
 
+    wxSize GetSize() const { return wxSize(GetWidth(), GetHeight()); }
+
     WXHICON GetHICON() const;
 
 protected: