X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6762286db6cf974817dead5b88bebf0e390dbb7e..3a61f5db2c1292d1f6cbfc5bff1edfbdf7b1fc99:/include/wx/osx/icon.h diff --git a/include/wx/osx/icon.h b/include/wx/osx/icon.h index 76113f7121..d552bf8995 100644 --- a/include/wx/osx/icon.h +++ b/include/wx/osx/icon.h @@ -50,6 +50,8 @@ public: void SetDepth(int d); void SetOk(bool isOk); + wxSize GetSize() const { return wxSize(GetWidth(), GetHeight()); } + WXHICON GetHICON() const; protected: @@ -58,6 +60,11 @@ protected: private: DECLARE_DYNAMIC_CLASS(wxIcon) + + bool LoadIconFromSystemResource(const wxString& resourceName, int desiredWidth, int desiredHeight); + bool LoadIconFromBundleResource(const wxString& resourceName, int desiredWidth, int desiredHeight); + bool LoadIconFromFile(const wxString& filename, int desiredWidth, int desiredHeight); + bool LoadIconAsBitmap(const wxString& filename, wxBitmapType flags = wxICON_DEFAULT_TYPE, int desiredWidth = -1, int desiredHeight = -1); }; class WXDLLIMPEXP_CORE wxICONResourceHandler: public wxBitmapHandler