1 /////////////////////////////////////////////////////////////////////////////
3 // Purpose: interface of wxIconBundle
4 // Author: wxWidgets team
6 // Licence: wxWindows license
7 /////////////////////////////////////////////////////////////////////////////
13 This class contains multiple copies of an icon in different sizes,
14 see also wxDialog::SetIcons and
15 wxTopLevelWindow::SetIcons.
23 class wxIconBundle
: public wxGDIObject
31 wxIconBundle(const wxString
& file
, long type
);
32 wxIconBundle(const wxIcon
& icon
);
33 wxIconBundle(const wxIconBundle
& ic
);
43 Adds the icon to the collection; if the collection already
44 contains an icon with the same width and height, it is
45 replaced by the new one.
47 void AddIcon(const wxString
& file
, long type
);
48 void AddIcon(const wxIcon
& icon
);
53 Same as GetIcon( wxSize( size, size ) ).
55 wxIcon
GetIcon(const wxSize
& size
) const;
56 const wxIcon
GetIcon(wxCoord size
= -1) const;
60 Returns the icon with exactly the given size or @c wxNullIcon if this
61 size is not available.
63 wxIcon
GetIconOfExactSize(const wxSize
& size
) const;
66 Returns @true if the bundle doesn't contain any icons, @false otherwise (in
67 which case a call to GetIcon() with default
68 parameter should return a valid icon).
73 Assignment operator, using @ref overview_trefcount "reference counting".
75 wxIconBundle
operator =(const wxIconBundle
& ic
);
78 Equality operator. This returns @true if two icon bundles are equal.
80 bool operator ==(const wxIconBundle
& ic
);
87 wxIconBundle wxNullIconBundle
;