<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html><head><meta http-equiv="Content-Type" content="text/html;charset=iso-8859-1"> <title>Gtk::ImageMenuItem class Reference</title> <link href="doxygen.css" rel="stylesheet" type="text/css"> </head> <body bgcolor="#ffffff"> <table border="0" width="100%"> <tr> <td width="10%" height="40"><img src="../../images/gtkmm_logo.gif" alt="logo" border="0" width="100%" height="100%"/></td> <td width="90%" height="40"><img src="../../images/top.gif" alt="top" width="100%" height="40"/></td> </tr> </table> <center> <a class="qindex" href="../../index.html">Main Page</a> <a href="group__Widgets.html">Widgets</a> <a class="qindex" href="namespaces.html"> Namespaces</a> <a href="../../tutorial/html/index.html"> Book</a> </center> <hr width="100%"/> <!-- Generated by Doxygen 1.3-rc1 --> <h1>Gtk::ImageMenuItem Class Reference<br> <small> [<a class="el" href="group__Menus.html">Menu classes</a>, <a class="el" href="group__Widgets.html">Widgets</a>]</small> </h1>Inheritance diagram for Gtk::ImageMenuItem:<p><center><img src="classGtk_1_1ImageMenuItem__inherit__graph.png" border="0" usemap="#Gtk_1_1ImageMenuItem__inherit__map" alt="Inheritance graph"></center> <map name="Gtk_1_1ImageMenuItem__inherit__map"> <area href="classGtk_1_1MenuItem.html" shape="rect" coords="24,502,120,521" alt=""> <area href="classGtk_1_1Item.html" shape="rect" coords="40,433,104,452" alt=""> <area href="classGtk_1_1Bin.html" shape="rect" coords="44,364,100,382" alt=""> <area href="classGtk_1_1Container.html" shape="rect" coords="24,294,120,313" alt=""> <area href="classGtk_1_1Widget.html" shape="rect" coords="33,225,111,244" alt=""> <area href="classGtk_1_1Object.html" shape="rect" coords="33,156,111,174" alt=""> <area href="classGlib_1_1Object.html" shape="rect" coords="32,86,112,105" alt=""> <area href="classGlib_1_1ObjectBase.html" shape="rect" coords="17,17,127,36" alt=""> </map> <center><font size="2">[<a href="graph_legend.html">legend</a>]</font></center><a href="classGtk_1_1ImageMenuItem-members.html">List of all members.</a><table border=0 cellpadding=0 cellspacing=0> <tr><td></td></tr> <tr><td colspan=2><br><h2>Public Methods</h2></td></tr> <tr><td nowrap align=right valign=top>virtual </td><td valign=bottom><a class="el" href="classGtk_1_1ImageMenuItem.html#a0">~ImageMenuItem</a> ()</td></tr> <tr><td nowrap align=right valign=top>GtkImageMenuItem* </td><td valign=bottom><a class="el" href="classGtk_1_1ImageMenuItem.html#a1">gobj</a> ()</td></tr> <tr><td nowrap align=right valign=top>const GtkImageMenuItem* </td><td valign=bottom><a class="el" href="classGtk_1_1ImageMenuItem.html#a2">gobj</a> () const</td></tr> <tr><td nowrap align=right valign=top> </td><td valign=bottom><a class="el" href="classGtk_1_1ImageMenuItem.html#a3">ImageMenuItem</a> ()</td></tr> <tr><td nowrap align=right valign=top> </td><td valign=bottom><a class="el" href="classGtk_1_1ImageMenuItem.html#a4">ImageMenuItem</a> (<a class="el" href="classGtk_1_1Widget.html">Widget</a>& image, const <a class="el" href="classGlib_1_1ustring.html">Glib::ustring</a>& label, bool mnemonic=false)</td></tr> <tr><td nowrap align=right valign=top> </td><td valign=bottom><a class="el" href="classGtk_1_1ImageMenuItem.html#a5">ImageMenuItem</a> (const <a class="el" href="classGlib_1_1ustring.html">Glib::ustring</a>& label, bool mnemonic=false)</td></tr> <tr><td nowrap align=right valign=top> </td><td valign=bottom><a class="el" href="classGtk_1_1ImageMenuItem.html#a6">ImageMenuItem</a> (const <a class="el" href="classGtk_1_1StockID.html">StockID</a>& id)</td></tr> <tr><td nowrap align=right valign=top>void </td><td valign=bottom><a class="el" href="classGtk_1_1ImageMenuItem.html#a7">set_image</a> (<a class="el" href="classGtk_1_1Widget.html">Widget</a>& image)</td></tr> <tr><td> </td><td><font size=-1><em>Sets the image of <em>image_menu_item</em> to the given widget.</em> <a href="#a7"></a><em></em></font><br><br></td></tr> <tr><td nowrap align=right valign=top><a class="el" href="classGtk_1_1Widget.html">Widget</a>* </td><td valign=bottom><a class="el" href="classGtk_1_1ImageMenuItem.html#a8">get_image</a> ()</td></tr> <tr><td> </td><td><font size=-1><em>Gets the widget that is currently set as the image of <em>image_menu_item</em> .</em> <a href="#a8"></a><em></em></font><br><br></td></tr> <tr><td nowrap align=right valign=top>const <a class="el" href="classGtk_1_1Widget.html">Widget</a>* </td><td valign=bottom><a class="el" href="classGtk_1_1ImageMenuItem.html#a9">get_image</a> () const</td></tr> <tr><td> </td><td><font size=-1><em>Gets the widget that is currently set as the image of <em>image_menu_item</em> .</em> <a href="#a9"></a><em></em></font><br><br></td></tr> <tr><td colspan=2><br><h2>Related Functions</h2></td></tr> <tr><td colspan=2>(Note that these are not member functions.)<br><br></td></tr> <tr><td nowrap align=right valign=top>Gtk::ImageMenuItem* </td><td valign=bottom><a class="el" href="classGtk_1_1ImageMenuItem.html#k0">wrap</a> (GtkImageMenuItem* object, bool take_copy=false)</td></tr> </table> <hr><h2>Constructor & Destructor Documentation</h2> <a name="a0" doxytag="Gtk::ImageMenuItem::~ImageMenuItem"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> virtual Gtk::ImageMenuItem::~ImageMenuItem </td> <td class="md" valign="top">(</td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top">) </td> <td class="md" nowrap><code> [virtual]</code></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> </td> </tr> </table> <a name="a3" doxytag="Gtk::ImageMenuItem::ImageMenuItem"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> Gtk::ImageMenuItem::ImageMenuItem </td> <td class="md" valign="top">(</td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top">) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> </td> </tr> </table> <a name="a4" doxytag="Gtk::ImageMenuItem::ImageMenuItem"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> Gtk::ImageMenuItem::ImageMenuItem </td> <td class="md" valign="top">(</td> <td class="md" nowrap valign="top"><a class="el" href="classGtk_1_1Widget.html">Widget</a>& </td> <td class="mdname" nowrap> <em>image</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>const <a class="el" href="classGlib_1_1ustring.html">Glib::ustring</a>& </td> <td class="mdname" nowrap> <em>label</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>bool </td> <td class="mdname" nowrap> <em>mnemonic</em> = false</td> </tr> <tr> <td></td> <td class="md">) </td> <td class="md" colspan="2"><code> [explicit]</code></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> </td> </tr> </table> <a name="a5" doxytag="Gtk::ImageMenuItem::ImageMenuItem"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> Gtk::ImageMenuItem::ImageMenuItem </td> <td class="md" valign="top">(</td> <td class="md" nowrap valign="top">const <a class="el" href="classGlib_1_1ustring.html">Glib::ustring</a>& </td> <td class="mdname" nowrap> <em>label</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>bool </td> <td class="mdname" nowrap> <em>mnemonic</em> = false</td> </tr> <tr> <td></td> <td class="md">) </td> <td class="md" colspan="2"><code> [explicit]</code></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> </td> </tr> </table> <a name="a6" doxytag="Gtk::ImageMenuItem::ImageMenuItem"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> Gtk::ImageMenuItem::ImageMenuItem </td> <td class="md" valign="top">(</td> <td class="md" nowrap valign="top">const <a class="el" href="classGtk_1_1StockID.html">StockID</a>& </td> <td class="mdname1" valign="top" nowrap> <em>id</em> </td> <td class="md" valign="top">) </td> <td class="md" nowrap><code> [explicit]</code></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> </td> </tr> </table> <hr><h2>Member Function Documentation</h2> <a name="a9" doxytag="Gtk::ImageMenuItem::get_image"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> const <a class="el" href="classGtk_1_1Widget.html">Widget</a>* Gtk::ImageMenuItem::get_image </td> <td class="md" valign="top">(</td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top">) </td> <td class="md" nowrap> const</td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> Gets the widget that is currently set as the image of <em>image_menu_item</em> . <p> See <a class="el" href="classGtk_1_1ImageMenuItem.html#a7">set_image()</a>. <dl compact><dt><b>Returns:</b></dt><dd>The widget set as image of <em>image_menu_item</em> . </dd></dl> </td> </tr> </table> <a name="a8" doxytag="Gtk::ImageMenuItem::get_image"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> <a class="el" href="classGtk_1_1Widget.html">Widget</a>* Gtk::ImageMenuItem::get_image </td> <td class="md" valign="top">(</td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top">) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> Gets the widget that is currently set as the image of <em>image_menu_item</em> . <p> See <a class="el" href="classGtk_1_1ImageMenuItem.html#a7">set_image()</a>. <dl compact><dt><b>Returns:</b></dt><dd>The widget set as image of <em>image_menu_item</em> . </dd></dl> </td> </tr> </table> <a name="a2" doxytag="Gtk::ImageMenuItem::gobj"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> const GtkImageMenuItem* Gtk::ImageMenuItem::gobj </td> <td class="md" valign="top">(</td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top">) </td> <td class="md" nowrap> const<code> [inline]</code></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> <p> Reimplemented from <a class="el" href="classGtk_1_1MenuItem.html#a2">Gtk::MenuItem</a>. </td> </tr> </table> <a name="a1" doxytag="Gtk::ImageMenuItem::gobj"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> GtkImageMenuItem* Gtk::ImageMenuItem::gobj </td> <td class="md" valign="top">(</td> <td class="mdname1" valign="top" nowrap> </td> <td class="md" valign="top">) </td> <td class="md" nowrap><code> [inline]</code></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> <p> Reimplemented from <a class="el" href="classGtk_1_1MenuItem.html#a1">Gtk::MenuItem</a>. </td> </tr> </table> <a name="a7" doxytag="Gtk::ImageMenuItem::set_image"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> void Gtk::ImageMenuItem::set_image </td> <td class="md" valign="top">(</td> <td class="md" nowrap valign="top"><a class="el" href="classGtk_1_1Widget.html">Widget</a>& </td> <td class="mdname1" valign="top" nowrap> <em>image</em> </td> <td class="md" valign="top">) </td> <td class="md" nowrap></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> Sets the image of <em>image_menu_item</em> to the given widget. <p> <dl compact><dt><b>Parameters:</b></dt><dd> <table border="0" cellspacing="2" cellpadding="0"> <tr><td valign=top><em>image</em> </td><td>A widget to set as the image for the menu item. </td></tr> </table> </dl> </td> </tr> </table> <hr><h2>Friends And Related Function Documentation</h2> <a name="k0" doxytag="Gtk::ImageMenuItem::wrap"></a><p> <table width="100%" cellpadding="2" cellspacing="0" border="0"> <tr> <td class="md"> <table cellpadding="0" cellspacing="0" border="0"> <tr> <td class="md" nowrap valign="top"> Gtk::ImageMenuItem* wrap </td> <td class="md" valign="top">(</td> <td class="md" nowrap valign="top">GtkImageMenuItem* </td> <td class="mdname" nowrap> <em>object</em>, </td> </tr> <tr> <td></td> <td></td> <td class="md" nowrap>bool </td> <td class="mdname" nowrap> <em>take_copy</em> = false</td> </tr> <tr> <td></td> <td class="md">) </td> <td class="md" colspan="2"><code> [related]</code></td> </tr> </table> </td> </tr> </table> <table cellspacing=5 cellpadding=0 border=0> <tr> <td> </td> <td> <p> </td> </tr> </table> <hr>The documentation for this class was generated from the following file:<ul> <li><a class="el" href="imagemenuitem_8h.html">imagemenuitem.h</a></ul> <hr><address><small> Generated for gtkmm by <a href="http://www.doxygen.org/index.html"> Doxygen</a> 1.3-rc1 © 1997-2001</small></address> </body> </html>