<!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::MenuToolButton 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_1MenuToolButton.html">MenuToolButton</a> </li> </ul> </div> </div> <div class="header"> <div class="summary"> <a href="#pub-methods">Public Member Functions</a> | <a href="#pro-methods">Protected Member Functions</a> | <a href="#related">Related Functions</a> </div> <div class="headertitle"> <h1>Gtk::MenuToolButton Class Reference<div class="ingroups"><a class="el" href="group__Widgets.html">Widgets</a></div></h1> </div> </div> <div class="contents"> <!-- doxytag: class="Gtk::MenuToolButton" --><!-- doxytag: inherits="Gtk::ToolButton" --> <p>A <a class="el" href="classGtk_1_1ToolItem.html">Gtk::ToolItem</a> containing a toggle button. <a href="#_details">More...</a></p> <div class="dynheader"> Inheritance diagram for Gtk::MenuToolButton:</div> <div class="dyncontent"> <div class="center"><img src="classGtk_1_1MenuToolButton__inherit__graph.png" border="0" usemap="#Gtk_1_1MenuToolButton_inherit__map" alt="Inheritance graph"/></div> <map name="Gtk_1_1MenuToolButton_inherit__map" id="Gtk_1_1MenuToolButton_inherit__map"> <area shape="rect" id="node2" href="classGtk_1_1ToolButton.html" title="A Gtk::ToolItem subclass that displays buttons." alt="" coords="77,624,195,653"/><area shape="rect" id="node4" href="classGtk_1_1ToolItem.html" title="Gtk::ToolItem" alt="" coords="84,547,188,576"/><area shape="rect" id="node6" href="classGtk_1_1Bin.html" title="A container with just one child." alt="" coords="100,469,172,499"/><area shape="rect" id="node8" href="classGtk_1_1Container.html" title="Abstract container class." alt="" coords="79,392,193,421"/><area shape="rect" id="node10" href="classGtk_1_1Widget.html" title="Abstract Widget (Base class for all widgets)" alt="" coords="89,315,183,344"/><area shape="rect" id="node12" 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="node14" href="../../../glibmm-2.4/reference/html/classGlib_1_1Object.html" title="Glib::Object" alt="" coords="21,160,115,189"/><area shape="rect" id="node16" href="../../../glibmm-2.4/reference/html/classGlib_1_1ObjectBase.html" title="Glib::ObjectBase" alt="" coords="5,83,131,112"/><area shape="rect" id="node18" href="../../../libsigc++-2.0/reference/html/structsigc_1_1trackable.html" title="sigc::trackable" alt="" coords="11,5,125,35"/><area shape="rect" id="node20" 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::MenuToolButton:</div> <div class="dyncontent"> <div class="center"><img src="classGtk_1_1MenuToolButton__coll__graph.png" border="0" usemap="#Gtk_1_1MenuToolButton_coll__map" alt="Collaboration graph"/></div> <map name="Gtk_1_1MenuToolButton_coll__map" id="Gtk_1_1MenuToolButton_coll__map"> <area shape="rect" id="node2" href="classGtk_1_1ToolButton.html" title="A Gtk::ToolItem subclass that displays buttons." alt="" coords="77,624,195,653"/><area shape="rect" id="node4" href="classGtk_1_1ToolItem.html" title="Gtk::ToolItem" alt="" coords="84,547,188,576"/><area shape="rect" id="node6" href="classGtk_1_1Bin.html" title="A container with just one child." alt="" coords="100,469,172,499"/><area shape="rect" id="node8" href="classGtk_1_1Container.html" title="Abstract container class." alt="" coords="79,392,193,421"/><area shape="rect" id="node10" href="classGtk_1_1Widget.html" title="Abstract Widget (Base class for all widgets)" alt="" coords="89,315,183,344"/><area shape="rect" id="node12" 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="node14" href="../../../glibmm-2.4/reference/html/classGlib_1_1Object.html" title="Glib::Object" alt="" coords="21,160,115,189"/><area shape="rect" id="node16" href="../../../glibmm-2.4/reference/html/classGlib_1_1ObjectBase.html" title="Glib::ObjectBase" alt="" coords="5,83,131,112"/><area shape="rect" id="node18" href="../../../libsigc++-2.0/reference/html/structsigc_1_1trackable.html" title="sigc::trackable" alt="" coords="11,5,125,35"/><area shape="rect" id="node20" 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> <p><a href="classGtk_1_1MenuToolButton-members.html">List of all members.</a></p> <table class="memberdecls"> <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_1MenuToolButton.html#a99eabb98fc5798da106b05bdde69e000">~MenuToolButton</a> ()</td></tr> <tr><td class="memItemLeft" align="right" valign="top">GtkMenuToolButton* </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1MenuToolButton.html#a6d5506c273ce86a54862ba3b70758b47">gobj</a> ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Provides access to the underlying C GtkObject. <a href="#a6d5506c273ce86a54862ba3b70758b47"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">const GtkMenuToolButton* </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1MenuToolButton.html#a8f6c8dc97c8977b75b37a8160bbb8a55">gobj</a> () const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Provides access to the underlying C GtkObject. <a href="#a8f6c8dc97c8977b75b37a8160bbb8a55"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1MenuToolButton.html#a43a1f2351eabf3e6bcbe01f78c3be35c">MenuToolButton</a> ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Creates a new <a class="el" href="classGtk_1_1MenuToolButton.html" title="A Gtk::ToolItem containing a toggle button.">MenuToolButton</a>. <a href="#a43a1f2351eabf3e6bcbe01f78c3be35c"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1MenuToolButton.html#adcf4a930fdc93a3b96bc16fe02688523">MenuToolButton</a> (const <a class="el" href="classGtk_1_1StockID.html">Gtk::StockID</a>& stock_id)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Creates a new <a class="el" href="classGtk_1_1MenuToolButton.html" title="A Gtk::ToolItem containing a toggle button.">MenuToolButton</a> from a <a class="el" href="classGtk_1_1StockID.html" title="See also Gtk::BuiltinStockID.">StockID</a>. <a href="#adcf4a930fdc93a3b96bc16fe02688523"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1MenuToolButton.html#ab5b485f92c2517310a51dcc30f95b905">MenuToolButton</a> (const <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a>& label)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Creates a new <a class="el" href="classGtk_1_1MenuToolButton.html" title="A Gtk::ToolItem containing a toggle button.">MenuToolButton</a> with a label. <a href="#ab5b485f92c2517310a51dcc30f95b905"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1MenuToolButton.html#a6428aeb6f02e0b7ade8dcacd207c48d2">MenuToolButton</a> (<a class="el" href="classGtk_1_1Widget.html">Widget</a>& icon_widget, const <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a>& label=<a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a>())</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Creates a new <a class="el" href="classGtk_1_1MenuToolButton.html" title="A Gtk::ToolItem containing a toggle button.">MenuToolButton</a> with an image. <a href="#a6428aeb6f02e0b7ade8dcacd207c48d2"></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_1MenuToolButton.html#a9ec12649e132fd492160be1788546705">set_menu</a> (<a class="el" href="classGtk_1_1Menu.html">Menu</a>& menu)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Sets the <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> that is popped up when the user clicks on the arrow. <a href="#a9ec12649e132fd492160be1788546705"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="el" href="classGtk_1_1Menu.html">Menu</a>* </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1MenuToolButton.html#a39f2d1c846be54a1eca80c93f84fafaa">get_menu</a> ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Gets the <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> associated with <a class="el" href="classGtk_1_1MenuToolButton.html" title="A Gtk::ToolItem containing a toggle button.">Gtk::MenuToolButton</a>. <a href="#a39f2d1c846be54a1eca80c93f84fafaa"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top">const <a class="el" href="classGtk_1_1Menu.html">Menu</a>* </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1MenuToolButton.html#acee1adbcde9520b35caa103539928251">get_menu</a> () const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Gets the <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> associated with <a class="el" href="classGtk_1_1MenuToolButton.html" title="A Gtk::ToolItem containing a toggle button.">Gtk::MenuToolButton</a>. <a href="#acee1adbcde9520b35caa103539928251"></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_1MenuToolButton.html#aafe7aa1160bed6ab4b22f0cc7cdce180">set_arrow_tooltip</a> (<a class="el" href="classGtk_1_1Tooltips.html">Tooltips</a>& tooltips, const <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a>& tip_text, const <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a>& tip_private)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Sets the <a class="el" href="classGtk_1_1Tooltips.html" title="Tooltips are the messages that appear next to a widget when the mouse pointer is held over it for a s...">Gtk::Tooltips</a> object to be used for arrow button which pops up the menu. <a href="#aafe7aa1160bed6ab4b22f0cc7cdce180"></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_1MenuToolButton.html#a59259aa6cb99757c9a459315c6d60b15">set_arrow_tooltip_text</a> (const <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a>& text)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Sets the tooltip text to be used as tooltip for the arrow button which pops up the menu. <a href="#a59259aa6cb99757c9a459315c6d60b15"></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_1MenuToolButton.html#a64097d80577cf2eae567ca100e7a286c">set_arrow_tooltip_markup</a> (const <a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a>& markup)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Sets the tooltip markup text to be used as tooltip for the arrow button which pops up the menu. <a href="#a64097d80577cf2eae567ca100e7a286c"></a><br/></td></tr> <tr><td class="memItemLeft" align="right" valign="top"><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1SignalProxy0.html">Glib::SignalProxy0</a>< void > </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1MenuToolButton.html#a1f3e1834515c97d40d9b57d0fde6bf60">signal_show_menu</a> ()</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_1Menu.html">Menu</a>* > </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1MenuToolButton.html#ae33e9b90b4063b2a4b93793b0e9fcb68">property_menu</a> ()</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">The dropdown menu. <a href="#ae33e9b90b4063b2a4b93793b0e9fcb68"></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_1Menu.html">Menu</a>* > </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1MenuToolButton.html#ac1b51acab50c60b8f95796364c5131f2">property_menu</a> () const </td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">The dropdown menu. <a href="#ac1b51acab50c60b8f95796364c5131f2"></a><br/></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">virtual void </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1MenuToolButton.html#a261f2932985ebd7ad526661b9bf14d64">on_show_menu</a> ()</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_1MenuToolButton.html">Gtk::MenuToolButton</a>* </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1MenuToolButton.html#ae20b5bb8c723c755dbc71532da249de0">wrap</a> (GtkMenuToolButton* 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="#ae20b5bb8c723c755dbc71532da249de0"></a><br/></td></tr> </table> <hr/><a name="_details"></a><h2>Detailed Description</h2> <div class="textblock"><p>A <a class="el" href="classGtk_1_1ToolItem.html">Gtk::ToolItem</a> containing a toggle button. </p> <p>A <a class="el" href="classGtk_1_1MenuToolButton.html" title="A Gtk::ToolItem containing a toggle button.">MenuToolButton</a> is a <a class="el" href="classGtk_1_1ToolItem.html">Gtk::ToolItem</a> that contains a menu. </p> </div><hr/><h2>Constructor & Destructor Documentation</h2> <a class="anchor" id="a99eabb98fc5798da106b05bdde69e000"></a><!-- doxytag: member="Gtk::MenuToolButton::~MenuToolButton" ref="a99eabb98fc5798da106b05bdde69e000" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">virtual Gtk::MenuToolButton::~MenuToolButton </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="a43a1f2351eabf3e6bcbe01f78c3be35c"></a><!-- doxytag: member="Gtk::MenuToolButton::MenuToolButton" ref="a43a1f2351eabf3e6bcbe01f78c3be35c" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">Gtk::MenuToolButton::MenuToolButton </td> <td>(</td> <td class="paramname"></td><td>)</td> <td></td> </tr> </table> </div> <div class="memdoc"> <p>Creates a new <a class="el" href="classGtk_1_1MenuToolButton.html" title="A Gtk::ToolItem containing a toggle button.">MenuToolButton</a>. </p> </div> </div> <a class="anchor" id="adcf4a930fdc93a3b96bc16fe02688523"></a><!-- doxytag: member="Gtk::MenuToolButton::MenuToolButton" ref="adcf4a930fdc93a3b96bc16fe02688523" args="(const Gtk::StockID &stock_id)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">Gtk::MenuToolButton::MenuToolButton </td> <td>(</td> <td class="paramtype">const <a class="el" href="classGtk_1_1StockID.html">Gtk::StockID</a>& </td> <td class="paramname"><em>stock_id</em></td><td>)</td> <td><code> [explicit]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Creates a new <a class="el" href="classGtk_1_1MenuToolButton.html" title="A Gtk::ToolItem containing a toggle button.">MenuToolButton</a> from a <a class="el" href="classGtk_1_1StockID.html" title="See also Gtk::BuiltinStockID.">StockID</a>. </p> <p>The <a class="el" href="classGtk_1_1MenuToolButton.html" title="A Gtk::ToolItem containing a toggle button.">MenuToolButton</a> will be created according to the <em>stock_id</em> properties.</p> <dl><dt><b>Parameters:</b></dt><dd> <table class="params"> <tr><td class="paramname">stock_id</td><td>The <a class="el" href="classGtk_1_1StockID.html" title="See also Gtk::BuiltinStockID.">StockID</a> which determines the look of the <a class="el" href="classGtk_1_1MenuToolButton.html" title="A Gtk::ToolItem containing a toggle button.">MenuToolButton</a>. </td></tr> </table> </dd> </dl> </div> </div> <a class="anchor" id="ab5b485f92c2517310a51dcc30f95b905"></a><!-- doxytag: member="Gtk::MenuToolButton::MenuToolButton" ref="ab5b485f92c2517310a51dcc30f95b905" args="(const Glib::ustring &label)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">Gtk::MenuToolButton::MenuToolButton </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>label</em></td><td>)</td> <td><code> [explicit]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Creates a new <a class="el" href="classGtk_1_1MenuToolButton.html" title="A Gtk::ToolItem containing a toggle button.">MenuToolButton</a> with a label. </p> <p>The <a class="el" href="classGtk_1_1MenuToolButton.html" title="A Gtk::ToolItem containing a toggle button.">MenuToolButton</a> will have the label <em>label</em>.</p> <dl><dt><b>Parameters:</b></dt><dd> <table class="params"> <tr><td class="paramname">label</td><td>The string used to display the label for this <a class="el" href="classGtk_1_1MenuToolButton.html" title="A Gtk::ToolItem containing a toggle button.">MenuToolButton</a>. </td></tr> </table> </dd> </dl> </div> </div> <a class="anchor" id="a6428aeb6f02e0b7ade8dcacd207c48d2"></a><!-- doxytag: member="Gtk::MenuToolButton::MenuToolButton" ref="a6428aeb6f02e0b7ade8dcacd207c48d2" args="(Widget &icon_widget, const Glib::ustring &label=Glib::ustring())" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">Gtk::MenuToolButton::MenuToolButton </td> <td>(</td> <td class="paramtype"><a class="el" href="classGtk_1_1Widget.html">Widget</a>& </td> <td class="paramname"><em>icon_widget</em>, </td> </tr> <tr> <td class="paramkey"></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>label</em> = <code><a class="elRef" href="../../../glibmm-2.4/reference/html/classGlib_1_1ustring.html">Glib::ustring</a>()</code> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td><code> [explicit]</code></td> </tr> </table> </div> <div class="memdoc"> <p>Creates a new <a class="el" href="classGtk_1_1MenuToolButton.html" title="A Gtk::ToolItem containing a toggle button.">MenuToolButton</a> with an image. </p> <p>The <a class="el" href="classGtk_1_1MenuToolButton.html" title="A Gtk::ToolItem containing a toggle button.">MenuToolButton</a> will have the label <em>label</em> and an image widget <em>icon_widget</em>.</p> <dl><dt><b>Parameters:</b></dt><dd> <table class="params"> <tr><td class="paramname">icon_widget</td><td>The widget placed as the MenuToolButton's icon. </td></tr> <tr><td class="paramname">label</td><td>The string used to display the label for this <a class="el" href="classGtk_1_1MenuToolButton.html" title="A Gtk::ToolItem containing a toggle button.">MenuToolButton</a>. </td></tr> </table> </dd> </dl> </div> </div> <hr/><h2>Member Function Documentation</h2> <a class="anchor" id="a39f2d1c846be54a1eca80c93f84fafaa"></a><!-- doxytag: member="Gtk::MenuToolButton::get_menu" ref="a39f2d1c846be54a1eca80c93f84fafaa" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classGtk_1_1Menu.html">Menu</a>* Gtk::MenuToolButton::get_menu </td> <td>(</td> <td class="paramname"></td><td>)</td> <td></td> </tr> </table> </div> <div class="memdoc"> <p>Gets the <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> associated with <a class="el" href="classGtk_1_1MenuToolButton.html" title="A Gtk::ToolItem containing a toggle button.">Gtk::MenuToolButton</a>. </p> <dl class="since_2_6"><dt><b><a class="el" href="since_2_6.html#_since_2_6000135">Since gtkmm 2.6:</a></b></dt><dd></dd></dl> <dl class="return"><dt><b>Returns:</b></dt><dd>The <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> associated with <a class="el" href="classGtk_1_1MenuToolButton.html" title="A Gtk::ToolItem containing a toggle button.">Gtk::MenuToolButton</a>. </dd></dl> </div> </div> <a class="anchor" id="acee1adbcde9520b35caa103539928251"></a><!-- doxytag: member="Gtk::MenuToolButton::get_menu" ref="acee1adbcde9520b35caa103539928251" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">const <a class="el" href="classGtk_1_1Menu.html">Menu</a>* Gtk::MenuToolButton::get_menu </td> <td>(</td> <td class="paramname"></td><td>)</td> <td> const</td> </tr> </table> </div> <div class="memdoc"> <p>Gets the <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> associated with <a class="el" href="classGtk_1_1MenuToolButton.html" title="A Gtk::ToolItem containing a toggle button.">Gtk::MenuToolButton</a>. </p> <dl class="since_2_6"><dt><b><a class="el" href="since_2_6.html#_since_2_6000136">Since gtkmm 2.6:</a></b></dt><dd></dd></dl> <dl class="return"><dt><b>Returns:</b></dt><dd>The <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> associated with <a class="el" href="classGtk_1_1MenuToolButton.html" title="A Gtk::ToolItem containing a toggle button.">Gtk::MenuToolButton</a>. </dd></dl> </div> </div> <a class="anchor" id="a6d5506c273ce86a54862ba3b70758b47"></a><!-- doxytag: member="Gtk::MenuToolButton::gobj" ref="a6d5506c273ce86a54862ba3b70758b47" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">GtkMenuToolButton* Gtk::MenuToolButton::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_1ToolButton.html#a451fe61a9536f6eb5e55e70ba79eaeea">Gtk::ToolButton</a>.</p> </div> </div> <a class="anchor" id="a8f6c8dc97c8977b75b37a8160bbb8a55"></a><!-- doxytag: member="Gtk::MenuToolButton::gobj" ref="a8f6c8dc97c8977b75b37a8160bbb8a55" args="() const " --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">const GtkMenuToolButton* Gtk::MenuToolButton::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_1ToolButton.html#a4a54eeeeeff0a72d2d3b1cc6db6e7350">Gtk::ToolButton</a>.</p> </div> </div> <a class="anchor" id="a261f2932985ebd7ad526661b9bf14d64"></a><!-- doxytag: member="Gtk::MenuToolButton::on_show_menu" ref="a261f2932985ebd7ad526661b9bf14d64" args="()" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">virtual void Gtk::MenuToolButton::on_show_menu </td> <td>(</td> <td class="paramname"></td><td>)</td> <td><code> [protected, virtual]</code></td> </tr> </table> </div> <div class="memdoc"> </div> </div> <a class="anchor" id="ae33e9b90b4063b2a4b93793b0e9fcb68"></a><!-- doxytag: member="Gtk::MenuToolButton::property_menu" ref="ae33e9b90b4063b2a4b93793b0e9fcb68" 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_1Menu.html">Menu</a>*> Gtk::MenuToolButton::property_menu </td> <td>(</td> <td class="paramname"></td><td>)</td> <td></td> </tr> </table> </div> <div class="memdoc"> <p>The dropdown 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="ac1b51acab50c60b8f95796364c5131f2"></a><!-- doxytag: member="Gtk::MenuToolButton::property_menu" ref="ac1b51acab50c60b8f95796364c5131f2" 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_1Menu.html">Menu</a>*> Gtk::MenuToolButton::property_menu </td> <td>(</td> <td class="paramname"></td><td>)</td> <td> const</td> </tr> </table> </div> <div class="memdoc"> <p>The dropdown 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="aafe7aa1160bed6ab4b22f0cc7cdce180"></a><!-- doxytag: member="Gtk::MenuToolButton::set_arrow_tooltip" ref="aafe7aa1160bed6ab4b22f0cc7cdce180" args="(Tooltips &tooltips, const Glib::ustring &tip_text, const Glib::ustring &tip_private)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void Gtk::MenuToolButton::set_arrow_tooltip </td> <td>(</td> <td class="paramtype"><a class="el" href="classGtk_1_1Tooltips.html">Tooltips</a>& </td> <td class="paramname"><em>tooltips</em>, </td> </tr> <tr> <td class="paramkey"></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>tip_text</em>, </td> </tr> <tr> <td class="paramkey"></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>tip_private</em> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td> </tr> </table> </div> <div class="memdoc"> <p>Sets the <a class="el" href="classGtk_1_1Tooltips.html" title="Tooltips are the messages that appear next to a widget when the mouse pointer is held over it for a s...">Gtk::Tooltips</a> object to be used for arrow button which pops up the menu. </p> <p>See <a class="el" href="classGtk_1_1ToolItem.html#aeabf9f4f654dfedbc40d0b7b9bc3eacc" title="Sets the Gtk::Tooltips object to be used for tool_item, the text to be displayed as tooltip on the it...">Gtk::ToolItem::set_tooltip()</a> for setting a tooltip on the whole <a class="el" href="classGtk_1_1MenuToolButton.html" title="A Gtk::ToolItem containing a toggle button.">Gtk::MenuToolButton</a>.</p> <dl class="since_2_6"><dt><b><a class="el" href="since_2_6.html#_since_2_6000137">Since gtkmm 2.6:</a></b></dt><dd></dd></dl> <p>Deprecated: 2.12: Use <a class="el" href="classGtk_1_1MenuToolButton.html#a59259aa6cb99757c9a459315c6d60b15" title="Sets the tooltip text to be used as tooltip for the arrow button which pops up the menu...">set_arrow_tooltip_text()</a> instead. </p> <dl class="deprecated"><dt><b><a class="el" href="deprecated.html#_deprecated000062">Deprecated:</a></b></dt><dd>Use <a class="el" href="classGtk_1_1MenuToolButton.html#a59259aa6cb99757c9a459315c6d60b15" title="Sets the tooltip text to be used as tooltip for the arrow button which pops up the menu...">set_arrow_tooltip_text()</a> or <a class="el" href="classGtk_1_1MenuToolButton.html#a64097d80577cf2eae567ca100e7a286c" title="Sets the tooltip markup text to be used as tooltip for the arrow button which pops up the menu...">set_arrow_tooltip_markup()</a> instead </dd></dl> <dl><dt><b>Parameters:</b></dt><dd> <table class="params"> <tr><td class="paramname">tooltips</td><td>The <a class="el" href="classGtk_1_1Tooltips.html" title="Tooltips are the messages that appear next to a widget when the mouse pointer is held over it for a s...">Gtk::Tooltips</a> object to be used. </td></tr> <tr><td class="paramname">tip_text</td><td>Text to be used as tooltip text for tool_item. </td></tr> <tr><td class="paramname">tip_private</td><td>Text to be used as private tooltip text. </td></tr> </table> </dd> </dl> </div> </div> <a class="anchor" id="a64097d80577cf2eae567ca100e7a286c"></a><!-- doxytag: member="Gtk::MenuToolButton::set_arrow_tooltip_markup" ref="a64097d80577cf2eae567ca100e7a286c" args="(const Glib::ustring &markup)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void Gtk::MenuToolButton::set_arrow_tooltip_markup </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>markup</em></td><td>)</td> <td></td> </tr> </table> </div> <div class="memdoc"> <p>Sets the tooltip markup text to be used as tooltip for the arrow button which pops up the menu. </p> <p>See <a class="el" href="classGtk_1_1ToolItem.html#aeabf9f4f654dfedbc40d0b7b9bc3eacc" title="Sets the Gtk::Tooltips object to be used for tool_item, the text to be displayed as tooltip on the it...">Gtk::ToolItem::set_tooltip()</a> for setting a tooltip on the whole <a class="el" href="classGtk_1_1MenuToolButton.html" title="A Gtk::ToolItem containing a toggle button.">Gtk::MenuToolButton</a>.</p> <dl class="since_2_12"><dt><b><a class="el" href="since_2_12.html#_since_2_12000050">Since gtkmm 2.12:</a></b></dt><dd></dd></dl> <dl><dt><b>Parameters:</b></dt><dd> <table class="params"> <tr><td class="paramname">markup</td><td>Markup text to be used as tooltip text for button's arrow button. </td></tr> </table> </dd> </dl> </div> </div> <a class="anchor" id="a59259aa6cb99757c9a459315c6d60b15"></a><!-- doxytag: member="Gtk::MenuToolButton::set_arrow_tooltip_text" ref="a59259aa6cb99757c9a459315c6d60b15" args="(const Glib::ustring &text)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void Gtk::MenuToolButton::set_arrow_tooltip_text </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>text</em></td><td>)</td> <td></td> </tr> </table> </div> <div class="memdoc"> <p>Sets the tooltip text to be used as tooltip for the arrow button which pops up the menu. </p> <p>See <a class="el" href="classGtk_1_1ToolItem.html#aeabf9f4f654dfedbc40d0b7b9bc3eacc" title="Sets the Gtk::Tooltips object to be used for tool_item, the text to be displayed as tooltip on the it...">Gtk::ToolItem::set_tooltip()</a> for setting a tooltip on the whole <a class="el" href="classGtk_1_1MenuToolButton.html" title="A Gtk::ToolItem containing a toggle button.">Gtk::MenuToolButton</a>.</p> <dl class="since_2_12"><dt><b><a class="el" href="since_2_12.html#_since_2_12000049">Since gtkmm 2.12:</a></b></dt><dd></dd></dl> <dl><dt><b>Parameters:</b></dt><dd> <table class="params"> <tr><td class="paramname">text</td><td>Text to be used as tooltip text for button's arrow button. </td></tr> </table> </dd> </dl> </div> </div> <a class="anchor" id="a9ec12649e132fd492160be1788546705"></a><!-- doxytag: member="Gtk::MenuToolButton::set_menu" ref="a9ec12649e132fd492160be1788546705" args="(Menu &menu)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">void Gtk::MenuToolButton::set_menu </td> <td>(</td> <td class="paramtype"><a class="el" href="classGtk_1_1Menu.html">Menu</a>& </td> <td class="paramname"><em>menu</em></td><td>)</td> <td></td> </tr> </table> </div> <div class="memdoc"> <p>Sets the <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> that is popped up when the user clicks on the arrow. </p> <p>If <em>menu</em> is <code>0</code>, the arrow button becomes insensitive.</p> <dl class="since_2_6"><dt><b><a class="el" href="since_2_6.html#_since_2_6000134">Since gtkmm 2.6:</a></b></dt><dd></dd></dl> <dl><dt><b>Parameters:</b></dt><dd> <table class="params"> <tr><td class="paramname">menu</td><td>The <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> associated with <a class="el" href="classGtk_1_1MenuToolButton.html" title="A Gtk::ToolItem containing a toggle button.">Gtk::MenuToolButton</a>. </td></tr> </table> </dd> </dl> </div> </div> <a class="anchor" id="a1f3e1834515c97d40d9b57d0fde6bf60"></a><!-- doxytag: member="Gtk::MenuToolButton::signal_show_menu" ref="a1f3e1834515c97d40d9b57d0fde6bf60" 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_1SignalProxy0.html">Glib::SignalProxy0</a>< void > Gtk::MenuToolButton::signal_show_menu </td> <td>(</td> <td class="paramname"></td><td>)</td> <td></td> </tr> </table> </div> <div class="memdoc"> <dl class="user"><dt><b>Prototype:</b></dt><dd><code>void on_my_show_menu()</code> </dd></dl> </div> </div> <hr/><h2>Friends And Related Function Documentation</h2> <a class="anchor" id="ae20b5bb8c723c755dbc71532da249de0"></a><!-- doxytag: member="Gtk::MenuToolButton::wrap" ref="ae20b5bb8c723c755dbc71532da249de0" args="(GtkMenuToolButton *object, bool take_copy=false)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname"><a class="el" href="classGtk_1_1MenuToolButton.html">Gtk::MenuToolButton</a>* wrap </td> <td>(</td> <td class="paramtype">GtkMenuToolButton * </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/menutoolbutton.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>