<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/> <title>gtkmm: Gtk::Menu Class Reference</title> <link href="tabs.css" rel="stylesheet" type="text/css"/> <link href="doxygen.css" rel="stylesheet" type="text/css"/> </head> <body> <!-- Generated by Doxygen 1.7.3 --> <div id="top"> <div id="titlearea"> <table cellspacing="0" cellpadding="0"> <tbody> <tr style="height: 56px;"> <td style="padding-left: 0.5em;"> <div id="projectname">gtkmm <span id="projectnumber">2.24.4</span></div> </td> </tr> </tbody> </table> </div> <div id="navrow1" class="tabs"> <ul class="tablist"> <li><a href="index.html"><span>Main Page</span></a></li> <li><a href="pages.html"><span>Related Pages</span></a></li> <li><a href="modules.html"><span>Modules</span></a></li> <li><a href="namespaces.html"><span>Namespaces</span></a></li> <li class="current"><a href="annotated.html"><span>Classes</span></a></li> </ul> </div> <div id="navrow2" class="tabs2"> <ul class="tablist"> <li><a href="annotated.html"><span>Class List</span></a></li> <li><a href="classes.html"><span>Class Index</span></a></li> <li><a href="inherits.html"><span>Class Hierarchy</span></a></li> <li><a href="functions.html"><span>Class Members</span></a></li> </ul> </div> <div id="nav-path" class="navpath"> <ul> <li class="navelem"><a class="el" href="namespaceGtk.html">Gtk</a> </li> <li class="navelem"><a class="el" href="classGtk_1_1Menu.html">Menu</a> </li> </ul> </div> </div> <div class="header"> <div class="summary"> <a href="#pub-types">Public Types</a> | <a href="#pub-methods">Public Member Functions</a> | <a href="#pro-types">Protected Types</a> | <a href="#pro-methods">Protected Member Functions</a> | <a href="#related">Related Functions</a> </div> <div class="headertitle"> <h1>Gtk::Menu Class Reference<div class="ingroups"><a class="el" href="group__Widgets.html">Widgets</a> | <a class="el" href="group__Menus.html">Menu classes</a></div></h1> </div> </div> <div class="contents"> <!-- doxytag: class="Gtk::Menu" --><!-- doxytag: inherits="Gtk::MenuShell" --> <p>A drop-down menu consisting of <a class="el" href="classGtk_1_1MenuItem.html" title="Child item for menus.">Gtk::MenuItem</a> objects which can be navigated and activated by the user to perform application functions. <a href="#_details">More...</a></p> <div class="dynheader"> Inheritance diagram for Gtk::Menu:</div> <div class="dyncontent"> <div class="center"><img src="classGtk_1_1Menu__inherit__graph.png" border="0" usemap="#Gtk_1_1Menu_inherit__map" alt="Inheritance graph"/></div> <map name="Gtk_1_1Menu_inherit__map" id="Gtk_1_1Menu_inherit__map"> <area shape="rect" id="node19" href="classGtk_1_1RecentChooserMenu.html" title="RecentChooserMenu is a widget suitable for displaying recently used files inside a menu..." alt="" coords="45,624,227,653"/><area shape="rect" id="node2" href="classGtk_1_1MenuShell.html" title="The abstract base class for Gtk::Menu and Gtk::MenuBar." alt="" coords="77,469,195,499"/><area shape="rect" id="node4" href="classGtk_1_1Container.html" title="Abstract container class." alt="" coords="79,392,193,421"/><area shape="rect" id="node6" href="classGtk_1_1Widget.html" title="Abstract Widget (Base class for all widgets)" alt="" coords="89,315,183,344"/><area shape="rect" id="node8" href="classGtk_1_1Object.html" title="Gtk::Object is the base class for all widgets, and for a few non-widget objects such as Gtk::Adjustme..." alt="" coords="21,237,115,267"/><area shape="rect" id="node10" href="../../../glibmm-2.4/reference/html/classGlib_1_1Object.html" title="Glib::Object" alt="" coords="21,160,115,189"/><area shape="rect" id="node12" href="../../../glibmm-2.4/reference/html/classGlib_1_1ObjectBase.html" title="Glib::ObjectBase" alt="" coords="5,83,131,112"/><area shape="rect" id="node14" href="../../../libsigc++-2.0/reference/html/structsigc_1_1trackable.html" title="sigc::trackable" alt="" coords="11,5,125,35"/><area shape="rect" id="node16" href="classAtk_1_1Implementor.html" title="Atk::Implementor" alt="" coords="139,237,272,267"/></map> <center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div> <div class="dynheader"> Collaboration diagram for Gtk::Menu:</div> <div class="dyncontent"> <div class="center"><img src="classGtk_1_1Menu__coll__graph.png" border="0" usemap="#Gtk_1_1Menu_coll__map" alt="Collaboration graph"/></div> <map name="Gtk_1_1Menu_coll__map" id="Gtk_1_1Menu_coll__map"> <area shape="rect" id="node2" href="classGtk_1_1MenuShell.html" title="The abstract base class for Gtk::Menu and Gtk::MenuBar." alt="" coords="2799,89,2916,119"/><area shape="rect" id="node4" href="classGtk_1_1Container.html" title="Abstract container class." alt="" coords="900,43,1015,72"/><area shape="rect" id="node20" href="classGtk_1_1Bin.html" title="A container with just one child." alt="" coords="1955,77,2027,107"/><area shape="rect" id="node6" href="classGtk_1_1Widget.html" title="Abstract Widget (Base class for all widgets)" alt="" coords="681,43,775,72"/><area shape="rect" id="node8" href="classGtk_1_1Object.html" title="Gtk::Object is the base class for all widgets, and for a few non-widget objects such as Gtk::Adjustme..." alt="" coords="516,5,609,35"/><area shape="rect" id="node10" href="../../../glibmm-2.4/reference/html/classGlib_1_1Object.html" title="Glib::Object" alt="" coords="351,5,444,35"/><area shape="rect" id="node12" href="../../../glibmm-2.4/reference/html/classGlib_1_1ObjectBase.html" title="Glib::ObjectBase" alt="" coords="172,5,297,35"/><area shape="rect" id="node14" href="../../../libsigc++-2.0/reference/html/structsigc_1_1trackable.html" title="sigc::trackable" alt="" coords="5,5,120,35"/><area shape="rect" id="node16" href="classAtk_1_1Implementor.html" title="Atk::Implementor" alt="" coords="496,59,629,88"/><area shape="rect" id="node18" href="classGtk_1_1Window.html" title="Toplevel Window This represents all widgets which are physical windows controlled by the window manag..." alt="" coords="2503,89,2601,119"/><area shape="rect" id="node23" href="../../../glibmm-2.4/reference/html/classGlib_1_1RefPtr.html" title="Glib::RefPtr\< AccelGroup \>" alt="" coords="1893,131,2088,160"/><area shape="rect" id="node25" href="../../../glibmm-2.4/reference/html/classGlib_1_1RefPtr.html" title="Glib::RefPtr\< T_CppObject \>" alt="" coords="857,131,1057,160"/><area shape="rect" id="node27" href="classGtk_1_1Menu__Helpers_1_1MenuList.html" title="Gtk::Menu_Helpers::MenuList" alt="" coords="2448,165,2656,195"/><area shape="rect" id="node29" href="../../../glibmm-2.4/reference/html/classGlib_1_1HelperList.html" title="Glib::HelperList\< MenuItem, const Element, Glib::List_Cpp_Iterator\< GtkMenuItem, MenuItem \> \>" alt="" coords="1667,184,2315,213"/><area shape="rect" id="node31" href="../../../glibmm-2.4/reference/html/classGlib_1_1HelperList.html" title="Glib::HelperList\< class, class, class \>" alt="" coords="828,184,1087,213"/></map> <center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div> <p><a href="classGtk_1_1Menu-members.html">List of all members.</a></p> <table class="memberdecls"> <tr><td colspan="2"><h2><a name="pub-types"></a> Public Types</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top">typedef <a class="elRef" href="../../../libsigc++-2.0/reference/html/classsigc_1_1slot.html">sigc::slot</a>< void, int <br class="typebreak"/> &, int&, bool& > </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1Menu.html#ac8978c6bcd462454c19e70a7f8805ea6">SlotPositionCalc</a></td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">For instance, void on_popup_menu_position(int& x, int& y, bool& push_in);. <a href="#ac8978c6bcd462454c19e70a7f8805ea6"></a><br/></td></tr> <tr><td colspan="2"><h2><a name="pub-methods"></a> Public Member Functions</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top">virtual </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1Menu.html#a813c1f65cc355c32c9eb59227e3fe01e">~Menu</a> ()</td></tr> <tr><td class="memItemLeft" align="right" valign="top">GtkMenu* </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1Menu.html#a08434c6b137ce53eb939b09d577aa9bb">gobj</a> ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Provides access to the underlying C GtkObject. <a href="#a08434c6b137ce53eb939b09d577aa9bb"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">const GtkMenu* </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1Menu.html#a943271a828e8bfa829c6bf4ed0060203">gobj</a> () const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Provides access to the underlying C GtkObject. <a href="#a943271a828e8bfa829c6bf4ed0060203"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1Menu.html#afd6add4a7ef105f29efa125bb5ef40cf">Menu</a> ()</td></tr> <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1Menu.html#a6501cd09e10a13f18249202571f02a78">popup</a> (<a class="el" href="classGtk_1_1MenuShell.html">MenuShell</a>& parent_menu_shell, <a class="el" href="classGtk_1_1MenuItem.html">MenuItem</a>& parent_menu_item, const <a class="elRef" href="../../../libsigc++-2.0/reference/html/classsigc_1_1slot.html">SlotPositionCalc</a>& slot, guint button, guint32 activate_time)</td></tr> <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1Menu.html#a4c66c33c8fdfe3e837b1fcf20f302cf7">popup</a> (const <a class="elRef" href="../../../libsigc++-2.0/reference/html/classsigc_1_1slot.html">SlotPositionCalc</a>& position_calc_slot, guint button, guint32 activate_time)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Displays a menu and makes it available for selection. <a href="#a4c66c33c8fdfe3e837b1fcf20f302cf7"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1Menu.html#adfcc6dd5dbc296bf8cdda4556b572784">popup</a> (guint button, guint32 activate_time)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Displays a menu and makes it available for selection. <a href="#adfcc6dd5dbc296bf8cdda4556b572784"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1Menu.html#a84f2f1e74ba1a6316077a4dcee13ed87">reposition</a> ()</td></tr> <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1Menu.html#a976bd97bc3879ed371cf9ef178a40543">popdown</a> ()</td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classGtk_1_1MenuItem.html">MenuItem</a>* </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1Menu.html#ab7ea3340aadb2c3afcedcd65ac6d3398">get_active</a> ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the selected menu item from the menu. <a href="#ab7ea3340aadb2c3afcedcd65ac6d3398"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">const <a class="el" href="classGtk_1_1MenuItem.html">MenuItem</a>* </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1Menu.html#aacbd92ec63b1b8d98d90429f0dcdfa2b">get_active</a> () const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the selected menu item from the menu. <a href="#aacbd92ec63b1b8d98d90429f0dcdfa2b"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1Menu.html#a392d8010777bde0686aa904b73db265a">set_active</a> (guint index)</td></tr> <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1Menu.html#a82f9e1d2e501b7cacec74bb9e3c7e4ce">set_accel_group</a> (const <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a>< <a class="el" href="classGtk_1_1AccelGroup.html">AccelGroup</a> >& accel_group)</td></tr> <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1Menu.html#a7202ceac91d65cbf09def78c4f7e6628">unset_accel_group</a> ()</td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a>< <a class="el" href="classGtk_1_1AccelGroup.html">AccelGroup</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1Menu.html#a7bdd6c75710d48e4655bb28a4fb822cd">get_accel_group</a> ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight"><em>menu</em> a <a class="el" href="classGtk_1_1Menu.html" title="A drop-down menu consisting of Gtk::MenuItem objects which can be navigated and activated by the user...">Gtk::Menu</a> <a href="#a7bdd6c75710d48e4655bb28a4fb822cd"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a>< const <a class="el" href="classGtk_1_1AccelGroup.html">AccelGroup</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1Menu.html#aa9620d30b2f77260e826f785591624a2">get_accel_group</a> () const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight"><em>menu</em> a <a class="el" href="classGtk_1_1Menu.html" title="A drop-down menu consisting of Gtk::MenuItem objects which can be navigated and activated by the user...">Gtk::Menu</a> <a href="#aa9620d30b2f77260e826f785591624a2"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1Menu.html#aa67f1f54bd72aa580e87150c5860a4b3">set_accel_path</a> (const <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a>& accel_path)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Sets an accelerator path for this menu from which accelerator paths for its immediate children, its menu items, can be constructed. <a href="#aa67f1f54bd72aa580e87150c5860a4b3"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1Menu.html#af252432d136900f11e622e798d352ba1">get_accel_path</a> () const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Retrieves the accelerator path set on the menu. <a href="#af252432d136900f11e622e798d352ba1"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1Menu.html#a56101a2dfae44d7b5ae4220b7acac006">detach</a> ()</td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classGtk_1_1Widget.html">Widget</a>* </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1Menu.html#a13e438d2b9e678178ab83eb20f4ab3fb">get_attach_widget</a> ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the <a class="el" href="classGtk_1_1Widget.html" title="Abstract Widget (Base class for all widgets)">Gtk::Widget</a> that the menu is attached to. <a href="#a13e438d2b9e678178ab83eb20f4ab3fb"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">const <a class="el" href="classGtk_1_1Widget.html">Widget</a>* </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1Menu.html#ac84c0e8179c5d0740137433019364c0a">get_attach_widget</a> () const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the <a class="el" href="classGtk_1_1Widget.html" title="Abstract Widget (Base class for all widgets)">Gtk::Widget</a> that the menu is attached to. <a href="#ac84c0e8179c5d0740137433019364c0a"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1Menu.html#ab6c92b23e8efc7524882ca11ef956178">set_tearoff_state</a> (bool torn_off=true)</td></tr> <tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1Menu.html#a2c77bbf05cb9af10596df8f4eb15ed71">get_tearoff_state</a> () const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Returns whether the menu is torn off. <a href="#a2c77bbf05cb9af10596df8f4eb15ed71"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1Menu.html#a53cd143ce2b01b865fcf0171691623a8">set_title</a> (const <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a>& title)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Sets the title string for the menu. <a href="#a53cd143ce2b01b865fcf0171691623a8"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1Menu.html#a8c2228e776a0f1f8e3a3328c7e5f83a6">unset_title</a> ()</td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1Menu.html#a374e0a72b4595a01489409e48e7159cf">get_title</a> () const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Returns the title of the menu. <a href="#a374e0a72b4595a01489409e48e7159cf"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1Menu.html#a7ee89975364a523c4662a188c02eaf28">set_screen</a> (const <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a>< <a class="el" href="classGdk_1_1Screen.html">Gdk::Screen</a> >& screen)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Sets the <a class="el" href="classGdk_1_1Screen.html" title="Object representing a physical screen Gdk::Screen objects are the GDK representation of a physical sc...">Gdk::Screen</a> on which the menu will be displayed. <a href="#a7ee89975364a523c4662a188c02eaf28"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1Menu.html#a553a507018a5b411c6e839d710cd5805">attach</a> (<a class="el" href="classGtk_1_1Widget.html">Gtk::Widget</a>& child, guint left_attach, guint right_attach, guint top_attach, guint bottom_attach)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Adds a new <a class="el" href="classGtk_1_1MenuItem.html" title="Child item for menus.">Gtk::MenuItem</a> to a (table) menu. <a href="#a553a507018a5b411c6e839d710cd5805"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1Menu.html#a3a407327705ee7a135674fb7d75732a4">set_monitor</a> (int monitor_num)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Informs GTK+ on which monitor a menu should be popped up. <a href="#a3a407327705ee7a135674fb7d75732a4"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">int </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1Menu.html#aa172c1772304904c1f505f203a02014a">get_monitor</a> () const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Retrieves the number of the monitor on which to show the menu. <a href="#aa172c1772304904c1f505f203a02014a"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1Menu.html#ab4c6d8d9f9c915c1fab7344440cb6e7e">reorder_child</a> (const <a class="el" href="classGtk_1_1MenuItem.html">MenuItem</a>& child, int position)</td></tr> <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1Menu.html#ad605265ee9bc5ead53d9eb1bb1edbb06">set_reserve_toggle_size</a> (bool reserve_toggle_size=true)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Sets whether the menu should reserve space for drawing toggles or icons, regardless of their actual presence. <a href="#ad605265ee9bc5ead53d9eb1bb1edbb06"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">bool </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1Menu.html#a43cf58cc993b1faa96ac44cf65baf7e9">get_reserve_toggle_size</a> () const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Returns whether the menu reserves space for toggles and icons, regardless of their actual presence. <a href="#a43cf58cc993b1faa96ac44cf65baf7e9"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1PropertyProxy.html">Glib::PropertyProxy</a>< int > </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1Menu.html#ada09aade05e5a5402b9f712a32d92ac9">property_active</a> ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">The currently selected menu item. <a href="#ada09aade05e5a5402b9f712a32d92ac9"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1PropertyProxy__ReadOnly.html">Glib::PropertyProxy_ReadOnly</a>< int > </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1Menu.html#a5e673fc6cad2dd2c49711f02625c339a">property_active</a> () const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">The currently selected menu item. <a href="#a5e673fc6cad2dd2c49711f02625c339a"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1PropertyProxy.html">Glib::PropertyProxy</a><br class="typebreak"/> < <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a>< <a class="el" href="classGtk_1_1AccelGroup.html">AccelGroup</a> > > </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1Menu.html#a3072a6188c6ef0c63d03c6f898d333c0">property_accel_group</a> ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">The accel group holding accelerators for the menu. <a href="#a3072a6188c6ef0c63d03c6f898d333c0"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1PropertyProxy__ReadOnly.html">Glib::PropertyProxy_ReadOnly</a><br class="typebreak"/> < <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a>< <a class="el" href="classGtk_1_1AccelGroup.html">AccelGroup</a> > > </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1Menu.html#a873b2f97047e59d71a23813fa7ea5b8a">property_accel_group</a> () const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">The accel group holding accelerators for the menu. <a href="#a873b2f97047e59d71a23813fa7ea5b8a"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1PropertyProxy.html">Glib::PropertyProxy</a><br class="typebreak"/> < <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1Menu.html#a1fb492f69c725f632a22fcaaa5d31f7e">property_accel_path</a> ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">An accel path used to conveniently construct accel paths of child items. <a href="#a1fb492f69c725f632a22fcaaa5d31f7e"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1PropertyProxy__ReadOnly.html">Glib::PropertyProxy_ReadOnly</a><br class="typebreak"/> < <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1Menu.html#a41c2b3ae8564c236d0c832a3487be414">property_accel_path</a> () const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">An accel path used to conveniently construct accel paths of child items. <a href="#a41c2b3ae8564c236d0c832a3487be414"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1PropertyProxy.html">Glib::PropertyProxy</a>< <a class="el" href="classGtk_1_1Widget.html">Widget</a>* > </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1Menu.html#a73b9b6c94d996d0cbe9ec7b7c23e3745">property_attach_widget</a> ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">The widget the menu is attached to. <a href="#a73b9b6c94d996d0cbe9ec7b7c23e3745"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1PropertyProxy__ReadOnly.html">Glib::PropertyProxy_ReadOnly</a><br class="typebreak"/> < <a class="el" href="classGtk_1_1Widget.html">Widget</a>* > </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1Menu.html#a585852d13ff273a5da337ecb62b7249c">property_attach_widget</a> () const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">The widget the menu is attached to. <a href="#a585852d13ff273a5da337ecb62b7249c"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1PropertyProxy.html">Glib::PropertyProxy</a><br class="typebreak"/> < <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1Menu.html#a0217b7e49e4412f76fc5f739c3a91a26">property_tearoff_title</a> ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">A title that may be displayed by the window manager when this menu is torn-off. <a href="#a0217b7e49e4412f76fc5f739c3a91a26"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1PropertyProxy__ReadOnly.html">Glib::PropertyProxy_ReadOnly</a><br class="typebreak"/> < <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> > </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1Menu.html#a7650e443cfecefc39a3c39b5bc0696fc">property_tearoff_title</a> () const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">A title that may be displayed by the window manager when this menu is torn-off. <a href="#a7650e443cfecefc39a3c39b5bc0696fc"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1PropertyProxy.html">Glib::PropertyProxy</a>< bool > </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1Menu.html#af8f0caa148bd2910971533f67dd827e8">property_tearoff_state</a> ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">A boolean that indicates whether the menu is torn-off. <a href="#af8f0caa148bd2910971533f67dd827e8"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1PropertyProxy__ReadOnly.html">Glib::PropertyProxy_ReadOnly</a><br class="typebreak"/> < bool > </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1Menu.html#a3a5723694c651d1582abbdc41291a164">property_tearoff_state</a> () const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">A boolean that indicates whether the menu is torn-off. <a href="#a3a5723694c651d1582abbdc41291a164"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1PropertyProxy.html">Glib::PropertyProxy</a>< int > </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1Menu.html#a96c0c88debdd88a4ebb66b2e8f60796c">property_monitor</a> ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">The monitor the menu will be popped up on. <a href="#a96c0c88debdd88a4ebb66b2e8f60796c"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1PropertyProxy__ReadOnly.html">Glib::PropertyProxy_ReadOnly</a>< int > </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1Menu.html#aef6b0a7edd91597b479bffa8898a0196">property_monitor</a> () const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">The monitor the menu will be popped up on. <a href="#aef6b0a7edd91597b479bffa8898a0196"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1PropertyProxy.html">Glib::PropertyProxy</a>< bool > </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1Menu.html#ad351d23325474a949122706120844748">property_reserve_toggle_size</a> ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">A boolean that indicates whether the menu reserves space for toggles and icons. <a href="#ad351d23325474a949122706120844748"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1PropertyProxy__ReadOnly.html">Glib::PropertyProxy_ReadOnly</a><br class="typebreak"/> < bool > </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1Menu.html#a0c096fb96456d97a380ce75ba8a6ab4a">property_reserve_toggle_size</a> () const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">A boolean that indicates whether the menu reserves space for toggles and icons. <a href="#a0c096fb96456d97a380ce75ba8a6ab4a"></a><br/></td></tr> <tr><td colspan="2"><h2><a name="pro-types"></a> Protected Types</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top">typedef void(* </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1Menu.html#ad65fee40d0c95bab85928e0d737f4e1f">GtkMenuDetachFunc</a> )(GtkWidget* attach_widget, GtkMenu* menu)</td></tr> <tr><td colspan="2"><h2><a name="pro-methods"></a> Protected Member Functions</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1Menu.html#abbeea8311b50e1c2c180d83206431d71">attach_to_widget</a> (<a class="el" href="classGtk_1_1Widget.html">Widget</a>& attach_widget, <a class="el" href="classGtk_1_1Menu.html#ad65fee40d0c95bab85928e0d737f4e1f">GtkMenuDetachFunc</a> detacher)</td></tr> <tr><td class="memItemLeft" align="right" valign="top">void </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1Menu.html#a192b045df4c37eaff1277e3589960ac7">attach_to_widget</a> (<a class="el" href="classGtk_1_1Widget.html">Widget</a>& attach_widget)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Attaches the menu to the widget. <a href="#a192b045df4c37eaff1277e3589960ac7"></a><br/></td></tr> <tr><td colspan="2"><h2><a name="related"></a> Related Functions</h2></td></tr> <tr><td colspan="2">(Note that these are not member functions.) <br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classGtk_1_1Menu.html">Gtk::Menu</a>* </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1Menu.html#a553dba6e5634da8fcf6381bc83bbc20f">wrap</a> (GtkMenu* object, bool take_copy=false)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">A <a class="elRef" href="../../../glibmm-2.4/reference/html/namespaceGlib.html#a671306f4a3a0cae5ab4d7a9d54886592">Glib::wrap()</a> method for this object. <a href="#a553dba6e5634da8fcf6381bc83bbc20f"></a><br/></td></tr> </table> <hr/><a name="_details"></a><h2>Detailed Description</h2> <div class="textblock"><p>A drop-down menu consisting of <a class="el" href="classGtk_1_1MenuItem.html" title="Child item for menus.">Gtk::MenuItem</a> objects which can be navigated and activated by the user to perform application functions. </p> <p>Menus are normally placed inside a <a class="el" href="classGtk_1_1MenuBar.html" title="A standard menu bar which usually holds Gtk::Menu submenu items.">Gtk::MenuBar</a> or another <a class="el" href="classGtk_1_1MenuItem.html" title="Child item for menus.">MenuItem</a> as a sub menu. A <a class="el" href="classGtk_1_1Menu.html" title="A drop-down menu consisting of Gtk::MenuItem objects which can be navigated and activated by the user...">Menu</a> can also be popped up, for instance as a right-click context menu, by calling the <a class="el" href="classGtk_1_1Menu.html#a6501cd09e10a13f18249202571f02a78">popup()</a> method.</p> </div><hr/><h2>Member Typedef Documentation</h2> <a class="anchor" id="ad65fee40d0c95bab85928e0d737f4e1f"></a><!-- doxytag: member="Gtk::Menu::GtkMenuDetachFunc" ref="ad65fee40d0c95bab85928e0d737f4e1f" args=")(GtkWidget *attach_widget, GtkMenu *menu)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">typedef void(* <a class="el" href="classGtk_1_1Menu.html#ad65fee40d0c95bab85928e0d737f4e1f">Gtk::Menu::GtkMenuDetachFunc</a>)(GtkWidget* attach_widget, GtkMenu* menu)<code> [protected]</code></td> </tr> </table> </div> <div class="memdoc"> </div> </div> <a class="anchor" id="ac8978c6bcd462454c19e70a7f8805ea6"></a><!-- doxytag: member="Gtk::Menu::SlotPositionCalc" ref="ac8978c6bcd462454c19e70a7f8805ea6" args="" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">typedef <a class="elRef" href="../../../libsigc++-2.0/reference/html/classsigc_1_1slot.html">sigc::slot</a><void, int&, int&, bool&> <a class="elRef" href="../../../libsigc++-2.0/reference/html/classsigc_1_1slot.html">Gtk::Menu::SlotPositionCalc</a></td> </tr> </table> </div> <div class="memdoc"> <p>For instance, void on_popup_menu_position(int& x, int& y, bool& push_in);. </p> </div> </div> <hr/><h2>Constructor & Destructor Documentation</h2> <a class="anchor" id="a813c1f65cc355c32c9eb59227e3fe01e"></a><!-- doxytag: member="Gtk::Menu::~Menu" ref="a813c1f65cc355c32c9eb59227e3fe01e" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">virtual Gtk::Menu::~Menu </td> <td>(</td> <td class="paramname"></td><td>)</td> <td><code> [virtual]</code></td> </tr> </table> </div> <div class="memdoc"> </div> </div> <a class="anchor" id="afd6add4a7ef105f29efa125bb5ef40cf"></a><!-- doxytag: member="Gtk::Menu::Menu" ref="afd6add4a7ef105f29efa125bb5ef40cf" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">Gtk::Menu::Menu </td> <td>(</td> <td class="paramname"></td><td>)</td> <td></td> </tr> </table> </div> <div class="memdoc"> </div> </div> <hr/><h2>Member Function Documentation</h2> <a class="anchor" id="a553a507018a5b411c6e839d710cd5805"></a><!-- doxytag: member="Gtk::Menu::attach" ref="a553a507018a5b411c6e839d710cd5805" args="(Gtk::Widget &child, guint left_attach, guint right_attach, guint top_attach, guint bottom_attach)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void Gtk::Menu::attach </td> <td>(</td> <td class="paramtype"><a class="el" href="classGtk_1_1Widget.html">Gtk::Widget</a>& </td> <td class="paramname"><em>child</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">guint </td> <td class="paramname"><em>left_attach</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">guint </td> <td class="paramname"><em>right_attach</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">guint </td> <td class="paramname"><em>top_attach</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">guint </td> <td class="paramname"><em>bottom_attach</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div> <div class="memdoc"> <p>Adds a new <a class="el" href="classGtk_1_1MenuItem.html" title="Child item for menus.">Gtk::MenuItem</a> to a (table) menu. </p> <p>The number of 'cells' that an item will occupy is specified by <em>left_attach</em>, <em>right_attach</em>, <em>top_attach</em> and <em>bottom_attach</em>. These each represent the leftmost, rightmost, uppermost and lower column and row numbers of the table. (Columns and rows are indexed from zero).</p> <p>Note that this function is not related to <a class="el" href="classGtk_1_1Menu.html#a56101a2dfae44d7b5ae4220b7acac006">detach()</a>.</p> <dl class="since_2_4"><dt><b><a class="el" href="since_2_4.html#_since_2_4000209">Since gtkmm 2.4:</a></b></dt><dd></dd></dl> <dl><dt><b>Parameters:</b></dt><dd> <table class="params"> <tr><td class="paramname">child</td><td>A <a class="el" href="classGtk_1_1MenuItem.html" title="Child item for menus.">Gtk::MenuItem</a>. </td></tr> <tr><td class="paramname">left_attach</td><td>The column number to attach the left side of the item to. </td></tr> <tr><td class="paramname">right_attach</td><td>The column number to attach the right side of the item to. </td></tr> <tr><td class="paramname">top_attach</td><td>The row number to attach the top of the item to. </td></tr> <tr><td class="paramname">bottom_attach</td><td>The row number to attach the bottom of the item to. </td></tr> </table> </dd> </dl> </div> </div> <a class="anchor" id="abbeea8311b50e1c2c180d83206431d71"></a><!-- doxytag: member="Gtk::Menu::attach_to_widget" ref="abbeea8311b50e1c2c180d83206431d71" args="(Widget &attach_widget, GtkMenuDetachFunc detacher)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void Gtk::Menu::attach_to_widget </td> <td>(</td> <td class="paramtype"><a class="el" href="classGtk_1_1Widget.html">Widget</a>& </td> <td class="paramname"><em>attach_widget</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="classGtk_1_1Menu.html#ad65fee40d0c95bab85928e0d737f4e1f">GtkMenuDetachFunc</a> </td> <td class="paramname"><em>detacher</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td><code> [protected]</code></td> </tr> </table> </div> <div class="memdoc"> </div> </div> <a class="anchor" id="a192b045df4c37eaff1277e3589960ac7"></a><!-- doxytag: member="Gtk::Menu::attach_to_widget" ref="a192b045df4c37eaff1277e3589960ac7" args="(Widget &attach_widget)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void Gtk::Menu::attach_to_widget </td> <td>(</td> <td class="paramtype"><a class="el" href="classGtk_1_1Widget.html">Widget</a>& </td> <td class="paramname"><em>attach_widget</em></td><td>)</td> <td><code> [protected]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Attaches the menu to the widget. </p> <p>param : the <a class="el" href="classGtk_1_1Widget.html" title="Abstract Widget (Base class for all widgets)">Widget</a> that the menu will be attached to.</p> <dl class="since_2_10"><dt><b><a class="el" href="since_2_10.html#_since_2_10000068">Since gtkmm 2.10:</a></b></dt><dd></dd></dl> </div> </div> <a class="anchor" id="a56101a2dfae44d7b5ae4220b7acac006"></a><!-- doxytag: member="Gtk::Menu::detach" ref="a56101a2dfae44d7b5ae4220b7acac006" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void Gtk::Menu::detach </td> <td>(</td> <td class="paramname"></td><td>)</td> <td></td> </tr> </table> </div> <div class="memdoc"> </div> </div> <a class="anchor" id="a7bdd6c75710d48e4655bb28a4fb822cd"></a><!-- doxytag: member="Gtk::Menu::get_accel_group" ref="a7bdd6c75710d48e4655bb28a4fb822cd" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGtk_1_1AccelGroup.html">AccelGroup</a>> Gtk::Menu::get_accel_group </td> <td>(</td> <td class="paramname"></td><td>)</td> <td></td> </tr> </table> </div> <div class="memdoc"> <p><em>menu</em> a <a class="el" href="classGtk_1_1Menu.html" title="A drop-down menu consisting of Gtk::MenuItem objects which can be navigated and activated by the user...">Gtk::Menu</a> </p> <p>Gets the <a class="el" href="classGtk_1_1AccelGroup.html" title="A Gtk::AccelGroup represents a group of keyboard accelerators, typically attached to a toplevel Gtk::...">Gtk::AccelGroup</a> which holds global accelerators for the menu. See <a class="el" href="classGtk_1_1Menu.html#a82f9e1d2e501b7cacec74bb9e3c7e4ce">set_accel_group()</a>. </p> <dl class="return"><dt><b>Returns:</b></dt><dd>The <a class="el" href="classGtk_1_1AccelGroup.html" title="A Gtk::AccelGroup represents a group of keyboard accelerators, typically attached to a toplevel Gtk::...">Gtk::AccelGroup</a> associated with the menu. </dd></dl> </div> </div> <a class="anchor" id="aa9620d30b2f77260e826f785591624a2"></a><!-- doxytag: member="Gtk::Menu::get_accel_group" ref="aa9620d30b2f77260e826f785591624a2" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a><const <a class="el" href="classGtk_1_1AccelGroup.html">AccelGroup</a>> Gtk::Menu::get_accel_group </td> <td>(</td> <td class="paramname"></td><td>)</td> <td> const</td> </tr> </table> </div> <div class="memdoc"> <p><em>menu</em> a <a class="el" href="classGtk_1_1Menu.html" title="A drop-down menu consisting of Gtk::MenuItem objects which can be navigated and activated by the user...">Gtk::Menu</a> </p> <p>Gets the <a class="el" href="classGtk_1_1AccelGroup.html" title="A Gtk::AccelGroup represents a group of keyboard accelerators, typically attached to a toplevel Gtk::...">Gtk::AccelGroup</a> which holds global accelerators for the menu. See <a class="el" href="classGtk_1_1Menu.html#a82f9e1d2e501b7cacec74bb9e3c7e4ce">set_accel_group()</a>. </p> <dl class="return"><dt><b>Returns:</b></dt><dd>The <a class="el" href="classGtk_1_1AccelGroup.html" title="A Gtk::AccelGroup represents a group of keyboard accelerators, typically attached to a toplevel Gtk::...">Gtk::AccelGroup</a> associated with the menu. </dd></dl> </div> </div> <a class="anchor" id="af252432d136900f11e622e798d352ba1"></a><!-- doxytag: member="Gtk::Menu::get_accel_path" ref="af252432d136900f11e622e798d352ba1" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> Gtk::Menu::get_accel_path </td> <td>(</td> <td class="paramname"></td><td>)</td> <td> const</td> </tr> </table> </div> <div class="memdoc"> <p>Retrieves the accelerator path set on the menu. </p> <dl class="since_2_14"><dt><b><a class="el" href="since_2_14.html#_since_2_14000098">Since gtkmm 2.14:</a></b></dt><dd></dd></dl> <dl class="return"><dt><b>Returns:</b></dt><dd>The accelerator path set on the menu. </dd></dl> </div> </div> <a class="anchor" id="aacbd92ec63b1b8d98d90429f0dcdfa2b"></a><!-- doxytag: member="Gtk::Menu::get_active" ref="aacbd92ec63b1b8d98d90429f0dcdfa2b" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">const <a class="el" href="classGtk_1_1MenuItem.html">MenuItem</a>* Gtk::Menu::get_active </td> <td>(</td> <td class="paramname"></td><td>)</td> <td> const</td> </tr> </table> </div> <div class="memdoc"> <p>Returns the selected menu item from the menu. </p> <p>This is used by the <a class="el" href="classGtk_1_1OptionMenu.html" title="A widget used to choose from a list of valid choices.">Gtk::OptionMenu</a>. </p> <dl class="return"><dt><b>Returns:</b></dt><dd>The <a class="el" href="classGtk_1_1MenuItem.html" title="Child item for menus.">Gtk::MenuItem</a> that was last selected in the menu. If a selection has not yet been made, the first menu item is selected. </dd></dl> </div> </div> <a class="anchor" id="ab7ea3340aadb2c3afcedcd65ac6d3398"></a><!-- doxytag: member="Gtk::Menu::get_active" ref="ab7ea3340aadb2c3afcedcd65ac6d3398" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classGtk_1_1MenuItem.html">MenuItem</a>* Gtk::Menu::get_active </td> <td>(</td> <td class="paramname"></td><td>)</td> <td></td> </tr> </table> </div> <div class="memdoc"> <p>Returns the selected menu item from the menu. </p> <p>This is used by the <a class="el" href="classGtk_1_1OptionMenu.html" title="A widget used to choose from a list of valid choices.">Gtk::OptionMenu</a>. </p> <dl class="return"><dt><b>Returns:</b></dt><dd>The <a class="el" href="classGtk_1_1MenuItem.html" title="Child item for menus.">Gtk::MenuItem</a> that was last selected in the menu. If a selection has not yet been made, the first menu item is selected. </dd></dl> </div> </div> <a class="anchor" id="a13e438d2b9e678178ab83eb20f4ab3fb"></a><!-- doxytag: member="Gtk::Menu::get_attach_widget" ref="a13e438d2b9e678178ab83eb20f4ab3fb" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classGtk_1_1Widget.html">Widget</a>* Gtk::Menu::get_attach_widget </td> <td>(</td> <td class="paramname"></td><td>)</td> <td></td> </tr> </table> </div> <div class="memdoc"> <p>Returns the <a class="el" href="classGtk_1_1Widget.html" title="Abstract Widget (Base class for all widgets)">Gtk::Widget</a> that the menu is attached to. </p> <dl class="return"><dt><b>Returns:</b></dt><dd>The <a class="el" href="classGtk_1_1Widget.html" title="Abstract Widget (Base class for all widgets)">Gtk::Widget</a> that the menu is attached to. </dd></dl> </div> </div> <a class="anchor" id="ac84c0e8179c5d0740137433019364c0a"></a><!-- doxytag: member="Gtk::Menu::get_attach_widget" ref="ac84c0e8179c5d0740137433019364c0a" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">const <a class="el" href="classGtk_1_1Widget.html">Widget</a>* Gtk::Menu::get_attach_widget </td> <td>(</td> <td class="paramname"></td><td>)</td> <td> const</td> </tr> </table> </div> <div class="memdoc"> <p>Returns the <a class="el" href="classGtk_1_1Widget.html" title="Abstract Widget (Base class for all widgets)">Gtk::Widget</a> that the menu is attached to. </p> <dl class="return"><dt><b>Returns:</b></dt><dd>The <a class="el" href="classGtk_1_1Widget.html" title="Abstract Widget (Base class for all widgets)">Gtk::Widget</a> that the menu is attached to. </dd></dl> </div> </div> <a class="anchor" id="aa172c1772304904c1f505f203a02014a"></a><!-- doxytag: member="Gtk::Menu::get_monitor" ref="aa172c1772304904c1f505f203a02014a" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">int Gtk::Menu::get_monitor </td> <td>(</td> <td class="paramname"></td><td>)</td> <td> const</td> </tr> </table> </div> <div class="memdoc"> <p>Retrieves the number of the monitor on which to show the menu. </p> <dl class="since_2_14"><dt><b><a class="el" href="since_2_14.html#_since_2_14000099">Since gtkmm 2.14:</a></b></dt><dd></dd></dl> <dl class="return"><dt><b>Returns:</b></dt><dd>The number of the monitor on which the menu should be popped up or -1, if no monitor has been set. </dd></dl> </div> </div> <a class="anchor" id="a43cf58cc993b1faa96ac44cf65baf7e9"></a><!-- doxytag: member="Gtk::Menu::get_reserve_toggle_size" ref="a43cf58cc993b1faa96ac44cf65baf7e9" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">bool Gtk::Menu::get_reserve_toggle_size </td> <td>(</td> <td class="paramname"></td><td>)</td> <td> const</td> </tr> </table> </div> <div class="memdoc"> <p>Returns whether the menu reserves space for toggles and icons, regardless of their actual presence. </p> <dl class="since_2_18"><dt><b><a class="el" href="since_2_18.html#_since_2_18000051">Since gtkmm 2.18:</a></b></dt><dd></dd></dl> <dl class="return"><dt><b>Returns:</b></dt><dd>Whether the menu reserves toggle space. </dd></dl> </div> </div> <a class="anchor" id="a2c77bbf05cb9af10596df8f4eb15ed71"></a><!-- doxytag: member="Gtk::Menu::get_tearoff_state" ref="a2c77bbf05cb9af10596df8f4eb15ed71" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">bool Gtk::Menu::get_tearoff_state </td> <td>(</td> <td class="paramname"></td><td>)</td> <td> const</td> </tr> </table> </div> <div class="memdoc"> <p>Returns whether the menu is torn off. </p> <p>See <a class="el" href="classGtk_1_1Menu.html#ab6c92b23e8efc7524882ca11ef956178">set_tearoff_state()</a>. </p> <dl class="return"><dt><b>Returns:</b></dt><dd><code>true</code> if the menu is currently torn off. </dd></dl> </div> </div> <a class="anchor" id="a374e0a72b4595a01489409e48e7159cf"></a><!-- doxytag: member="Gtk::Menu::get_title" ref="a374e0a72b4595a01489409e48e7159cf" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> Gtk::Menu::get_title </td> <td>(</td> <td class="paramname"></td><td>)</td> <td> const</td> </tr> </table> </div> <div class="memdoc"> <p>Returns the title of the menu. </p> <p>See <a class="el" href="classGtk_1_1Menu.html#a53cd143ce2b01b865fcf0171691623a8" title="Sets the title string for the menu.">set_title()</a>. </p> <dl class="return"><dt><b>Returns:</b></dt><dd>The title of the menu, or <code>0</code> if the menu has no title set on it. This string is owned by the widget and should not be modified or freed. </dd></dl> </div> </div> <a class="anchor" id="a08434c6b137ce53eb939b09d577aa9bb"></a><!-- doxytag: member="Gtk::Menu::gobj" ref="a08434c6b137ce53eb939b09d577aa9bb" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">GtkMenu* Gtk::Menu::gobj </td> <td>(</td> <td class="paramname"></td><td>)</td> <td><code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Provides access to the underlying C GtkObject. </p> <p>Reimplemented from <a class="el" href="classGtk_1_1MenuShell.html#abb7c2641f9e3624f3225dcf76d8b994c">Gtk::MenuShell</a>.</p> <p>Reimplemented in <a class="el" href="classGtk_1_1RecentChooserMenu.html#ae3863ae813b85f9b9ac6f4075370a55e">Gtk::RecentChooserMenu</a>.</p> </div> </div> <a class="anchor" id="a943271a828e8bfa829c6bf4ed0060203"></a><!-- doxytag: member="Gtk::Menu::gobj" ref="a943271a828e8bfa829c6bf4ed0060203" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">const GtkMenu* Gtk::Menu::gobj </td> <td>(</td> <td class="paramname"></td><td>)</td> <td> const<code> [inline]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Provides access to the underlying C GtkObject. </p> <p>Reimplemented from <a class="el" href="classGtk_1_1MenuShell.html#a4417adfb6a301e40a0040517c43e69c7">Gtk::MenuShell</a>.</p> <p>Reimplemented in <a class="el" href="classGtk_1_1RecentChooserMenu.html#ac8d86c1bbe5f6997e524f28db4cb95b5">Gtk::RecentChooserMenu</a>.</p> </div> </div> <a class="anchor" id="a976bd97bc3879ed371cf9ef178a40543"></a><!-- doxytag: member="Gtk::Menu::popdown" ref="a976bd97bc3879ed371cf9ef178a40543" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void Gtk::Menu::popdown </td> <td>(</td> <td class="paramname"></td><td>)</td> <td></td> </tr> </table> </div> <div class="memdoc"> </div> </div> <a class="anchor" id="a4c66c33c8fdfe3e837b1fcf20f302cf7"></a><!-- doxytag: member="Gtk::Menu::popup" ref="a4c66c33c8fdfe3e837b1fcf20f302cf7" args="(const SlotPositionCalc &position_calc_slot, guint button, guint32 activate_time)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void Gtk::Menu::popup </td> <td>(</td> <td class="paramtype">const <a class="elRef" href="../../../libsigc++-2.0/reference/html/classsigc_1_1slot.html">SlotPositionCalc</a> & </td> <td class="paramname"><em>position_calc_slot</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">guint </td> <td class="paramname"><em>button</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">guint32 </td> <td class="paramname"><em>activate_time</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div> <div class="memdoc"> <p>Displays a menu and makes it available for selection. </p> <p>Applications can use this function to display context-sensitive menus.</p> <p>The <em>button</em> parameter should be the mouse button pressed to initiate the menu popup. If the menu popup was initiated by something other than a mouse button press, such as a mouse button release or a keypress, <em>button</em> should be 0.</p> <p>The <em>activate_time</em> parameter should be the time stamp of the event that initiated the popup. If such an event is not available, use gtk_get_current_event_time() instead. </p> <dl><dt><b>Parameters:</b></dt><dd> <table class="params"> <tr><td class="paramname">func</td><td>A position_calc_slot supplied function used to position the menu, or <code>0</code>. </td></tr> <tr><td class="paramname">button</td><td>The mouse button which was pressed to initiate the event. </td></tr> <tr><td class="paramname">activate_time</td><td>The time at which the activation event occurred. </td></tr> </table> </dd> </dl> </div> </div> <a class="anchor" id="adfcc6dd5dbc296bf8cdda4556b572784"></a><!-- doxytag: member="Gtk::Menu::popup" ref="adfcc6dd5dbc296bf8cdda4556b572784" args="(guint button, guint32 activate_time)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void Gtk::Menu::popup </td> <td>(</td> <td class="paramtype">guint </td> <td class="paramname"><em>button</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">guint32 </td> <td class="paramname"><em>activate_time</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div> <div class="memdoc"> <p>Displays a menu and makes it available for selection. </p> <p>Applications can use this function to display context-sensitive menus, at the current pointer position. </p> <dl><dt><b>Parameters:</b></dt><dd> <table class="params"> <tr><td class="paramname">button</td><td>The button which was pressed to initiate the event. </td></tr> <tr><td class="paramname">activate_time</td><td>The time at which the activation event occurred. </td></tr> </table> </dd> </dl> </div> </div> <a class="anchor" id="a6501cd09e10a13f18249202571f02a78"></a><!-- doxytag: member="Gtk::Menu::popup" ref="a6501cd09e10a13f18249202571f02a78" args="(MenuShell &parent_menu_shell, MenuItem &parent_menu_item, const SlotPositionCalc &slot, guint button, guint32 activate_time)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void Gtk::Menu::popup </td> <td>(</td> <td class="paramtype"><a class="el" href="classGtk_1_1MenuShell.html">MenuShell</a>& </td> <td class="paramname"><em>parent_menu_shell</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="classGtk_1_1MenuItem.html">MenuItem</a>& </td> <td class="paramname"><em>parent_menu_item</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const <a class="elRef" href="../../../libsigc++-2.0/reference/html/classsigc_1_1slot.html">SlotPositionCalc</a> & </td> <td class="paramname"><em>slot</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">guint </td> <td class="paramname"><em>button</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">guint32 </td> <td class="paramname"><em>activate_time</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div> <div class="memdoc"> </div> </div> <a class="anchor" id="a873b2f97047e59d71a23813fa7ea5b8a"></a><!-- doxytag: member="Gtk::Menu::property_accel_group" ref="a873b2f97047e59d71a23813fa7ea5b8a" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1PropertyProxy__ReadOnly.html">Glib::PropertyProxy_ReadOnly</a>< <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGtk_1_1AccelGroup.html">AccelGroup</a>> > Gtk::Menu::property_accel_group </td> <td>(</td> <td class="paramname"></td><td>)</td> <td> const</td> </tr> </table> </div> <div class="memdoc"> <p>The accel group holding accelerators for the menu. </p> <p>You rarely need to use properties because there are get_ and set_ methods for almost all of them. </p> <dl class="return"><dt><b>Returns:</b></dt><dd>A PropertyProxy that allows you to get or set the property of the value, or receive notification when the value of the property changes. </dd></dl> </div> </div> <a class="anchor" id="a3072a6188c6ef0c63d03c6f898d333c0"></a><!-- doxytag: member="Gtk::Menu::property_accel_group" ref="a3072a6188c6ef0c63d03c6f898d333c0" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1PropertyProxy.html">Glib::PropertyProxy</a>< <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a><<a class="el" href="classGtk_1_1AccelGroup.html">AccelGroup</a>> > Gtk::Menu::property_accel_group </td> <td>(</td> <td class="paramname"></td><td>)</td> <td></td> </tr> </table> </div> <div class="memdoc"> <p>The accel group holding accelerators for the menu. </p> <p>You rarely need to use properties because there are get_ and set_ methods for almost all of them. </p> <dl class="return"><dt><b>Returns:</b></dt><dd>A PropertyProxy that allows you to get or set the property of the value, or receive notification when the value of the property changes. </dd></dl> </div> </div> <a class="anchor" id="a41c2b3ae8564c236d0c832a3487be414"></a><!-- doxytag: member="Gtk::Menu::property_accel_path" ref="a41c2b3ae8564c236d0c832a3487be414" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1PropertyProxy__ReadOnly.html">Glib::PropertyProxy_ReadOnly</a><<a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a>> Gtk::Menu::property_accel_path </td> <td>(</td> <td class="paramname"></td><td>)</td> <td> const</td> </tr> </table> </div> <div class="memdoc"> <p>An accel path used to conveniently construct accel paths of child items. </p> <p>You rarely need to use properties because there are get_ and set_ methods for almost all of them. </p> <dl class="return"><dt><b>Returns:</b></dt><dd>A PropertyProxy that allows you to get or set the property of the value, or receive notification when the value of the property changes. </dd></dl> </div> </div> <a class="anchor" id="a1fb492f69c725f632a22fcaaa5d31f7e"></a><!-- doxytag: member="Gtk::Menu::property_accel_path" ref="a1fb492f69c725f632a22fcaaa5d31f7e" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1PropertyProxy.html">Glib::PropertyProxy</a><<a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a>> Gtk::Menu::property_accel_path </td> <td>(</td> <td class="paramname"></td><td>)</td> <td></td> </tr> </table> </div> <div class="memdoc"> <p>An accel path used to conveniently construct accel paths of child items. </p> <p>You rarely need to use properties because there are get_ and set_ methods for almost all of them. </p> <dl class="return"><dt><b>Returns:</b></dt><dd>A PropertyProxy that allows you to get or set the property of the value, or receive notification when the value of the property changes. </dd></dl> </div> </div> <a class="anchor" id="ada09aade05e5a5402b9f712a32d92ac9"></a><!-- doxytag: member="Gtk::Menu::property_active" ref="ada09aade05e5a5402b9f712a32d92ac9" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1PropertyProxy.html">Glib::PropertyProxy</a><int> Gtk::Menu::property_active </td> <td>(</td> <td class="paramname"></td><td>)</td> <td></td> </tr> </table> </div> <div class="memdoc"> <p>The currently selected menu item. </p> <p>You rarely need to use properties because there are get_ and set_ methods for almost all of them. </p> <dl class="return"><dt><b>Returns:</b></dt><dd>A PropertyProxy that allows you to get or set the property of the value, or receive notification when the value of the property changes. </dd></dl> </div> </div> <a class="anchor" id="a5e673fc6cad2dd2c49711f02625c339a"></a><!-- doxytag: member="Gtk::Menu::property_active" ref="a5e673fc6cad2dd2c49711f02625c339a" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1PropertyProxy__ReadOnly.html">Glib::PropertyProxy_ReadOnly</a><int> Gtk::Menu::property_active </td> <td>(</td> <td class="paramname"></td><td>)</td> <td> const</td> </tr> </table> </div> <div class="memdoc"> <p>The currently selected menu item. </p> <p>You rarely need to use properties because there are get_ and set_ methods for almost all of them. </p> <dl class="return"><dt><b>Returns:</b></dt><dd>A PropertyProxy that allows you to get or set the property of the value, or receive notification when the value of the property changes. </dd></dl> </div> </div> <a class="anchor" id="a73b9b6c94d996d0cbe9ec7b7c23e3745"></a><!-- doxytag: member="Gtk::Menu::property_attach_widget" ref="a73b9b6c94d996d0cbe9ec7b7c23e3745" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1PropertyProxy.html">Glib::PropertyProxy</a><<a class="el" href="classGtk_1_1Widget.html">Widget</a>*> Gtk::Menu::property_attach_widget </td> <td>(</td> <td class="paramname"></td><td>)</td> <td></td> </tr> </table> </div> <div class="memdoc"> <p>The widget the menu is attached to. </p> <p>You rarely need to use properties because there are get_ and set_ methods for almost all of them. </p> <dl class="return"><dt><b>Returns:</b></dt><dd>A PropertyProxy that allows you to get or set the property of the value, or receive notification when the value of the property changes. </dd></dl> </div> </div> <a class="anchor" id="a585852d13ff273a5da337ecb62b7249c"></a><!-- doxytag: member="Gtk::Menu::property_attach_widget" ref="a585852d13ff273a5da337ecb62b7249c" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1PropertyProxy__ReadOnly.html">Glib::PropertyProxy_ReadOnly</a><<a class="el" href="classGtk_1_1Widget.html">Widget</a>*> Gtk::Menu::property_attach_widget </td> <td>(</td> <td class="paramname"></td><td>)</td> <td> const</td> </tr> </table> </div> <div class="memdoc"> <p>The widget the menu is attached to. </p> <p>You rarely need to use properties because there are get_ and set_ methods for almost all of them. </p> <dl class="return"><dt><b>Returns:</b></dt><dd>A PropertyProxy that allows you to get or set the property of the value, or receive notification when the value of the property changes. </dd></dl> </div> </div> <a class="anchor" id="a96c0c88debdd88a4ebb66b2e8f60796c"></a><!-- doxytag: member="Gtk::Menu::property_monitor" ref="a96c0c88debdd88a4ebb66b2e8f60796c" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1PropertyProxy.html">Glib::PropertyProxy</a><int> Gtk::Menu::property_monitor </td> <td>(</td> <td class="paramname"></td><td>)</td> <td></td> </tr> </table> </div> <div class="memdoc"> <p>The monitor the menu will be popped up on. </p> <p>You rarely need to use properties because there are get_ and set_ methods for almost all of them. </p> <dl class="return"><dt><b>Returns:</b></dt><dd>A PropertyProxy that allows you to get or set the property of the value, or receive notification when the value of the property changes. </dd></dl> </div> </div> <a class="anchor" id="aef6b0a7edd91597b479bffa8898a0196"></a><!-- doxytag: member="Gtk::Menu::property_monitor" ref="aef6b0a7edd91597b479bffa8898a0196" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1PropertyProxy__ReadOnly.html">Glib::PropertyProxy_ReadOnly</a><int> Gtk::Menu::property_monitor </td> <td>(</td> <td class="paramname"></td><td>)</td> <td> const</td> </tr> </table> </div> <div class="memdoc"> <p>The monitor the menu will be popped up on. </p> <p>You rarely need to use properties because there are get_ and set_ methods for almost all of them. </p> <dl class="return"><dt><b>Returns:</b></dt><dd>A PropertyProxy that allows you to get or set the property of the value, or receive notification when the value of the property changes. </dd></dl> </div> </div> <a class="anchor" id="ad351d23325474a949122706120844748"></a><!-- doxytag: member="Gtk::Menu::property_reserve_toggle_size" ref="ad351d23325474a949122706120844748" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1PropertyProxy.html">Glib::PropertyProxy</a><bool> Gtk::Menu::property_reserve_toggle_size </td> <td>(</td> <td class="paramname"></td><td>)</td> <td></td> </tr> </table> </div> <div class="memdoc"> <p>A boolean that indicates whether the menu reserves space for toggles and icons. </p> <p>You rarely need to use properties because there are get_ and set_ methods for almost all of them. </p> <dl class="return"><dt><b>Returns:</b></dt><dd>A PropertyProxy that allows you to get or set the property of the value, or receive notification when the value of the property changes. </dd></dl> </div> </div> <a class="anchor" id="a0c096fb96456d97a380ce75ba8a6ab4a"></a><!-- doxytag: member="Gtk::Menu::property_reserve_toggle_size" ref="a0c096fb96456d97a380ce75ba8a6ab4a" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1PropertyProxy__ReadOnly.html">Glib::PropertyProxy_ReadOnly</a><bool> Gtk::Menu::property_reserve_toggle_size </td> <td>(</td> <td class="paramname"></td><td>)</td> <td> const</td> </tr> </table> </div> <div class="memdoc"> <p>A boolean that indicates whether the menu reserves space for toggles and icons. </p> <p>You rarely need to use properties because there are get_ and set_ methods for almost all of them. </p> <dl class="return"><dt><b>Returns:</b></dt><dd>A PropertyProxy that allows you to get or set the property of the value, or receive notification when the value of the property changes. </dd></dl> </div> </div> <a class="anchor" id="af8f0caa148bd2910971533f67dd827e8"></a><!-- doxytag: member="Gtk::Menu::property_tearoff_state" ref="af8f0caa148bd2910971533f67dd827e8" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1PropertyProxy.html">Glib::PropertyProxy</a><bool> Gtk::Menu::property_tearoff_state </td> <td>(</td> <td class="paramname"></td><td>)</td> <td></td> </tr> </table> </div> <div class="memdoc"> <p>A boolean that indicates whether the menu is torn-off. </p> <p>You rarely need to use properties because there are get_ and set_ methods for almost all of them. </p> <dl class="return"><dt><b>Returns:</b></dt><dd>A PropertyProxy that allows you to get or set the property of the value, or receive notification when the value of the property changes. </dd></dl> </div> </div> <a class="anchor" id="a3a5723694c651d1582abbdc41291a164"></a><!-- doxytag: member="Gtk::Menu::property_tearoff_state" ref="a3a5723694c651d1582abbdc41291a164" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1PropertyProxy__ReadOnly.html">Glib::PropertyProxy_ReadOnly</a><bool> Gtk::Menu::property_tearoff_state </td> <td>(</td> <td class="paramname"></td><td>)</td> <td> const</td> </tr> </table> </div> <div class="memdoc"> <p>A boolean that indicates whether the menu is torn-off. </p> <p>You rarely need to use properties because there are get_ and set_ methods for almost all of them. </p> <dl class="return"><dt><b>Returns:</b></dt><dd>A PropertyProxy that allows you to get or set the property of the value, or receive notification when the value of the property changes. </dd></dl> </div> </div> <a class="anchor" id="a0217b7e49e4412f76fc5f739c3a91a26"></a><!-- doxytag: member="Gtk::Menu::property_tearoff_title" ref="a0217b7e49e4412f76fc5f739c3a91a26" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1PropertyProxy.html">Glib::PropertyProxy</a><<a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a>> Gtk::Menu::property_tearoff_title </td> <td>(</td> <td class="paramname"></td><td>)</td> <td></td> </tr> </table> </div> <div class="memdoc"> <p>A title that may be displayed by the window manager when this menu is torn-off. </p> <p>You rarely need to use properties because there are get_ and set_ methods for almost all of them. </p> <dl class="return"><dt><b>Returns:</b></dt><dd>A PropertyProxy that allows you to get or set the property of the value, or receive notification when the value of the property changes. </dd></dl> </div> </div> <a class="anchor" id="a7650e443cfecefc39a3c39b5bc0696fc"></a><!-- doxytag: member="Gtk::Menu::property_tearoff_title" ref="a7650e443cfecefc39a3c39b5bc0696fc" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1PropertyProxy__ReadOnly.html">Glib::PropertyProxy_ReadOnly</a><<a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a>> Gtk::Menu::property_tearoff_title </td> <td>(</td> <td class="paramname"></td><td>)</td> <td> const</td> </tr> </table> </div> <div class="memdoc"> <p>A title that may be displayed by the window manager when this menu is torn-off. </p> <p>You rarely need to use properties because there are get_ and set_ methods for almost all of them. </p> <dl class="return"><dt><b>Returns:</b></dt><dd>A PropertyProxy that allows you to get or set the property of the value, or receive notification when the value of the property changes. </dd></dl> </div> </div> <a class="anchor" id="ab4c6d8d9f9c915c1fab7344440cb6e7e"></a><!-- doxytag: member="Gtk::Menu::reorder_child" ref="ab4c6d8d9f9c915c1fab7344440cb6e7e" args="(const MenuItem &child, int position)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void Gtk::Menu::reorder_child </td> <td>(</td> <td class="paramtype">const <a class="el" href="classGtk_1_1MenuItem.html">MenuItem</a>& </td> <td class="paramname"><em>child</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">int </td> <td class="paramname"><em>position</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div> <div class="memdoc"> </div> </div> <a class="anchor" id="a84f2f1e74ba1a6316077a4dcee13ed87"></a><!-- doxytag: member="Gtk::Menu::reposition" ref="a84f2f1e74ba1a6316077a4dcee13ed87" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void Gtk::Menu::reposition </td> <td>(</td> <td class="paramname"></td><td>)</td> <td></td> </tr> </table> </div> <div class="memdoc"> </div> </div> <a class="anchor" id="a82f9e1d2e501b7cacec74bb9e3c7e4ce"></a><!-- doxytag: member="Gtk::Menu::set_accel_group" ref="a82f9e1d2e501b7cacec74bb9e3c7e4ce" args="(const Glib::RefPtr< AccelGroup > &accel_group)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void Gtk::Menu::set_accel_group </td> <td>(</td> <td class="paramtype">const <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a>< <a class="el" href="classGtk_1_1AccelGroup.html">AccelGroup</a> >& </td> <td class="paramname"><em>accel_group</em></td><td>)</td> <td></td> </tr> </table> </div> <div class="memdoc"> </div> </div> <a class="anchor" id="aa67f1f54bd72aa580e87150c5860a4b3"></a><!-- doxytag: member="Gtk::Menu::set_accel_path" ref="aa67f1f54bd72aa580e87150c5860a4b3" args="(const Glib::ustring &accel_path)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void Gtk::Menu::set_accel_path </td> <td>(</td> <td class="paramtype">const <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> & </td> <td class="paramname"><em>accel_path</em></td><td>)</td> <td></td> </tr> </table> </div> <div class="memdoc"> <p>Sets an accelerator path for this menu from which accelerator paths for its immediate children, its menu items, can be constructed. </p> <p>The main purpose of this function is to spare the programmer the inconvenience of having to call <a class="el" href="classGtk_1_1MenuItem.html#aab05629dd1ed0bb52b3efaf197e5b675" title="Set the accelerator path on menu_item, through which runtime changes of the menu item's accelerat...">Gtk::MenuItem::set_accel_path()</a> on each menu item that should support runtime user changable accelerators. Instead, by just calling <a class="el" href="classGtk_1_1Menu.html#aa67f1f54bd72aa580e87150c5860a4b3" title="Sets an accelerator path for this menu from which accelerator paths for its immediate children...">set_accel_path()</a> on their parent, each menu item of this menu, that contains a label describing its purpose, automatically gets an accel path assigned. For example, a menu containing menu items "New" and "Exit", will, after <code>gtk_menu_set_accel_path (menu, "<Gnumeric-Sheet>/File");</code> has been called, assign its items the accel paths: <code>"<Gnumeric-Sheet>/File/New"</code> and <code>"<Gnumeric-Sheet>/File/Exit"</code>. Assigning accel paths to menu items then enables the user to change their accelerators at runtime. More details about accelerator paths and their default setups can be found at <a class="el" href="namespaceGtk_1_1AccelMap.html#a6313a0f99aebe342c08f2d2d0f9416ad" title="Registers a new accelerator with the global accelerator map.">Gtk::AccelMap::add_entry()</a>.</p> <p>Note that <em>accel_path</em> string will be stored in a Quark. Therefore, if you pass a static string, you can save some memory by interning it first with Glib::intern_static_string(). </p> <dl><dt><b>Parameters:</b></dt><dd> <table class="params"> <tr><td class="paramname">accel_path</td><td>A valid accelerator path. </td></tr> </table> </dd> </dl> </div> </div> <a class="anchor" id="a392d8010777bde0686aa904b73db265a"></a><!-- doxytag: member="Gtk::Menu::set_active" ref="a392d8010777bde0686aa904b73db265a" args="(guint index)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void Gtk::Menu::set_active </td> <td>(</td> <td class="paramtype">guint </td> <td class="paramname"><em>index</em></td><td>)</td> <td></td> </tr> </table> </div> <div class="memdoc"> </div> </div> <a class="anchor" id="a3a407327705ee7a135674fb7d75732a4"></a><!-- doxytag: member="Gtk::Menu::set_monitor" ref="a3a407327705ee7a135674fb7d75732a4" args="(int monitor_num)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void Gtk::Menu::set_monitor </td> <td>(</td> <td class="paramtype">int </td> <td class="paramname"><em>monitor_num</em></td><td>)</td> <td></td> </tr> </table> </div> <div class="memdoc"> <p>Informs GTK+ on which monitor a menu should be popped up. </p> <p>See gdk_screen_get_monitor_geometry().</p> <p>This function should be called from a Gtk::MenuPositionFunc if the menu should not appear on the same monitor as the pointer. This information can't be reliably inferred from the coordinates returned by a Gtk::MenuPositionFunc, since, for very long menus, these coordinates may extend beyond the monitor boundaries or even the screen boundaries.</p> <dl class="since_2_4"><dt><b><a class="el" href="since_2_4.html#_since_2_4000210">Since gtkmm 2.4:</a></b></dt><dd></dd></dl> <dl><dt><b>Parameters:</b></dt><dd> <table class="params"> <tr><td class="paramname">monitor_num</td><td>The number of the monitor on which the menu should be popped up. </td></tr> </table> </dd> </dl> </div> </div> <a class="anchor" id="ad605265ee9bc5ead53d9eb1bb1edbb06"></a><!-- doxytag: member="Gtk::Menu::set_reserve_toggle_size" ref="ad605265ee9bc5ead53d9eb1bb1edbb06" args="(bool reserve_toggle_size=true)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void Gtk::Menu::set_reserve_toggle_size </td> <td>(</td> <td class="paramtype">bool </td> <td class="paramname"><em>reserve_toggle_size</em> = <code>true</code></td><td>)</td> <td></td> </tr> </table> </div> <div class="memdoc"> <p>Sets whether the menu should reserve space for drawing toggles or icons, regardless of their actual presence. </p> <dl class="since_2_18"><dt><b><a class="el" href="since_2_18.html#_since_2_18000050">Since gtkmm 2.18:</a></b></dt><dd></dd></dl> <dl><dt><b>Parameters:</b></dt><dd> <table class="params"> <tr><td class="paramname">reserve_toggle_size</td><td>Whether to reserve size for toggles. </td></tr> </table> </dd> </dl> </div> </div> <a class="anchor" id="a7ee89975364a523c4662a188c02eaf28"></a><!-- doxytag: member="Gtk::Menu::set_screen" ref="a7ee89975364a523c4662a188c02eaf28" args="(const Glib::RefPtr< Gdk::Screen > &screen)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void Gtk::Menu::set_screen </td> <td>(</td> <td class="paramtype">const <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1RefPtr.html">Glib::RefPtr</a>< <a class="el" href="classGdk_1_1Screen.html">Gdk::Screen</a> >& </td> <td class="paramname"><em>screen</em></td><td>)</td> <td></td> </tr> </table> </div> <div class="memdoc"> <p>Sets the <a class="el" href="classGdk_1_1Screen.html" title="Object representing a physical screen Gdk::Screen objects are the GDK representation of a physical sc...">Gdk::Screen</a> on which the menu will be displayed. </p> <dl class="since_2_2"><dt><b><a class="el" href="since_2_2.html#_since_2_2000099">Since gtkmm 2.2:</a></b></dt><dd></dd></dl> <dl><dt><b>Parameters:</b></dt><dd> <table class="params"> <tr><td class="paramname">screen</td><td>A <a class="el" href="classGdk_1_1Screen.html" title="Object representing a physical screen Gdk::Screen objects are the GDK representation of a physical sc...">Gdk::Screen</a>, or <code>0</code> if the screen should be determined by the widget the menu is attached to. </td></tr> </table> </dd> </dl> </div> </div> <a class="anchor" id="ab6c92b23e8efc7524882ca11ef956178"></a><!-- doxytag: member="Gtk::Menu::set_tearoff_state" ref="ab6c92b23e8efc7524882ca11ef956178" args="(bool torn_off=true)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void Gtk::Menu::set_tearoff_state </td> <td>(</td> <td class="paramtype">bool </td> <td class="paramname"><em>torn_off</em> = <code>true</code></td><td>)</td> <td></td> </tr> </table> </div> <div class="memdoc"> </div> </div> <a class="anchor" id="a53cd143ce2b01b865fcf0171691623a8"></a><!-- doxytag: member="Gtk::Menu::set_title" ref="a53cd143ce2b01b865fcf0171691623a8" args="(const Glib::ustring &title)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void Gtk::Menu::set_title </td> <td>(</td> <td class="paramtype">const <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a> & </td> <td class="paramname"><em>title</em></td><td>)</td> <td></td> </tr> </table> </div> <div class="memdoc"> <p>Sets the title string for the menu. </p> <p>The title is displayed when the menu is shown as a tearoff menu. If <em>title</em> is <code>0</code>, the menu will see if it is attached to a parent menu item, and if so it will try to use the same text as that menu item's label. </p> <dl><dt><b>Parameters:</b></dt><dd> <table class="params"> <tr><td class="paramname">title</td><td>A string containing the title for the menu. </td></tr> </table> </dd> </dl> </div> </div> <a class="anchor" id="a7202ceac91d65cbf09def78c4f7e6628"></a><!-- doxytag: member="Gtk::Menu::unset_accel_group" ref="a7202ceac91d65cbf09def78c4f7e6628" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void Gtk::Menu::unset_accel_group </td> <td>(</td> <td class="paramname"></td><td>)</td> <td></td> </tr> </table> </div> <div class="memdoc"> </div> </div> <a class="anchor" id="a8c2228e776a0f1f8e3a3328c7e5f83a6"></a><!-- doxytag: member="Gtk::Menu::unset_title" ref="a8c2228e776a0f1f8e3a3328c7e5f83a6" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void Gtk::Menu::unset_title </td> <td>(</td> <td class="paramname"></td><td>)</td> <td></td> </tr> </table> </div> <div class="memdoc"> </div> </div> <hr/><h2>Friends And Related Function Documentation</h2> <a class="anchor" id="a553dba6e5634da8fcf6381bc83bbc20f"></a><!-- doxytag: member="Gtk::Menu::wrap" ref="a553dba6e5634da8fcf6381bc83bbc20f" args="(GtkMenu *object, bool take_copy=false)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classGtk_1_1Menu.html">Gtk::Menu</a>* wrap </td> <td>(</td> <td class="paramtype">GtkMenu * </td> <td class="paramname"><em>object</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">bool </td> <td class="paramname"><em>take_copy</em> = <code>false</code> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td><code> [related]</code></td> </tr> </table> </div> <div class="memdoc"> <p>A <a class="elRef" href="../../../glibmm-2.4/reference/html/namespaceGlib.html#a671306f4a3a0cae5ab4d7a9d54886592">Glib::wrap()</a> method for this object. </p> <dl><dt><b>Parameters:</b></dt><dd> <table class="params"> <tr><td class="paramname">object</td><td>The C instance. </td></tr> <tr><td class="paramname">take_copy</td><td>False if the result should take ownership of the C instance. True if it should take a new copy or ref. </td></tr> </table> </dd> </dl> <dl class="return"><dt><b>Returns:</b></dt><dd>A C++ instance that wraps this C instance. </dd></dl> </div> </div> <hr/>The documentation for this class was generated from the following file:<ul> <li>gtkmm/menu.h</li> </ul> </div> <hr class="footer"/><address class="footer"><small>Generated on Tue Jun 25 2013 for gtkmm by  <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.7.3 </small></address> </body> </html>