X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/dd9f7fea29e3f8bb61861f52984b7943512346ac..576f712776551bc0261005ff7a8c508d37481baa:/wxPython/src/_icon.i diff --git a/wxPython/src/_icon.i b/wxPython/src/_icon.i index 2fcaadd9e0..f43e09910b 100644 --- a/wxPython/src/_icon.i +++ b/wxPython/src/_icon.i @@ -20,10 +20,12 @@ //--------------------------------------------------------------------------- +MustHaveApp(wxIcon); + class wxIcon : public wxGDIObject { public: - wxIcon(const wxString& name, long flags, + wxIcon(const wxString& name, wxBitmapType type, int desiredWidth = -1, int desiredHeight = -1); ~wxIcon(); @@ -51,13 +53,15 @@ public: #ifndef __WXMAC__ - bool LoadFile(const wxString& name, long flags); + bool LoadFile(const wxString& name, wxBitmapType type); #endif // wxGDIImage methods #ifdef __WXMSW__ long GetHandle(); - void SetHandle(long handle); + %extend { + void SetHandle(long handle) { self->SetHandle((WXHANDLE)handle); } + } #endif bool Ok(); int GetWidth();