2003-02-12 02:00:12 +00:00
<Type Name= "MenuBar" FullName= "Gtk.MenuBar" >
2005-05-23 20:41:51 +00:00
<TypeSignature Language= "C#" Maintainer= "Hector Gomez M" Value= "public class MenuBar : Gtk.MenuShell" />
2003-02-12 02:00:12 +00:00
<AssemblyInfo >
<AssemblyName > gtk-sharp</AssemblyName>
2003-12-24 01:35:30 +00:00
<AssemblyPublicKey >
</AssemblyPublicKey>
2005-12-09 23:12:49 +00:00
<AssemblyVersion > 2.8.0.0</AssemblyVersion>
2003-02-12 02:00:12 +00:00
</AssemblyInfo>
2003-02-23 07:26:30 +00:00
<ThreadSafetyStatement > Gtk# is thread aware, but not thread safe; See the <link location= "node:gtk-sharp/programming/threads" > Gtk# Thread Programming</link> for details.</ThreadSafetyStatement>
2003-02-12 02:00:12 +00:00
<Docs >
2003-04-11 11:44:38 +00:00
<summary > The MenuBar is a subclass of MenuShell which contains one to many MenuItem.</summary>
<remarks >
2003-05-08 20:26:02 +00:00
<para >
2003-04-11 11:44:38 +00:00
The result is a standard menu bar which can hold many menu items. <see cref= "T:Gtk.MenuBar" /> allows for a shadow type to be set for aesthetic purposes.
</para>
2004-07-01 02:12:04 +00:00
<example >
<code lang= "C#" >
using System;
using Gtk;
public class MenuApp {
public static void Main (string[] args)
{
new MenuApp();
}
public MenuApp(){
Application.Init();
Window win = new Window ("Menu Sample App");
MenuBar mb = new MenuBar ();
Menu file_menu = new Menu ();
MenuItem exit_item = new MenuItem("Exit");
exit_item.Activated += new EventHandler (on_exit_item_activate);
file_menu.Append (exit_item);
MenuItem file_item = new MenuItem("File");
file_item.Submenu = file_menu;
mb.Append (file_item);
win.Add (mb);
win.ShowAll ();
Application.Run ();
}
public void on_exit_item_activate(object o, EventArgs args)
{
Application.Quit ();
}
</code>
</example>
2003-04-11 11:44:38 +00:00
</remarks>
2003-02-12 02:00:12 +00:00
</Docs>
<Base >
<BaseTypeName > Gtk.MenuShell</BaseTypeName>
</Base>
<Interfaces >
</Interfaces>
<Members >
<Member MemberName= ".ctor" >
<MemberSignature Language= "C#" Value= "public MenuBar (IntPtr raw);" />
<MemberType > Constructor</MemberType>
<ReturnValue />
<Parameters >
2003-09-17 21:56:59 +00:00
<Parameter Name= "raw" Type= "System.IntPtr" />
</Parameters>
2003-02-12 02:00:12 +00:00
<Docs >
2003-02-23 07:26:30 +00:00
<summary > Internal constructor</summary>
<param name= "raw" > Pointer to the C object.</param>
<remarks >
<para > This is an internal constructor, and should not be used by user code.</para>
</remarks>
2003-02-12 02:00:12 +00:00
</Docs>
</Member>
<Member MemberName= ".ctor" >
<MemberSignature Language= "C#" Value= "public MenuBar ();" />
<MemberType > Constructor</MemberType>
<ReturnValue />
<Parameters />
<Docs >
2003-04-11 11:44:38 +00:00
<summary > A constructor.</summary>
<remarks />
2003-02-12 02:00:12 +00:00
</Docs>
</Member>
<Member MemberName= "GType" >
2003-12-24 01:35:30 +00:00
<MemberSignature Language= "C#" Value= "public static GLib.GType GType { get; };" />
2003-02-12 02:00:12 +00:00
<MemberType > Property</MemberType>
<ReturnValue >
2003-12-24 01:35:30 +00:00
<ReturnType > GLib.GType</ReturnType>
2003-02-12 02:00:12 +00:00
</ReturnValue>
2003-12-24 01:35:30 +00:00
<Parameters />
2003-02-12 02:00:12 +00:00
<Docs >
2004-06-21 20:14:42 +00:00
<summary > GType Property.</summary>
2005-05-23 20:41:51 +00:00
<value > a <see cref= "T:GLib.GType" /> </value>
2004-06-21 20:14:42 +00:00
<remarks > Returns the native <see cref= "T:GLib.GType" /> value for <see cref= "T:Gtk.MenuBar" /> .</remarks>
2003-02-12 02:00:12 +00:00
</Docs>
</Member>
2003-03-07 01:30:00 +00:00
<Member MemberName= ".ctor" >
2003-12-24 01:35:30 +00:00
<MemberSignature Language= "C#" Value= "protected MenuBar (GLib.GType gtype);" />
2003-03-07 01:30:00 +00:00
<MemberType > Constructor</MemberType>
<ReturnValue />
<Parameters >
2003-12-24 01:35:30 +00:00
<Parameter Name= "gtype" Type= "GLib.GType" />
2003-09-17 21:56:59 +00:00
</Parameters>
2003-03-07 01:30:00 +00:00
<Docs >
2004-06-21 20:33:11 +00:00
<summary > Protected Constructor.</summary>
2003-12-24 01:35:30 +00:00
<param name= "gtype" > a <see cref= "T:GLib.GType" /> </param>
2004-06-21 20:33:11 +00:00
<remarks > Chain to this constructor if you have manually registered a native <see cref= "T:GLib.GType" /> value for your subclass.</remarks>
2003-03-07 01:30:00 +00:00
</Docs>
2005-08-23 17:02:47 +00:00
<Attributes >
2005-05-23 20:41:51 +00:00
<Attribute >
<AttributeName > System.Obsolete(Message=null, IsError=False)</AttributeName>
</Attribute>
2005-08-23 17:02:47 +00:00
</Attributes>
</Member>
2005-12-09 23:12:49 +00:00
<Member MemberName= "PackDirection" >
<MemberSignature Language= "C#" Value= "public Gtk.PackDirection PackDirection { set; get; };" />
<MemberType > Property</MemberType>
<Attributes >
<Attribute >
<AttributeName > GLib.Property(Name="pack-direction")</AttributeName>
</Attribute>
</Attributes>
<ReturnValue >
<ReturnType > Gtk.PackDirection</ReturnType>
</ReturnValue>
<Docs >
<summary > Packing direction.</summary>
<value > a <see cref= "T:Gtk.PackDirection" /> .</value>
<remarks > Indicates how menu items are layed out on the menu bar.</remarks>
<since version= "Gtk# 2.8" />
</Docs>
</Member>
<Member MemberName= "ChildPackDirection" >
<MemberSignature Language= "C#" Value= "public Gtk.PackDirection ChildPackDirection { set; get; };" />
<MemberType > Property</MemberType>
<Attributes >
<Attribute >
<AttributeName > GLib.Property(Name="child-pack-direction")</AttributeName>
</Attribute>
</Attributes>
<ReturnValue >
<ReturnType > Gtk.PackDirection</ReturnType>
</ReturnValue>
<Docs >
<summary > Child packing direction.</summary>
<value > a <see cref= "T:Gtk.ChildPackDirection" /> .</value>
<remarks > Indicates how child menu items are layed out on the menu bar's submenus.</remarks>
<since version= "Gtk# 2.8" />
</Docs>
</Member>
2003-02-12 02:00:12 +00:00
</Members>
2005-05-23 20:41:51 +00:00
</Type>