wxIconBundleThis 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::wxIconBundlewxIconBundle() 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::~wxIconBundle~wxIconBundle() Destructor.
wxIconBundle::AddIconvoid 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.
wxIconBundle::GetIconconst 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 ) ).
wxIconBundle::operator=const wxIconBundle& operator=(const wxIconBundle& ic) Assignment operator.
|