GtkSharp/Source/OldStuff/doc/en/Gtk/MenuBar.xml

142 lines
5.1 KiB
XML

<Type Name="MenuBar" FullName="Gtk.MenuBar">
<TypeSignature Language="C#" Maintainer="Hector Gomez M" Value="public class MenuBar : Gtk.MenuShell" />
<TypeSignature Language="ILAsm" Value=".class public auto ansi beforefieldinit MenuBar extends Gtk.MenuShell" />
<AssemblyInfo>
<AssemblyName>gtk-sharp</AssemblyName>
<AssemblyPublicKey>
</AssemblyPublicKey>
</AssemblyInfo>
<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>
<Base>
<BaseTypeName>Gtk.MenuShell</BaseTypeName>
</Base>
<Interfaces>
</Interfaces>
<Docs>
<summary>The MenuBar is a subclass of MenuShell which contains one to many MenuItem.</summary>
<remarks>
<para>
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>
<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>
</remarks>
</Docs>
<Members>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="public MenuBar ();" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor() cil managed" />
<MemberType>Constructor</MemberType>
<ReturnValue />
<Parameters />
<Docs>
<summary>A constructor.</summary>
<remarks />
</Docs>
</Member>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="public MenuBar (IntPtr raw);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(native int raw) cil managed" />
<MemberType>Constructor</MemberType>
<ReturnValue />
<Parameters>
<Parameter Name="raw" Type="System.IntPtr" />
</Parameters>
<Docs>
<param name="raw">Pointer to the C object.</param>
<summary>Internal constructor</summary>
<remarks>
<para>This is an internal constructor, and should not be used by user code.</para>
</remarks>
</Docs>
</Member>
<Member MemberName="ChildPackDirection">
<MemberSignature Language="C#" Value="public Gtk.PackDirection ChildPackDirection { get; set; }" />
<MemberSignature Language="ILAsm" Value=".property instance valuetype Gtk.PackDirection ChildPackDirection" />
<MemberType>Property</MemberType>
<Attributes>
<Attribute>
<AttributeName>GLib.Property("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>
<Member MemberName="GType">
<MemberSignature Language="C#" Value="public static GLib.GType GType { get; }" />
<MemberSignature Language="ILAsm" Value=".property valuetype GLib.GType GType" />
<MemberType>Property</MemberType>
<ReturnValue>
<ReturnType>GLib.GType</ReturnType>
</ReturnValue>
<Parameters />
<Docs>
<summary>GType Property.</summary>
<value>a <see cref="T:GLib.GType" /></value>
<remarks>Returns the native <see cref="T:GLib.GType" /> value for <see cref="T:Gtk.MenuBar" />.</remarks>
</Docs>
</Member>
<Member MemberName="PackDirection">
<MemberSignature Language="C#" Value="public Gtk.PackDirection PackDirection { get; set; }" />
<MemberSignature Language="ILAsm" Value=".property instance valuetype Gtk.PackDirection PackDirection" />
<MemberType>Property</MemberType>
<Attributes>
<Attribute>
<AttributeName>GLib.Property("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>
</Members>
</Type>