// Licence: wxWindows licence
/////////////////////////////////////////////////////////////////////////////
-// ============================================================================
-// declarations
-// ============================================================================
-
-// ----------------------------------------------------------------------------
-// headers
-// ----------------------------------------------------------------------------
-
// For compilers that support precompilation, includes "wx.h".
#include "wx/wxprec.h"
#ifndef WX_PRECOMP
#include "wx/settings.h"
- #include "wx/icon.h"
#include "wx/log.h"
#include "wx/intl.h"
#include "wx/bitmap.h"
#endif
#include "wx/arrimpl.cpp"
-
WX_DEFINE_OBJARRAY(wxIconArray)
IMPLEMENT_DYNAMIC_CLASS(wxIconBundle, wxGDIObject)
-#define M_ICONBUNDLEDATA ((wxIconBundleRefData *)m_refData)
+#define M_ICONBUNDLEDATA static_cast<wxIconBundleRefData*>(m_refData)
// ----------------------------------------------------------------------------
// wxIconBundleRefData
virtual bool IsOk() const { return !m_icons.empty(); }
-protected:
wxIconArray m_icons;
-
- friend class wxIconBundle;
};
// ============================================================================
// ============================================================================
wxIconBundle::wxIconBundle()
- : wxGDIObject()
{
}
AddIcon(file, type);
}
-wxIconBundle::wxIconBundle(const wxIconBundle& icon)
- : wxGDIObject()
-{
- Ref(icon);
-}
-
wxIconBundle::wxIconBundle(const wxIcon& icon)
: wxGDIObject()
{
}
}
-#ifdef __WXMAC__
+#if defined( __WXMAC__ ) && wxOSX_USE_CARRBON
return wxIcon(iconBest.GetHICON(), size);
#else
return iconBest;
return M_ICONBUNDLEDATA->m_icons[n];
}
-
-