[Contents] [Back] [Prev] [Up] [Next] [Forward]

# Package Gtk.Menu`_`Bar

Gtk_Menu_Bar is a subclass of Gtk_Menu_Shell which contains one to many Gtk_Menu_Item. The result is a standard menu bar which can hold many menu items. Gtk_Menu_Bar allows for a shadow type to be set for aesthetic purposes. The shadow types are defined in the Set_Shadow_Type function.

- Gtk.Menu_Bar Widget Hierarchy
- Gtk.Menu_Bar Subprograms

## Widget Hierarchy

    Gtk_Object                    (see section Package Gtk.Object)
       \___ Gtk_Widget            (see section Package Gtk.Widget)
          \___ Gtk_Container      (see section Package Gtk.Container)
             \___ Gtk_Menu_Shell  (see section Package Gtk.Menu_Shell)
                \___ Gtk_Menu_Bar (see section Package Gtk.Menu_Bar)

## Subprograms

    procedure Gtk_New
      (Menu_Bar           : out    Gtk_Menu_Bar);
| Create a menu bar.
    function Get_Type              return Gtk.Gtk_Type;
| Return the internal value associated with a Gtk_Menu_Bar.
    procedure Append
      (Menu_Bar           : access Gtk_Menu_Bar_Record;
       Child              : access Gtk.Menu_Item.Gtk_Menu_Item_Record'Class);
| Add a new Gtk_Menu_Item to the end of the Gtk_Menu_Bar.
    procedure Insert
      (Menu_Bar           : access Gtk_Menu_Bar_Record;
       Child              : access Gtk.Menu_Item.Gtk_Menu_Item_Record'Class;
       Position           : in     Gint);
| Add a new Gtk_Menu_Item to the Gtk_Menu_Bar at a specified position. The first element of a menu bar is at position 0.
    procedure Prepend
      (Menu_Bar           : access Gtk_Menu_Bar_Record;
       Child              : access Gtk.Menu_Item.Gtk_Menu_Item_Record'Class);
| Add a new Gtk_Menu_Item to the beginning of the Gtk_Menu_Bar.
    procedure Set_Shadow_Type
      (Menu_Bar           : access Gtk_Menu_Bar_Record;
       The_Type           : in     Gtk_Shadow_Type);
| Set the shadow type to use on the Gtk_Menu_Bar.

[Contents] [Back] [Prev] [Up] [Next] [Forward]