gtk2/docs/reference/gtk/tmpl/gtkmenubar.sgml

74 lines
1.9 KiB
Plaintext
Raw Normal View History

1999-08-16 18:51:52 +00:00
<!-- ##### SECTION Title ##### -->
GtkMenuBar
<!-- ##### SECTION Short_Description ##### -->
A subclass widget for #GtkMenuShell which holds #GtkMenuItem widgets
1999-08-16 18:51:52 +00:00
<!-- ##### SECTION Long_Description ##### -->
<para>
The #GtkMenuBar is a subclass of #GtkMenuShell which contains one to many #GtkMenuItem. The result is a standard menu bar which can hold many menu items. #GtkMenuBar allows for a shadow type to be set for aesthetic purposes. The shadow types are defined in the #gtk_menu_bar_set_shadow_type function.
1999-08-16 18:51:52 +00:00
</para>
<!-- ##### SECTION See_Also ##### -->
<para>
#GtkMenuShell, #GtkMenu, #GtkMenuItem
1999-08-16 18:51:52 +00:00
</para>
<!-- ##### STRUCT GtkMenuBar ##### -->
<para>
The #GtkMenuBar struct contains the following fields. (These fields should be considered read-only. They should never be set by an application.)
1999-08-16 18:51:52 +00:00
</para>
<!-- ##### FUNCTION gtk_menu_bar_new ##### -->
<para>
Creates the new #GtkMenuBar
1999-08-16 18:51:52 +00:00
</para>
@Returns: the #GtkMenuBar
1999-08-16 18:51:52 +00:00
<!-- ##### FUNCTION gtk_menu_bar_append ##### -->
<para>
Adds a new #GtkMenuItem to the end of the GtkMenuBar
1999-08-16 18:51:52 +00:00
</para>
@menu_bar: a #GtkMenuBar
@child: the #GtkMenuItem to add
1999-08-16 18:51:52 +00:00
<!-- ##### FUNCTION gtk_menu_bar_prepend ##### -->
<para>
Adds a new #GtkMenuItem to the beginning of the GtkMenuBar
1999-08-16 18:51:52 +00:00
</para>
@menu_bar: a #GtkMenuBa
@child: the #GtkMenuItem to add
1999-08-16 18:51:52 +00:00
<!-- ##### FUNCTION gtk_menu_bar_insert ##### -->
<para>
Adds a new #GtkMenuItem to the GtkMenuBar at the position defined by @position
1999-08-16 18:51:52 +00:00
</para>
@menu_bar: a #GtkMenuBar
@child: the #GtkMenuItem to add
@position: the position in the item list where the <em>child</em> is added.
1999-08-16 18:51:52 +00:00
<!-- ##### FUNCTION gtk_menu_bar_set_shadow_type ##### -->
<para>
Sets the shadow type to use on the GtkMenuBar. The shadow types to use are:
GTK_SHADOW_NONE, GTK_SHADOW_IN, GTK_SHADOW_OUT, GTK_SHADOW_ETCHED_IN, and GTK_SHADOW_ETCHED_OUT
1999-08-16 18:51:52 +00:00
</para>
@menu_bar: a #GtkMenuBa
@type: the GtkShadowtype
1999-08-16 18:51:52 +00:00
<!-- ##### ARG GtkMenuBar:shadow ##### -->
<para>
Used by #GtkMenuBar to determine the shadow type.
1999-08-16 18:51:52 +00:00
</para>