/////////////////////////////////////////////////////////////////////////////
-// Name: icon.h
+// Name: wx/osx/icon.h
// Purpose: wxIcon class
// Author: Stefan Csomor
// Modified by:
void SetDepth(int d);
void SetOk(bool isOk);
+ wxSize GetSize() const { return wxSize(GetWidth(), GetHeight()); }
+
WXHICON GetHICON() const;
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