<html> <head><title>Gtk-- Reference: Gtk::TearoffMenuItem</title></head> <body bgcolor="#F0F0F0" text="#000000" link="#0000FF" vlink="#000077" alink="#FF0000"> <table align=center border=0 cellspacing=10> <tr> <td><a href="class_index.html">Class Index</a></td> <td><a href="cross_index.html">Cross Index</a></td> <td><a href="name_index.html">Namespace Index</a></td> </table> <h1 align=center>Class Gtk::TearoffMenuItem</h1><p> <b> A menu item used to tear off and reattach its menu.</b><br> Contained in: <a href="Gtk.html">Gtk</a><br> Derived from: <a href="Gtk%3A%3AMenuItem.html">Gtk::MenuItem</a> <br> Derived by: <i>none</i> <p> #include <gtk--/tearoffmenuitem.h> <p> <hr noshade> <table border=0> <tr><td colspan=3><h3>public function member index:</h3></td> <tr valign=top><td align=right><tt></tt> </td><td align=right><a href="Gtk%3A%3ATearoffMenuItem.html#2921"><tt><font color=blue><b>TearoffMenuItem</b></font></tt></a></td><td><tt>()</tt>;</td> <tr valign=top><td align=right><tt><tt><font color=navy>GtkTearoffMenuItem</font></tt>*</tt> </td><td align=right><a href="Gtk%3A%3ATearoffMenuItem.html#2917"><tt><font color=blue><b>gtkobj</b></font></tt></a></td><td><tt>()</tt>;</td> <tr valign=top><td align=right><tt><tt>const</tt> <tt><font color=navy>GtkTearoffMenuItem</font></tt>*</tt> </td><td align=right><a href="Gtk%3A%3ATearoffMenuItem.html#2918"><tt><font color=blue><b>gtkobj</b></font></tt></a></td><td><tt>() <tt>const</tt></tt>;</td> <tr valign=top><td align=right><tt><tt>static</tt> <tt><font color=purple>bool</font></tt></tt> </td><td align=right><a href="Gtk%3A%3ATearoffMenuItem.html#2919"><tt><font color=blue><b>isA</b></font></tt></a></td><td><tt>(<a href="Gtk%3A%3AObject.html"><tt><font color=navy><b>Object</b></font></tt></a>* <tt><font color=blue>object</font></tt>)</tt>;</td> <tr valign=top><td align=right><tt><tt><font color=purple>bool</font></tt></tt> </td><td align=right><a href="Gtk%3A%3ATearoffMenuItem.html#2922"><tt><font color=blue><b>is_torn_off</b></font></tt></a></td><td><tt>() <tt>const</tt></tt>;</td> <tr valign=top><td align=right><tt><tt>virtual</tt> </tt> </td><td align=right><a href="Gtk%3A%3ATearoffMenuItem.html#2920"><tt><font color=blue><b>~TearoffMenuItem</b></font></tt></a></td><td><tt>()</tt>;</td> <tr><td> </td></table> <hr noshade> <h2>Description:</h2> a <tt><font color=navy><b>Gtk::TearoffMenuItem</b></font></tt> is a special <tt><a href="Gtk.html"><tt><font color=navy><b>Gtk</b></font></tt></a>::<a href="Gtk%3A%3AMenuItem.html"><tt><font color=navy><b>MenuItem</b></font></tt></a></tt> which is used to tear off and reattach its menu. <P> When its menu is shown normally, the <tt><font color=navy><b>Gtk::TearoffMenuItem</b></font></tt> is drawn as a dotted line indicating that the menu can be torn off. Activating it causes its menu to be torn off and displayed in its own window as a tearoff menu. <P> When its menu is shown as a tearoff menu, the <tt><font color=navy><b>Gtk::TearoffMenuItem</b></font></tt> is drawn as a dotted line which has a left pointing arrow graphic indicating that the tearoff menu can be reattached. Activating it will erase the tearoff menu window.<br> <p> <hr noshade> <h2>Function Member Descriptions:</h2> <a name="2917"><font size=+1><b>Gtk::TearoffMenuItem::gtkobj</b></font></a> - Returns the underlaying gtk+ object.<br> <hr size="1" width="70%" align="left" noshade="noshade"><tt><tt><font color=navy>GtkTearoffMenuItem</font></tt>*</tt> <a href="Gtk%3A%3ATearoffMenuItem.html#2917"><tt><font color=blue><b>gtkobj</b></font></tt></a><tt>()</tt>;<br><br> <a name="2919"><font size=+1><b>Gtk::TearoffMenuItem::isA</b></font></a> - Returns true if object is this type.<br> <hr size="1" width="70%" align="left" noshade="noshade"><tt><tt>static</tt> <tt><font color=purple>bool</font></tt></tt> <a href="Gtk%3A%3ATearoffMenuItem.html#2919"><tt><font color=blue><b>isA</b></font></tt></a><tt>(<a href="Gtk%3A%3AObject.html"><tt><font color=navy><b>Object</b></font></tt></a>* <tt><font color=blue>object</font></tt>)</tt>;<br><br> <hr noshade> </html>