X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/05adb9d2fdc40d8620730be490bf406b8e367cf8..77436c4cbac2269e564dc4fcf4494a58feca0af4:/include/wx/mac/menuitem.h?ds=sidebyside diff --git a/include/wx/mac/menuitem.h b/include/wx/mac/menuitem.h index 7e9fab32fb..cf7a2c57f2 100644 --- a/include/wx/mac/menuitem.h +++ b/include/wx/mac/menuitem.h @@ -56,6 +56,9 @@ public: virtual void Check(bool bDoCheck = TRUE); virtual bool IsChecked() const; + virtual void SetBitmap(const wxBitmap& bitmap) { m_bitmap = bitmap; } + virtual const wxBitmap& GetBitmap() const { return m_bitmap; } + #if wxUSE_ACCEL virtual wxAcceleratorEntry *GetAccel() const; #endif // wxUSE_ACCEL @@ -69,9 +72,11 @@ public: // menu handle depending on what we're int GetRealId() const; - static MacBuildMenuString(StringPtr outMacItemText, SInt16 *outMacShortcutChar , UInt8 *outMacModifiers , const char *inItemName , bool useShortcuts ) ; + static int MacBuildMenuString(StringPtr outMacItemText, SInt16 *outMacShortcutChar , UInt8 *outMacModifiers , const char *inItemName , bool useShortcuts ) ; private: + wxBitmap m_bitmap; // Bitmap for menuitem, if any + DECLARE_DYNAMIC_CLASS(wxMenuItem) };