X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/801aa1782caa8f612fec05278d6c63a1aa6a9e6a..8bedcdce08e1575b74250d2ebac4355a687ccf8d:/include/wx/gtk/menu.h?ds=sidebyside diff --git a/include/wx/gtk/menu.h b/include/wx/gtk/menu.h index f571fe084e..3638cee90e 100644 --- a/include/wx/gtk/menu.h +++ b/include/wx/gtk/menu.h @@ -92,11 +92,15 @@ public: // implementation only wxList& GetMenus() { return m_menus; } + + void SetInvokingWindow( wxWindow *win ); + void UnsetInvokingWindow( wxWindow *win ); GtkAccelGroup *m_accel; GtkItemFactory *m_factory; wxList m_menus; GtkWidget *m_menubar; + long m_style; }; //----------------------------------------------------------------------------- @@ -109,7 +113,9 @@ class wxMenu : public wxEvtHandler public: wxMenu( const wxString& title = wxEmptyString, - const wxFunction func = (wxFunction) NULL ); + const wxFunction func = (wxFunction) NULL, + long style = 0); + wxMenu( long style ); ~wxMenu(); // operations @@ -179,7 +185,13 @@ public: GtkAccelGroup *m_accel; GtkItemFactory *m_factory; -private: + // used by wxMenuBar + inline long GetStyle(void) const { return m_style; } + private: + // common code for both constructors: + void Init( const wxString& title, + const wxFunction func, + long style); wxString m_title; wxList m_items; @@ -187,6 +199,7 @@ private: wxFunction m_callback; wxEvtHandler *m_eventHandler; void *m_clientData; + long m_style; }; #endif // __GTKMENUH__