1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: interface of wxIconBundle
4 // Author: wxWidgets team
6 // Licence: wxWindows license
7 /////////////////////////////////////////////////////////////////////////////
12 This class contains multiple copies of an icon in different sizes,
13 see also wxDialog::SetIcons and
14 wxTopLevelWindow::SetIcons.
22 class wxIconBundle
: public wxGDIObject
30 wxIconBundle(const wxString
& file
, wxBitmapType type
);
31 wxIconBundle(const wxIcon
& icon
);
32 wxIconBundle(const wxIconBundle
& ic
);
38 virtual ~wxIconBundle();
42 Adds the icon to the collection; if the collection already
43 contains an icon with the same width and height, it is
44 replaced by the new one.
46 void AddIcon(const wxString
& file
, wxBitmapType type
);
47 void AddIcon(const wxIcon
& icon
);
52 Same as GetIcon( wxSize( size, size ) ).
54 wxIcon
GetIcon(const wxSize
& size
) const;
55 const wxIcon
GetIcon(wxCoord size
= -1) const;
59 Returns the icon with exactly the given size or @c wxNullIcon if this
60 size is not available.
62 wxIcon
GetIconOfExactSize(const wxSize
& size
) const;
65 Returns @true if the bundle doesn't contain any icons, @false otherwise (in
66 which case a call to GetIcon() with default
67 parameter should return a valid icon).
72 Assignment operator, using @ref overview_trefcount "reference counting".
74 wxIconBundle
operator =(const wxIconBundle
& ic
);
77 Equality operator. This returns @true if two icon bundles are equal.
79 bool operator ==(const wxIconBundle
& ic
);
84 An empty wxIconBundle.
86 wxIconBundle wxNullIconBundle
;