wxBitmapBundle for wxMenuItem on Mac

This commit is contained in:
Alexander Koshelev
2022-02-03 11:18:34 +03:00
parent 27be2ed641
commit 337940f009
5 changed files with 89 additions and 7 deletions

View File

@@ -16,7 +16,7 @@
// ----------------------------------------------------------------------------
#include "wx/defs.h"
#include "wx/bitmap.h"
#include "wx/bmpbndl.h"
#include "wx/vector.h"
// ----------------------------------------------------------------------------
@@ -49,8 +49,8 @@ public:
void RemoveHiddenItems();
#endif // wxUSE_ACCEL
virtual void SetBitmap(const wxBitmap& bitmap) ;
virtual const wxBitmap& GetBitmap() const { return m_bitmap; }
virtual void SetBitmap(const wxBitmapBundle& bitmap) ;
virtual wxBitmap GetBitmap() const;
// Implementation only from now on.
@@ -64,7 +64,7 @@ public:
private:
void UncheckRadio() ;
wxBitmap m_bitmap; // Bitmap for menuitem, if any
wxBitmapBundle m_bitmap; // Bitmap for menuitem, if any
wxMenuItemImpl* m_peer;