- // accessors
- wxList& GetItems() { return m_items; }
-
- void SetEventHandler(wxEvtHandler *handler) { m_eventHandler = handler; }
- wxEvtHandler *GetEventHandler() { return m_eventHandler; }
-
- void SetClientData( void* clientData ) { m_clientData = clientData; }
- void* GetClientData() const { return m_clientData; }
-
- // Updates the UI for a menu and all submenus recursively.
- // source is the object that has the update event handlers
- // defined for it. If NULL, the menu or associated window
- // will be used.
- void UpdateUI(wxEvtHandler* source = (wxEvtHandler*) NULL);
-
- wxMenuItem *FindItemForId( int id ) const { return FindItem( id ); }
-
- wxFunction GetCallback() const { return m_callback; }
- void Callback(const wxFunction func) { m_callback = func; }
- wxFunction m_callback;
-
-#ifdef WXWIN_COMPATIBILITY
-
- // compatibility: these functions are deprecated
- bool Enabled(int id) const { return IsEnabled(id); }
- bool Checked(int id) const { return IsChecked(id); }