2003-02-12 02:00:12 +00:00
<Type Name= "MenuShell" FullName= "Gtk.MenuShell" >
2003-03-17 05:04:39 +00:00
<TypeSignature Language= "C#" Value= "public class MenuShell : Gtk.Container, Implementor, IWrapper, IWrapper, IDisposable" Maintainer= "Hector Gomez M" />
2003-02-12 02:00:12 +00:00
<AssemblyInfo >
<AssemblyName > gtk-sharp</AssemblyName>
2003-12-24 01:35:30 +00:00
<AssemblyPublicKey >
</AssemblyPublicKey>
2003-02-12 02:00:12 +00:00
<AssemblyVersion > 0.0.0.0</AssemblyVersion>
2003-10-28 00:48:23 +00:00
<AssemblyCulture > neutral</AssemblyCulture>
2003-02-12 02:00:12 +00:00
<Attributes />
</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-03-17 05:04:39 +00:00
<summary > A GtkMenuShell is the abstract base class used to derive the GtkMenu and GtkMenuBar subclasses.</summary>
<remarks >
2003-05-08 20:26:02 +00:00
<para >
2003-03-17 05:04:39 +00:00
A <see cref= "T:Gtk.MenuShell" /> is a container of <see cref= "T:Gtk.MenuItem" /> objects arranged in a list which can be navigated, selected, and activated by the user to perform application functions. A <see cref= "T:Gtk.MenuItem" /> can have a submenu associated with it, allowing for nested hierarchical menus.
</para>
</remarks>
2003-02-12 02:00:12 +00:00
</Docs>
<Base >
<BaseTypeName > Gtk.Container</BaseTypeName>
</Base>
<Interfaces >
<Interface >
<InterfaceName > Atk.Implementor</InterfaceName>
</Interface>
<Interface >
<InterfaceName > GLib.IWrapper</InterfaceName>
</Interface>
<Interface >
<InterfaceName > GLib.IWrapper</InterfaceName>
</Interface>
<Interface >
<InterfaceName > System.IDisposable</InterfaceName>
</Interface>
</Interfaces>
<Attributes />
<Members >
<Member MemberName= "Prepend" >
<MemberSignature Language= "C#" Value= "public void Prepend (Gtk.Widget child);" />
<MemberType > Method</MemberType>
<ReturnValue >
<ReturnType > System.Void</ReturnType>
</ReturnValue>
<Parameters >
2003-09-17 21:56:59 +00:00
<Parameter Name= "child" Type= "Gtk.Widget" />
</Parameters>
2003-02-12 02:00:12 +00:00
<Docs >
2003-03-17 05:04:39 +00:00
<summary > Adds a new <see cref= "T:Gtk.MenuItem" /> to the beginning of the menu shell's item list.</summary>
<param name= "child" > The <see cref= "T:Gtk.MenuItem" /> to add.</param>
<remarks > Activates the menu item within the menu shell.
<para >
Adds a new <see cref= "T:Gtk.MenuItem" /> to the beginning of the menu shell's item list.
2003-05-08 20:26:02 +00:00
</para> </remarks>
2003-02-12 02:00:12 +00:00
</Docs>
</Member>
<Member MemberName= "Deactivate" >
<MemberSignature Language= "C#" Value= "public void Deactivate ();" />
<MemberType > Method</MemberType>
<ReturnValue >
<ReturnType > System.Void</ReturnType>
</ReturnValue>
<Parameters />
<Docs >
2003-03-17 05:04:39 +00:00
<summary > Deactivates the menu shell.</summary>
<remarks >
2003-05-08 20:26:02 +00:00
<para >
2003-03-17 05:04:39 +00:00
Typically this results in the menu shell being erased from the screen.
</para>
</remarks>
2003-02-12 02:00:12 +00:00
</Docs>
</Member>
<Member MemberName= "ActivateItem" >
<MemberSignature Language= "C#" Value= "public void ActivateItem (Gtk.Widget menu_item, bool force_deactivate);" />
<MemberType > Method</MemberType>
<ReturnValue >
<ReturnType > System.Void</ReturnType>
</ReturnValue>
<Parameters >
2003-09-17 21:56:59 +00:00
<Parameter Name= "menu_item" Type= "Gtk.Widget" />
<Parameter Name= "force_deactivate" Type= "System.Boolean" />
</Parameters>
2003-02-12 02:00:12 +00:00
<Docs >
2003-03-17 05:04:39 +00:00
<summary > Activates the menu item within the menu shell.</summary>
<param name= "menu_item" > The <see cref= "T:Gtk.MenuItem" /> to activate.</param>
2003-04-22 10:15:35 +00:00
<param name= "force_deactivate" > If <see langword= "true" /> , force the deactivation of the menu shell after the menu item is activated.</param>
2003-03-17 05:04:39 +00:00
<remarks >
2003-05-08 20:26:02 +00:00
<para >
2003-03-17 05:04:39 +00:00
Activates the menu item within the menu shell.
</para>
</remarks>
2003-02-12 02:00:12 +00:00
</Docs>
</Member>
<Member MemberName= "Insert" >
<MemberSignature Language= "C#" Value= "public void Insert (Gtk.Widget child, int position);" />
<MemberType > Method</MemberType>
<ReturnValue >
<ReturnType > System.Void</ReturnType>
</ReturnValue>
<Parameters >
2003-09-17 21:56:59 +00:00
<Parameter Name= "child" Type= "Gtk.Widget" />
<Parameter Name= "position" Type= "System.Int32" />
</Parameters>
2003-02-12 02:00:12 +00:00
<Docs >
2003-05-08 20:26:02 +00:00
<summary > Adds a new <see cref= "T:Gtk.MenuItem" /> to the menu shell's item list at the position indicated by <paramref name= "position" /> .</summary>
2003-03-17 05:04:39 +00:00
<param name= "child" > The <see cref= "T:Gtk.MenuItem" /> to add.</param>
<param name= "position" > The position in the item list where <paramref name= "child" /> is added. Positions are numbered from 0 to n-1.</param>
<remarks >
2003-05-08 20:26:02 +00:00
<para >
2003-03-17 05:04:39 +00:00
Adds a new <see cref= "T:Gtk.MenuItem" /> to the menu shell's item list at the position indicated by position.
</para>
</remarks>
2003-02-12 02:00:12 +00:00
</Docs>
</Member>
<Member MemberName= "Deselect" >
<MemberSignature Language= "C#" Value= "public void Deselect ();" />
<MemberType > Method</MemberType>
<ReturnValue >
<ReturnType > System.Void</ReturnType>
</ReturnValue>
<Parameters />
<Docs >
2003-03-17 05:04:39 +00:00
<summary > Deselects the currently selected item from the menu shell, if any.</summary>
<remarks >
2003-05-08 20:26:02 +00:00
<para >
2003-03-17 05:04:39 +00:00
Deselects the currently selected item from the menu shell, if any.
</para>
</remarks>
2003-02-12 02:00:12 +00:00
</Docs>
</Member>
<Member MemberName= "Append" >
<MemberSignature Language= "C#" Value= "public void Append (Gtk.Widget child);" />
<MemberType > Method</MemberType>
<ReturnValue >
<ReturnType > System.Void</ReturnType>
</ReturnValue>
<Parameters >
2003-09-17 21:56:59 +00:00
<Parameter Name= "child" Type= "Gtk.Widget" />
</Parameters>
2003-02-12 02:00:12 +00:00
<Docs >
2003-03-17 05:04:39 +00:00
<summary > Adds a new <see cref= "T:Gtk.MenuItem" /> to the end of the menu shell's item list.</summary>
<param name= "child" > The <see cref= "T:Gtk.MenuItem" /> to add.</param>
<remarks >
2003-05-08 20:26:02 +00:00
<para >
2003-03-17 05:04:39 +00:00
Adds a new <see cref= "T:Gtk.MenuItem" /> to the end of the menu shell's item list.
</para>
</remarks>
2003-02-12 02:00:12 +00:00
</Docs>
</Member>
<Member MemberName= "SelectItem" >
<MemberSignature Language= "C#" Value= "public void SelectItem (Gtk.Widget menu_item);" />
<MemberType > Method</MemberType>
<ReturnValue >
<ReturnType > System.Void</ReturnType>
</ReturnValue>
<Parameters >
2003-09-17 21:56:59 +00:00
<Parameter Name= "menu_item" Type= "Gtk.Widget" />
</Parameters>
2003-02-12 02:00:12 +00:00
<Docs >
2003-03-17 05:04:39 +00:00
<summary > Selects the menu item from the menu shell.</summary>
<param name= "menu_item" > The <see cref= "T:Gtk.MenuItem" /> to select.</param>
<remarks >
2003-05-08 20:26:02 +00:00
<para >
2003-03-17 05:04:39 +00:00
Selects the menu item from the menu shell.
</para>
</remarks>
2003-02-12 02:00:12 +00:00
</Docs>
</Member>
<Member MemberName= "Finalize" >
2003-10-13 22:55:58 +00:00
<MemberSignature Language= "C#" Value= "protected override void Finalize ();" />
2003-02-12 02:00:12 +00:00
<MemberType > Method</MemberType>
<ReturnValue >
<ReturnType > System.Void</ReturnType>
</ReturnValue>
<Parameters />
<Docs >
2003-02-23 07:26:30 +00:00
<summary > Disposes the resources associated with the object.</summary>
<remarks />
2003-02-12 02:00:12 +00:00
</Docs>
</Member>
<Member MemberName= ".ctor" >
<MemberSignature Language= "C#" Value= "public MenuShell (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>
<returns > An instance of MenuShell, wrapping the C object.</returns>
<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= "ActivateCurrent" >
2004-02-25 23:39:06 +00:00
<MemberSignature Language= "C#" Value= "public event Gtk.ActivateCurrentHandler ActivateCurrent;" />
2003-02-12 02:00:12 +00:00
<MemberType > Event</MemberType>
2003-09-17 21:56:59 +00:00
<ReturnValue >
2004-02-25 23:39:06 +00:00
<ReturnType > Gtk.ActivateCurrentHandler</ReturnType>
2003-09-17 21:56:59 +00:00
</ReturnValue>
2003-02-12 02:00:12 +00:00
<Parameters />
<Docs >
2003-03-17 05:04:39 +00:00
<summary > An action signal that activates the current menu item within the menu shell.</summary>
<remarks />
2003-02-12 02:00:12 +00:00
</Docs>
</Member>
<Member MemberName= "MoveCurrent" >
2004-02-25 23:39:06 +00:00
<MemberSignature Language= "C#" Value= "public event Gtk.MoveCurrentHandler MoveCurrent;" />
2003-02-12 02:00:12 +00:00
<MemberType > Event</MemberType>
2003-09-17 21:56:59 +00:00
<ReturnValue >
2004-02-25 23:39:06 +00:00
<ReturnType > Gtk.MoveCurrentHandler</ReturnType>
2003-09-17 21:56:59 +00:00
</ReturnValue>
2003-02-12 02:00:12 +00:00
<Parameters />
<Docs >
2003-05-08 20:26:02 +00:00
<summary > An action signal which moves the current menu item in the direction specified by <paramref name= "direction" /> .</summary>
2003-03-17 05:04:39 +00:00
<remarks />
2003-02-12 02:00:12 +00:00
</Docs>
</Member>
<Member MemberName= "SelectionDone" >
<MemberSignature Language= "C#" Value= "public event EventHandler SelectionDone;" />
<MemberType > Event</MemberType>
2003-09-17 21:56:59 +00:00
<ReturnValue >
<ReturnType > System.EventHandler</ReturnType>
</ReturnValue>
2003-02-12 02:00:12 +00:00
<Parameters />
<Docs >
2003-03-17 05:04:39 +00:00
<summary > This signal is emitted when a selection has been completed within a menu shell.</summary>
<remarks />
2003-02-12 02:00:12 +00:00
</Docs>
</Member>
<Member MemberName= "Deactivated" >
<MemberSignature Language= "C#" Value= "public event EventHandler Deactivated;" />
<MemberType > Event</MemberType>
2003-09-17 21:56:59 +00:00
<ReturnValue >
<ReturnType > System.EventHandler</ReturnType>
</ReturnValue>
2003-02-12 02:00:12 +00:00
<Parameters />
<Docs >
2003-03-17 05:04:39 +00:00
<summary > This signal is emitted when a menu shell is deactivated.</summary>
<remarks />
2003-02-12 02:00:12 +00:00
</Docs>
</Member>
2003-12-24 01:35:30 +00:00
<Member MemberName= "SelectFirst" >
<MemberSignature Language= "C#" Value= "public void SelectFirst (bool search_sensitive);" />
<MemberType > Method</MemberType>
<ReturnValue >
<ReturnType > System.Void</ReturnType>
</ReturnValue>
2003-03-07 01:30:00 +00:00
<Parameters >
2003-12-24 01:35:30 +00:00
<Parameter Name= "search_sensitive" Type= "System.Boolean" />
2003-09-17 21:56:59 +00:00
</Parameters>
2003-03-07 01:30:00 +00:00
<Docs >
2004-08-29 08:53:41 +00:00
<summary > Select the first visible or selectable child of the menu shell;
don't select tearoff items unless the only item is a tearoff item.
</summary>
2003-12-24 01:35:30 +00:00
<param name= "search_sensitive" > a <see cref= "T:System.Boolean" /> </param>
2004-11-05 21:25:40 +00:00
<remarks > If <paramref name= "search_sensitive" /> is true,
2004-08-29 08:53:41 +00:00
search for the first selectable menu item, otherwise select nothing if
the first item isn't sensitive. This should be false if the
menu is being popped up initially.
</remarks>
2003-03-07 01:30:00 +00:00
</Docs>
</Member>
2003-12-24 01:35:30 +00:00
<Member MemberName= "GType" >
<MemberSignature Language= "C#" Value= "public static GLib.GType GType { get; };" />
<MemberType > Property</MemberType>
<ReturnValue >
<ReturnType > GLib.GType</ReturnType>
</ReturnValue>
<Parameters />
<Docs >
2004-06-21 20:14:42 +00:00
<summary > GType Property.</summary>
2003-12-24 01:35:30 +00:00
<returns > a <see cref= "T:GLib.GType" /> </returns>
2004-06-21 20:14:42 +00:00
<remarks > Returns the native <see cref= "T:GLib.GType" /> value for <see cref= "T:Gtk.MenuShell" /> .</remarks>
2003-12-24 01:35:30 +00:00
</Docs>
</Member>
<Member MemberName= "OnDeactivated" >
<MemberSignature Language= "C#" Value= "protected virtual void OnDeactivated ();" />
<MemberType > Method</MemberType>
<ReturnValue >
<ReturnType > System.Void</ReturnType>
</ReturnValue>
<Parameters />
<Docs >
2004-06-15 15:41:25 +00:00
<summary > Default handler for the <see cref= "M:Gtk.MenuShell.Deactivated" /> event.</summary>
<remarks > Override this method in a subclass to provide a default handler for the <see cref= "M:Gtk.MenuShell.Deactivated" /> event.</remarks>
2003-12-24 01:35:30 +00:00
</Docs>
</Member>
<Member MemberName= "OnSelectionDone" >
<MemberSignature Language= "C#" Value= "protected virtual void OnSelectionDone ();" />
<MemberType > Method</MemberType>
<ReturnValue >
<ReturnType > System.Void</ReturnType>
</ReturnValue>
<Parameters />
<Docs >
2004-06-15 15:41:25 +00:00
<summary > Default handler for the <see cref= "M:Gtk.MenuShell.SelectionDone" /> event.</summary>
<remarks > Override this method in a subclass to provide a default handler for the <see cref= "M:Gtk.MenuShell.SelectionDone" /> event.</remarks>
2003-12-24 01:35:30 +00:00
</Docs>
</Member>
<Member MemberName= "OnMoveCurrent" >
<MemberSignature Language= "C#" Value= "protected virtual void OnMoveCurrent (Gtk.MenuDirectionType direction);" />
<MemberType > Method</MemberType>
<ReturnValue >
<ReturnType > System.Void</ReturnType>
</ReturnValue>
<Parameters >
<Parameter Name= "direction" Type= "Gtk.MenuDirectionType" />
</Parameters>
<Docs >
2004-06-15 15:41:25 +00:00
<summary > Default handler for the <see cref= "M:Gtk.MenuShell.MoveCurrent" /> event.</summary>
2003-12-24 01:35:30 +00:00
<param name= "direction" > a <see cref= "T:Gtk.MenuDirectionType" /> </param>
2004-06-15 15:41:25 +00:00
<remarks > Override this method in a subclass to provide a default handler for the <see cref= "M:Gtk.MenuShell.MoveCurrent" /> event.</remarks>
2003-12-24 01:35:30 +00:00
</Docs>
</Member>
<Member MemberName= "OnActivateCurrent" >
<MemberSignature Language= "C#" Value= "protected virtual void OnActivateCurrent (bool force_hide);" />
<MemberType > Method</MemberType>
<ReturnValue >
<ReturnType > System.Void</ReturnType>
</ReturnValue>
<Parameters >
<Parameter Name= "force_hide" Type= "System.Boolean" />
</Parameters>
<Docs >
2004-06-15 15:41:25 +00:00
<summary > Default handler for the <see cref= "M:Gtk.MenuShell.ActivateCurrent" /> event.</summary>
2003-12-24 01:35:30 +00:00
<param name= "force_hide" > a <see cref= "T:System.Boolean" /> </param>
2004-06-15 15:41:25 +00:00
<remarks > Override this method in a subclass to provide a default handler for the <see cref= "M:Gtk.MenuShell.ActivateCurrent" /> event.</remarks>
2003-12-24 01:35:30 +00:00
</Docs>
</Member>
<Member MemberName= ".ctor" >
<MemberSignature Language= "C#" Value= "protected MenuShell (GLib.GType gtype);" />
<MemberType > Constructor</MemberType>
<ReturnValue />
<Parameters >
<Parameter Name= "gtype" Type= "GLib.GType" />
</Parameters>
<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>
<returns > a <see cref= "T:Gtk.MenuShell" /> </returns>
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-07-17 06:38:40 +00:00
</Docs>
</Member>
2004-06-01 18:05:26 +00:00
<Member MemberName= ".ctor" >
<MemberSignature Language= "C#" Value= "protected MenuShell ();" />
<MemberType > Constructor</MemberType>
<ReturnValue />
<Parameters />
<Docs >
2004-08-29 08:53:41 +00:00
<summary > Protected constructor.</summary>
2004-06-01 18:05:26 +00:00
<returns > a <see cref= "T:Gtk.MenuShell" /> </returns>
2004-11-05 21:25:40 +00:00
<remarks />
</Docs>
</Member>
<Member MemberName= "Canceled" >
<MemberSignature Language= "C#" Value= "public event EventHandler Canceled;" />
<MemberType > Event</MemberType>
<ReturnValue >
<ReturnType > System.EventHandler</ReturnType>
</ReturnValue>
<Parameters />
<Docs >
<summary > An action signal which cancels the selection within the menu shell.Causes the <see cref= "F:Gtk.MenuShell.SelectionDone" /> signal to be emitted.</summary>
<remarks />
</Docs>
</Member>
<Member MemberName= "OnCanceled" >
<MemberSignature Language= "C#" Value= "protected virtual void OnCanceled ();" />
<MemberType > Method</MemberType>
<ReturnValue >
<ReturnType > System.Void</ReturnType>
</ReturnValue>
<Parameters />
<Docs >
<summary > Default handler for the <see cref= "M:Gtk.MenuShell.Canceled" /> event.</summary>
<remarks > Override this method in a subclass to provide a default handler for the <see cref= "M:Gtk.MenuShell.Canceled" /> event.</remarks>
</Docs>
</Member>
<Member MemberName= "Cancel" >
<MemberSignature Language= "C#" Value= "public void Cancel ();" />
<MemberType > Method</MemberType>
<ReturnValue >
<ReturnType > System.Void</ReturnType>
</ReturnValue>
<Parameters />
<Docs >
<summary > Emits the Canceled event.</summary>
<remarks />
2004-06-01 18:05:26 +00:00
</Docs>
</Member>
2003-02-12 02:00:12 +00:00
</Members>
2004-12-30 16:05:38 +00:00
</Type>