update wx.IconBundle methods and docstrings

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@45420 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2007-04-12 00:49:47 +00:00
parent c533405853
commit e1a4589263

View File

@@ -155,22 +155,53 @@ public:
~wxIconBundle(); ~wxIconBundle();
// adds the icon to the collection, if the collection already virtual bool IsOk() const;
// contains an icon with the same width and height, it is %pythoncode { def __nonzero__(self): return self.IsOk() }
// replaced
void AddIcon( const wxIcon& icon );
// adds all the icons contained in the file to the collection, DocDeclStr(
// if the collection already contains icons with the same void , AddIcon( const wxIcon& icon ),
// width and height, they are replaced "Adds the icon to the collection, if the collection already contains an
%Rename(AddIconFromFile,void, AddIcon( const wxString& file, long type )); icon with the same width and height, it is replaced", "");
// returns the icon with the given size; if no such icon exists, DocDeclStrName(
// returns the icon with size wxSYS_ICON_[XY]; if no such icon exists, void , AddIcon( const wxString& file, long type ),
// returns the first icon in the bundle "Adds all the icons contained in the file to the collection, if the
const wxIcon& GetIcon( const wxSize& size ) const; collection already contains icons with the same width and height, they
are replaced", "",
AddIconFromFile);
DocDeclStr(
const wxIcon& , GetIcon( const wxSize& size ) const,
"Returns the icon with the given size; if no such icon exists, returns
the icon with size wxSYS_ICON_[XY]; if no such icon exists, returns
the first icon in the bundle", "");
DocDeclStr(
wxIcon , GetIconOfExactSize(const wxSize& size) const,
"Returns the icon exactly of the specified size or wxNullIcon if no
icon of exactly given size are available.", "");
DocDeclStr(
size_t , GetIconCount() const,
"return the number of available icons", "");
DocDeclStr(
wxIcon , GetIconByIndex(size_t n) const,
"Return the icon at index (must be < GetIconCount())", "");
DocDeclStr(
bool , IsEmpty() const,
"Check if we have any icons at all", "");
%property(Icon, GetIcon, doc="See `GetIcon`");
}; };
//--------------------------------------------------------------------------- //---------------------------------------------------------------------------