$szTitle = "wxiconbundle"; include "./_header.inc"; ?>
this class contains multiple copies of an icon in different sizes, see also wxdialog::seticons and wxtoplevelwindow::seticons.
derived from
no base class
members
wxiconbundle::wxiconbundle
wxiconbundle::~wxiconbundle
wxiconbundle::addicon
wxiconbundle::geticon
wxiconbundle::operator=
wxiconbundle()
default constructor.
wxiconbundle(const wxstring& file, long type)
initializes the bundle with the icon(s) found in the file.
wxiconbundle(const wxicon& icon)
initializes the bundle with a single icon.
wxiconbundle(const wxiconbundle& ic)
copy constructor.
~wxiconbundle()
destructor.
void addicon(const wxstring& file, long type)
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 wxicon& icon)
adds the icon to the collection; if the collection already contains an icon with the same width and height, it is replaced by the new one.
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_x/wxsys_icon_y; if no such icon exists, returns the first icon in the bundle. if size = wxsize( -1, -1 ), returns the icon with size wxsys_icon_x/wxsys_icon_y.
const wxicon& geticon(wxcoord size = -1) const
same as geticon( wxsize( size, size ) ).
const wxiconbundle& operator=(const wxiconbundle& ic)
assignment operator.
include "./_footer.inc"; ?>