Added wxIconBundle and wxTopLevelWindow.SetIcons.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14889 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2002-04-01 20:33:16 +00:00
parent 726fc00ab9
commit 0e9b78ce36
7 changed files with 372 additions and 0 deletions

View File

@@ -21,6 +21,7 @@
#include <wx/fontmap.h>
#include <wx/fontutil.h>
#include <wx/dcbuffer.h>
#include <wx/iconbndl.h>
%}
//----------------------------------------------------------------------
@@ -268,6 +269,38 @@ public:
//---------------------------------------------------------------------------
class wxIconBundle
{
public:
// default constructor
wxIconBundle();
// initializes the bundle with the icon(s) found in the file
%name(wxIconBundleFromFile) wxIconBundle( const wxString& file, long type );
// initializes the bundle with a single icon
%name(wxIconBundleFromIcon)wxIconBundle( const wxIcon& icon );
~wxIconBundle();
// adds the icon to the collection, if the collection already
// contains an icon with the same width and height, it is
// replaced
void AddIcon( const wxIcon& icon );
// adds all the icons contained in the file to the collection,
// if the collection already contains icons with the same
// width and height, they are replaced
%name(AddIconFromFile)void AddIcon( const wxString& file, long type );
// 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
const wxIcon& GetIcon( const wxSize& size ) const;
};
//---------------------------------------------------------------------------
class wxCursor : public wxGDIObject
{
public: