<html> <head><title>Gtk-- Reference: Gtk::MenuBar</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::MenuBar</h1><p> <b> A subclass widget for <tt><font color=navy><b>Gtk::MenuShell</b></font></tt> which holds <tt><font color=navy><b>Gtk::MenuItem</b></font></tt> widgets</b><br> Contained in: <a href="Gtk.html">Gtk</a><br> Derived from: <a href="Gtk%3A%3AMenuShell.html">Gtk::MenuShell</a> <br> Derived by: <i>none</i> <p> #include <gtk--/menubar.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%3AMenuBar.html#1880"><tt><font color=blue><b>MenuBar</b></font></tt></a></td><td><tt>()</tt>;</td> <tr valign=top><td align=right><tt><tt><font color=navy>GtkShadowType</font></tt></tt> </td><td align=right><a href="Gtk%3A%3AMenuBar.html#1882"><tt><font color=blue><b>get_shadow_type</b></font></tt></a></td><td><tt>() <tt>const</tt></tt>;</td> <tr valign=top><td align=right><tt><tt><font color=navy>GtkMenuBar</font></tt>*</tt> </td><td align=right><a href="Gtk%3A%3AMenuBar.html#1876"><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>GtkMenuBar</font></tt>*</tt> </td><td align=right><a href="Gtk%3A%3AMenuBar.html#1877"><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%3AMenuBar.html#1878"><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>void</font></tt></tt> </td><td align=right><a href="Gtk%3A%3AMenuBar.html#1881"><tt><font color=blue><b>set_shadow_type</b></font></tt></a></td><td><tt>(<tt><font color=navy>GtkShadowType</font></tt> <tt><font color=blue>type</font></tt>)</tt>;</td> <tr valign=top><td align=right><tt><tt>virtual</tt> </tt> </td><td align=right><a href="Gtk%3A%3AMenuBar.html#1879"><tt><font color=blue><b>~MenuBar</b></font></tt></a></td><td><tt>()</tt>;</td> <tr><td> </td></table> <hr noshade> <h2>Description:</h2> The <tt><font color=navy><b>Gtk::MenuBar</b></font></tt> is a subclass of <tt><font color=navy><b>Gtk::MenuShell</b></font></tt> which contains one to many <tt><font color=navy><b>Gtk::MenuItem</b></font></tt>. The result is a standard menu bar which can hold many menu items. <tt><font color=navy><b>Gtk::MenuBar</b></font></tt> allows for a shadow type to be set for aesthetic purposes. The shadow types are defined in the <tt><tt><font color=blue>set_shadow_type</font></tt></tt> function.<br> <p> <hr noshade> <h2>Function Member Descriptions:</h2> <a name="1876"><font size=+1><b>Gtk::MenuBar::gtkobj</b></font></a> - Returns the underlaying gtk+ object.<br> <hr size="1" width="70%" align="left" noshade="noshade"><tt><tt><font color=navy>GtkMenuBar</font></tt>*</tt> <a href="Gtk%3A%3AMenuBar.html#1876"><tt><font color=blue><b>gtkobj</b></font></tt></a><tt>()</tt>;<br><br> <a name="1878"><font size=+1><b>Gtk::MenuBar::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%3AMenuBar.html#1878"><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> <a name="1881"><font size=+1><b>Gtk::MenuBar::set_shadow_type</b></font></a> - Sets the shadow type to use on the <tt><font color=navy><b>Gtk::MenuBar</b></font></tt>.<br> <hr size="1" width="70%" align="left" noshade="noshade"><tt><tt><font color=purple>void</font></tt></tt> <a href="Gtk%3A%3AMenuBar.html#1881"><tt><font color=blue><b>set_shadow_type</b></font></tt></a><tt>(<tt><font color=navy>GtkShadowType</font></tt> <tt><font color=blue>type</font></tt>)</tt>;<br><blockquote> The shadow types to use are: <tt><font color=green>GTK_SHADOW_NONE</font></tt>, <tt><font color=green>GTK_SHADOW_IN</font></tt>, <tt><font color=green>GTK_SHADOW_OUT</font></tt>, <tt><font color=green>GTK_SHADOW_ETCHED_IN</font></tt>, and <tt><font color=green>GTK_SHADOW_ETCHED_OUT</font></tt> <P> type: The <tt><tt><font color=blue>GtkShadowtype</font></tt></tt>.</blockquote> <br><br> <hr noshade> </html>