<!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_Helpers::StockMenuElem 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.6.1 --> <div class="navigation" id="top"> <div class="tabs"> <ul> <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 class="tabs"> <ul> <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="hierarchy.html"><span>Class Hierarchy</span></a></li> <li><a href="functions.html"><span>Class Members</span></a></li> </ul> </div> <div class="navpath"><a class="el" href="namespaceGtk.html">Gtk</a>::<a class="el" href="namespaceGtk_1_1Menu__Helpers.html">Menu_Helpers</a>::<a class="el" href="classGtk_1_1Menu__Helpers_1_1StockMenuElem.html">StockMenuElem</a> </div> </div> <div class="contents"> <h1>Gtk::Menu_Helpers::StockMenuElem Class Reference</h1><!-- doxytag: class="Gtk::Menu_Helpers::StockMenuElem" --><!-- doxytag: inherits="Gtk::Menu_Helpers::Element" --> <p>Inherits <a class="el" href="classGtk_1_1Menu__Helpers_1_1Element.html">Gtk::Menu_Helpers::Element</a>.</p> <div class="dynheader"> Collaboration diagram for Gtk::Menu_Helpers::StockMenuElem:</div> <div class="dynsection"> <div class="center"><img src="classGtk_1_1Menu__Helpers_1_1StockMenuElem__coll__graph.png" border="0" usemap="#Gtk_1_1Menu__Helpers_1_1StockMenuElem_coll__map" alt="Collaboration graph"/></div> <map name="Gtk_1_1Menu__Helpers_1_1StockMenuElem_coll__map" id="Gtk_1_1Menu__Helpers_1_1StockMenuElem_coll__map"> <area shape="rect" href="classGtk_1_1Menu__Helpers_1_1Element.html" title="Gtk::Menu_Helpers::Element" alt="" coords="29,197,219,227"/><area shape="rect" href="../../../glibmm-2.4/reference/html/classGlib_1_1RefPtr.html" title="Glib::RefPtr\< MenuItem \>" alt="" coords="39,101,209,131"/><area shape="rect" href="../../../glibmm-2.4/reference/html/classGlib_1_1RefPtr.html" title="Glib::RefPtr\< T_CppObject \>" alt="" coords="29,5,219,35"/></map> <center><span class="legend">[<a href="graph_legend.html">legend</a>]</span></center></div> <p><a href="classGtk_1_1Menu__Helpers_1_1StockMenuElem-members.html">List of all members.</a></p> <table border="0" cellpadding="0" cellspacing="0"> <tr><td colspan="2"><h2>Public Member Functions</h2></td></tr> <tr><td class="memItemLeft" align="right" valign="top"> </td><td class="memItemRight" valign="bottom"><a class="el" href="classGtk_1_1Menu__Helpers_1_1StockMenuElem.html#a74e857e57598b87982d91bdeff00510c">StockMenuElem</a> (const <a class="el" href="classGtk_1_1StockID.html">Gtk::StockID</a>& stock_id, const <a class="elRef" href="../../../libsigc++-2.0/reference/html/classsigc_1_1slot.html">CallSlot</a>& slot=<a class="elRef" href="../../../libsigc++-2.0/reference/html/classsigc_1_1slot.html">CallSlot</a>())</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Create a non-accelerated <a class="el" href="classGtk_1_1MenuItem.html" title="Child item for menus.">MenuItem</a> from a stock item. <a href="#a74e857e57598b87982d91bdeff00510c"></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__Helpers_1_1StockMenuElem.html#adaa3397ef7181512f6635ebdad47e74e">StockMenuElem</a> (const <a class="el" href="classGtk_1_1StockID.html">Gtk::StockID</a>& stock_id, const <a class="el" href="classGtk_1_1AccelKey.html">AccelKey</a>& key, const <a class="elRef" href="../../../libsigc++-2.0/reference/html/classsigc_1_1slot.html">CallSlot</a>& slot=<a class="elRef" href="../../../libsigc++-2.0/reference/html/classsigc_1_1slot.html">CallSlot</a>())</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Create an accelerated <a class="el" href="classGtk_1_1MenuItem.html" title="Child item for menus.">MenuItem</a> from a stock item. <a href="#adaa3397ef7181512f6635ebdad47e74e"></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__Helpers_1_1StockMenuElem.html#a757e72f49ebb91c254af73557a8f56a5">StockMenuElem</a> (const <a class="el" href="classGtk_1_1StockID.html">Gtk::StockID</a>& stock_id, <a class="el" href="classGtk_1_1Menu.html">Gtk::Menu</a>& submenu)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Create a non-accelerated <a class="el" href="classGtk_1_1MenuItem.html" title="Child item for menus.">MenuItem</a> from a stock item with a submenu. <a href="#a757e72f49ebb91c254af73557a8f56a5"></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__Helpers_1_1StockMenuElem.html#a36b8dccc273e496695d77202e6a18ba5">StockMenuElem</a> (const <a class="el" href="classGtk_1_1StockID.html">Gtk::StockID</a>& stock_id, const <a class="el" href="classGtk_1_1AccelKey.html">AccelKey</a>& key, <a class="el" href="classGtk_1_1Menu.html">Gtk::Menu</a>& submenu)</td></tr> <tr><td class="mdescLeft"> </td><td class="mdescRight">Create an accelerated <a class="el" href="classGtk_1_1MenuItem.html" title="Child item for menus.">MenuItem</a> from a stock item with a submenu. <a href="#a36b8dccc273e496695d77202e6a18ba5"></a><br/></td></tr> </table> <hr/><h2>Constructor & Destructor Documentation</h2> <a class="anchor" id="a74e857e57598b87982d91bdeff00510c"></a><!-- doxytag: member="Gtk::Menu_Helpers::StockMenuElem::StockMenuElem" ref="a74e857e57598b87982d91bdeff00510c" args="(const Gtk::StockID &stock_id, const CallSlot &slot=CallSlot())" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">Gtk::Menu_Helpers::StockMenuElem::StockMenuElem </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> </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">CallSlot</a> & </td> <td class="paramname"> <em>slot</em> = <code><a class="elRef" href="../../../libsigc++-2.0/reference/html/classsigc_1_1slot.html">CallSlot</a>()</code></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td></td> </tr> </table> </div> <div class="memdoc"> <p>Create a non-accelerated <a class="el" href="classGtk_1_1MenuItem.html" title="Child item for menus.">MenuItem</a> from a stock item. </p> <dl><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>stock_id</em> </td><td>The ID of the stock item </td></tr> <tr><td valign="top"></td><td valign="top"><em>slot</em> </td><td>Use <a class="elRef" href="../../../libsigc++-2.0/reference/html/group__mem__fun.html#ga7d9ea809173f48bf5c76cf1989591602">sigc::mem_fun()</a> to specify a signal handler </td></tr> </table> </dd> </dl> </div> </div> <a class="anchor" id="adaa3397ef7181512f6635ebdad47e74e"></a><!-- doxytag: member="Gtk::Menu_Helpers::StockMenuElem::StockMenuElem" ref="adaa3397ef7181512f6635ebdad47e74e" args="(const Gtk::StockID &stock_id, const AccelKey &key, const CallSlot &slot=CallSlot())" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">Gtk::Menu_Helpers::StockMenuElem::StockMenuElem </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> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const <a class="el" href="classGtk_1_1AccelKey.html">AccelKey</a>& </td> <td class="paramname"> <em>key</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">CallSlot</a> & </td> <td class="paramname"> <em>slot</em> = <code><a class="elRef" href="../../../libsigc++-2.0/reference/html/classsigc_1_1slot.html">CallSlot</a>()</code></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td></td> </tr> </table> </div> <div class="memdoc"> <p>Create an accelerated <a class="el" href="classGtk_1_1MenuItem.html" title="Child item for menus.">MenuItem</a> from a stock item. </p> <dl><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>stock_id</em> </td><td>The ID of the stock item </td></tr> <tr><td valign="top"></td><td valign="top"><em>key</em> </td><td>The accelerator key combination </td></tr> <tr><td valign="top"></td><td valign="top"><em>slot</em> </td><td>Use <a class="elRef" href="../../../libsigc++-2.0/reference/html/group__mem__fun.html#ga7d9ea809173f48bf5c76cf1989591602">sigc::mem_fun()</a> to specify a signal handler </td></tr> </table> </dd> </dl> </div> </div> <a class="anchor" id="a757e72f49ebb91c254af73557a8f56a5"></a><!-- doxytag: member="Gtk::Menu_Helpers::StockMenuElem::StockMenuElem" ref="a757e72f49ebb91c254af73557a8f56a5" args="(const Gtk::StockID &stock_id, Gtk::Menu &submenu)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">Gtk::Menu_Helpers::StockMenuElem::StockMenuElem </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> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="classGtk_1_1Menu.html">Gtk::Menu</a>& </td> <td class="paramname"> <em>submenu</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td></td> </tr> </table> </div> <div class="memdoc"> <p>Create a non-accelerated <a class="el" href="classGtk_1_1MenuItem.html" title="Child item for menus.">MenuItem</a> from a stock item with a submenu. </p> <dl><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>stock_id</em> </td><td>The ID of the stock item </td></tr> <tr><td valign="top"></td><td valign="top"><em>submenu</em> </td><td>The sub menu </td></tr> </table> </dd> </dl> </div> </div> <a class="anchor" id="a36b8dccc273e496695d77202e6a18ba5"></a><!-- doxytag: member="Gtk::Menu_Helpers::StockMenuElem::StockMenuElem" ref="a36b8dccc273e496695d77202e6a18ba5" args="(const Gtk::StockID &stock_id, const AccelKey &key, Gtk::Menu &submenu)" --> <div class="memitem"> <div class="memproto"> <table class="memname"> <tr> <td class="memname">Gtk::Menu_Helpers::StockMenuElem::StockMenuElem </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> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype">const <a class="el" href="classGtk_1_1AccelKey.html">AccelKey</a>& </td> <td class="paramname"> <em>key</em>, </td> </tr> <tr> <td class="paramkey"></td> <td></td> <td class="paramtype"><a class="el" href="classGtk_1_1Menu.html">Gtk::Menu</a>& </td> <td class="paramname"> <em>submenu</em></td><td> </td> </tr> <tr> <td></td> <td>)</td> <td></td><td></td><td></td> </tr> </table> </div> <div class="memdoc"> <p>Create an accelerated <a class="el" href="classGtk_1_1MenuItem.html" title="Child item for menus.">MenuItem</a> from a stock item with a submenu. </p> <dl><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign="top"></td><td valign="top"><em>stock_id</em> </td><td>The ID of the stock item </td></tr> <tr><td valign="top"></td><td valign="top"><em>key</em> </td><td>The accelerator key combination </td></tr> <tr><td valign="top"></td><td valign="top"><em>submenu</em> </td><td>The sub menu </td></tr> </table> </dd> </dl> </div> </div> <hr/>The documentation for this class was generated from the following file:<ul> <li>gtkmm/menu_elems.h</li> </ul> </div> <hr size="1"/><address style="text-align: right;"><small>Generated on Tue May 4 13:22:12 2010 for gtkmm by  <a href="http://www.doxygen.org/index.html"> <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.6.1 </small></address> </body> </html>