X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/6762286db6cf974817dead5b88bebf0e390dbb7e..63415ba9f5331b2b96215f8a570e05623ea6ec42:/include/wx/osx/icon.h diff --git a/include/wx/osx/icon.h b/include/wx/osx/icon.h index 76113f7121..d0b2d80be8 100644 --- a/include/wx/osx/icon.h +++ b/include/wx/osx/icon.h @@ -1,5 +1,5 @@ ///////////////////////////////////////////////////////////////////////////// -// Name: icon.h +// Name: wx/osx/icon.h // Purpose: wxIcon class // Author: Stefan Csomor // Modified by: @@ -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