X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/427c415b933075ab9be91d7116c6db80858e0b78..97d13342cc2ac77e21c38115cc6ebecac930f92a:/interface/wx/iconbndl.h?ds=sidebyside diff --git a/interface/wx/iconbndl.h b/interface/wx/iconbndl.h index 26fb8349bf..aecfe287f5 100644 --- a/interface/wx/iconbndl.h +++ b/interface/wx/iconbndl.h @@ -29,7 +29,14 @@ public: /** Initializes the bundle with the icon(s) found in the file. */ - wxIconBundle(const wxString& file, wxBitmapType type); + wxIconBundle(const wxString& file, wxBitmapType type = wxBITMAP_TYPE_ANY); + + /** + Initializes the bundle with the icon(s) found in the stream. + + @since 2.9.0 + */ + wxIconBundle(wxInputStream& stream, wxBitmapType type = wxBITMAP_TYPE_ANY); /** Initializes the bundle with a single icon. @@ -47,11 +54,20 @@ public: virtual ~wxIconBundle(); /** - Adds all the icons contained in the file to the bundle; if the collection - already contains icons with the same width and height, they are replaced - by the new ones. + Adds all the icons contained in the file to the bundle; if the + collection already contains icons with the same width and height, they + are replaced by the new ones. + */ + void AddIcon(const wxString& file, wxBitmapType type = wxBITMAP_TYPE_ANY); + + /** + Adds all the icons contained in the stream to the bundle; if the + collection already contains icons with the same width and height, they + are replaced by the new ones. + + @since 2.9.0 */ - void AddIcon(const wxString& file, wxBitmapType type); + void AddIcon(wxInputStream& stream, wxBitmapType type = wxBITMAP_TYPE_ANY); /** Adds the icon to the collection; if the collection already @@ -73,7 +89,7 @@ public: /** Same as @code GetIcon( wxSize( size, size ) ) @endcode. */ - const wxIcon GetIcon(wxCoord size = -1) const; + wxIcon GetIcon(wxCoord size = wxDefaultCoord) const; /** Returns the icon with exactly the given size or ::wxNullIcon if this @@ -91,7 +107,7 @@ public: /** Assignment operator, using @ref overview_refcount "reference counting". */ - wxIconBundle operator =(const wxIconBundle& ic); + wxIconBundle& operator=(const wxIconBundle& ic); /** Equality operator. This returns @true if two icon bundles are equal.