X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f58f51637f1187dab5deec7199c7951969d44ad0..563d535e46e7516fd4e2334203dbe910398bfd88:/include/wx/mac/menuitem.h?ds=inline diff --git a/include/wx/mac/menuitem.h b/include/wx/mac/menuitem.h index 0a85aa3725..6a35c72294 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,12 @@ public: // menu handle depending on what we're int GetRealId() const; - static int MacBuildMenuString(StringPtr outMacItemText, SInt16 *outMacShortcutChar , UInt8 *outMacModifiers , const char *inItemName , bool useShortcuts ) ; + static int MacBuildMenuString(unsigned char* outMacItemText, wxInt16 *outMacShortcutChar , wxUint8 *outMacModifiers , const char *inItemName , bool useShortcuts ) ; private: + wxBitmap m_bitmap; // Bitmap for menuitem, if any + void* m_menu ; // the appropriate menu , may also be a system menu + DECLARE_DYNAMIC_CLASS(wxMenuItem) };