Gtk-- Reference: Gtk::MenuBar

Class Index | Cross Index | Namespace Index

# Class Gtk::MenuBar

A subclass widget for `Gtk::MenuShell` which holds `Gtk::MenuItem` widgets
Contained in: Gtk
Derived from: Gtk::MenuShell
Derived by: none

#include <gtk--/menubar.h>

### public function member index:
`` | `MenuBar` | `()`;
``GtkShadowType`` | `get_shadow_type` | `() `const``;
``GtkMenuBar`*` | `gtkobj` | `()`;
``const` `GtkMenuBar`*` | `gtkobj` | `() `const``;
``static` `bool`` | `isA` | `(`Object`* `object`)`;
``void`` | `set_shadow_type` | `(`GtkShadowType` `type`)`;
``virtual`` | `~MenuBar` | `()`;

## Description:

The `Gtk::MenuBar` is a subclass of `Gtk::MenuShell` which contains one to many `Gtk::MenuItem`. The result is a standard menu bar which can hold many menu items. `Gtk::MenuBar` allows for a shadow type to be set for aesthetic purposes. The shadow types are defined in the ``set_shadow_type`` function.

## Function Member Descriptions:

Gtk::MenuBar::gtkobj - Returns the underlaying gtk+ object.

``GtkMenuBar`*` `gtkobj``()`;
Gtk::MenuBar::isA - Returns true if object is this type.

``static` `bool`` `isA``(`Object`* `object`)`;
Gtk::MenuBar::set_shadow_type - Sets the shadow type to use on the `Gtk::MenuBar`.

``void`` `set_shadow_type``(`GtkShadowType` `type`)`;

> The shadow types to use are: `GTK_SHADOW_NONE`, `GTK_SHADOW_IN`, `GTK_SHADOW_OUT`, `GTK_SHADOW_ETCHED_IN`, and `GTK_SHADOW_ETCHED_OUT`

> type: The ``GtkShadowtype``.