X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/717a57c2fabb054c8f00dc5dae70df1d03cfe532..e22c27b6bdd2745ac5fa49d20ea14d16f8bc0110:/include/wx/menu.h?ds=sidebyside diff --git a/include/wx/menu.h b/include/wx/menu.h index 440747fe17..83576de1cf 100644 --- a/include/wx/menu.h +++ b/include/wx/menu.h @@ -57,9 +57,6 @@ public: // menu construction // ----------------- - // append a separator to the menu - void AppendSeparator() { Append(wxID_SEPARATOR, wxEmptyString); } - // append a normal item to the menu void Append(int id, const wxString& text, @@ -69,6 +66,9 @@ public: DoAppend(wxMenuItem::New((wxMenu *)this, id, text, help, isCheckable)); } + // append a separator to the menu + void AppendSeparator() { Append(wxID_SEPARATOR, wxEmptyString); } + // append a submenu void Append(int id, const wxString& text, @@ -182,6 +182,11 @@ public: wxFunction m_callback; #endif // WXWIN_COMPATIBILITY + // unlike FindItem(), this function doesn't recurse but only looks through + // our direct children and also may return the index of the found child if + // pos != NULL + wxMenuItem *FindChildItem(int id, size_t *pos = NULL) const; + protected: // virtuals to override in derived classes // --------------------------------------- @@ -199,11 +204,6 @@ protected: // common part of all ctors void Init(long style); - // unlike FindItem(), this function doesn't recurse but only looks through - // our direct children and also may return the index of the found child if - // pos != NULL - wxMenuItem *FindChildItem(int id, size_t *pos = NULL) const; - protected: wxMenuBar *m_menuBar; // menubar we belong to or NULL wxMenu *m_menuParent; // parent menu or NULL