2003-02-12 02:00:12 +00:00
<Type Name= "Menu" FullName= "Gtk.Menu" >
2005-05-23 20:41:51 +00:00
<TypeSignature Language= "C#" Maintainer= "Hector Gomez M" Value= "public class Menu : Gtk.MenuShell" />
2011-11-09 16:01:51 +00:00
<TypeSignature Language= "ILAsm" Value= ".class public auto ansi beforefieldinit Menu extends 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>
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>
2011-11-09 16:01:51 +00:00
<Base >
<BaseTypeName > Gtk.MenuShell</BaseTypeName>
</Base>
<Interfaces >
</Interfaces>
2003-02-12 02:00:12 +00:00
<Docs >
2003-07-23 01:10:29 +00:00
<summary > A <see cref= "T:Gtk.Menu" /> is a <see cref= "T:Gtk.MenuShell" /> that implements a drop down menu.</summary>
2003-05-20 08:10:59 +00:00
<remarks >
2003-07-17 06:38:40 +00:00
<para >
2003-05-20 08:10:59 +00:00
A <see cref= "T:Gtk.Menu" /> is a <see cref= "T:Gtk.MenuShell" /> that implements a drop down menu consisting of a list of <see cref= "T:Gtk.MenuItem" /> objects which can be navigated and activated by the user to perform application functions.
</para>
2003-07-17 06:38:40 +00:00
<para >
2003-05-20 08:10:59 +00:00
It is commonly dropped down by activating a <see cref= "T:Gtk.MenuItem" /> in a <see cref= "T:Gtk.MenuBar" /> or in another <see cref= "T:Gtk.Menu" /> , it can also be popped up by activating a <see cref= "T:Gtk.OptionMenu" /> . Other composite widgets such as the <see cref= "T:Gtk.Notebook" /> can pop up a <see cref= "T:Gtk.Menu" /> as well.
</para>
2004-06-19 18:25:02 +00:00
<example >
<code lang= "C#" >
2003-07-23 01:10:29 +00:00
using System;
using Gtk;
2004-06-19 18:25:02 +00:00
public class MenuApp
{
2003-07-23 01:10:29 +00:00
public static void Main (string[] args)
{
Application.Init();
2004-06-19 18:25:02 +00:00
2003-07-23 01:10:29 +00:00
Window win = new Window ("Menu Sample App");
win.DeleteEvent += new DeleteEventHandler (delete_cb);
win.SetDefaultSize (200, 150);
VBox box = new VBox (false, 2);
MenuBar mb = new MenuBar ();
Menu file_menu = new Menu ();
MenuItem exit_item = new MenuItem("Exit");
exit_item.Activated += new EventHandler (exit_cb);
file_menu.Append (exit_item);
2004-06-19 18:25:02 +00:00
2003-07-23 01:10:29 +00:00
MenuItem file_item = new MenuItem("File");
file_item.Submenu = file_menu;
mb.Append (file_item);
2004-06-19 18:25:02 +00:00
box.PackStart(mb, false, false, 0);
2003-07-23 01:10:29 +00:00
Button btn = new Button ("Yep, that's a menu");
box.PackStart(btn, true, true, 0);
2004-06-19 18:25:02 +00:00
2003-07-23 01:10:29 +00:00
win.Add (box);
win.ShowAll ();
Application.Run ();
}
static void delete_cb (object o, DeleteEventArgs args)
{
Application.Quit ();
}
static void exit_cb (object o, EventArgs args)
{
Application.Quit ();
}
2004-06-19 18:25:02 +00:00
}
</code>
</example>
</remarks>
2003-02-12 02:00:12 +00:00
</Docs>
<Members >
2011-11-09 16:01:51 +00:00
<Member MemberName= ".ctor" >
<MemberSignature Language= "C#" Value= "public Menu ();" />
<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 Menu (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= "AccelGroup" >
<MemberSignature Language= "C#" Value= "public Gtk.AccelGroup AccelGroup { get; set; }" />
<MemberSignature Language= "ILAsm" Value= ".property instance class Gtk.AccelGroup AccelGroup" />
<MemberType > Property</MemberType>
<Attributes >
<Attribute >
<AttributeName > GLib.Property("accel-group")</AttributeName>
</Attribute>
</Attributes>
2003-02-12 02:00:12 +00:00
<ReturnValue >
2011-11-09 16:01:51 +00:00
<ReturnType > Gtk.AccelGroup</ReturnType>
2003-02-12 02:00:12 +00:00
</ReturnValue>
2011-11-09 16:01:51 +00:00
<Parameters >
</Parameters>
2003-02-12 02:00:12 +00:00
<Docs >
2011-11-09 16:01:51 +00:00
<summary > Sets or obtains the <see cref= "T:Gtk.AccelGroup" /> which holds global accelerators for the menu.</summary>
<value > The <see cref= "T:Gtk.AccelGroup" /> associated with the menu.</value>
2003-05-20 08:10:59 +00:00
<remarks >
2003-07-17 06:38:40 +00:00
<para >
2011-11-09 16:01:51 +00:00
This accelerator group needs to also be added to all windows that this menu is being used in with <see cref= "M:Gtk.Window.AddAccelGroup" /> , in order for those windows to support all the accelerators contained in this group.
2003-05-20 08:10:59 +00:00
</para>
</remarks>
2003-02-12 02:00:12 +00:00
</Docs>
</Member>
2011-11-09 16:01:51 +00:00
<Member MemberName= "AccelPath" >
<MemberSignature Language= "C#" Value= "public string AccelPath { get; set; }" />
<MemberSignature Language= "ILAsm" Value= ".property instance string AccelPath" />
<MemberType > Property</MemberType>
<Attributes >
<Attribute >
<AttributeName > GLib.Property("accel-path")</AttributeName>
</Attribute>
</Attributes>
<ReturnValue >
<ReturnType > System.String</ReturnType>
</ReturnValue>
<Parameters >
</Parameters>
<Docs >
<summary > Sets an accelerator path for this menu from which accelerator paths for its immediate children, its menu items, can be constructed.</summary>
<value > void</value>
<remarks >
<para >
The main purpose of this function is to spare the programmer the inconvenience of having to call <see cref= "P:Gtk.MenuItem.AccelPath" /> on each menu item that should support runtime user changable accelerators. Instead, by just calling <see cref= "P:Gtk.MenuItem.AccelPath" /> on their parent, each menu item of this menu, that contains a label describing its purpose, automatically gets an accel path assigned.
</para>
</remarks>
</Docs>
</Member>
<Member MemberName= "Active" >
<MemberSignature Language= "C#" Value= "public Gtk.Widget Active { get; set; }" />
<MemberSignature Language= "ILAsm" Value= ".property instance class Gtk.Widget Active" />
<MemberType > Property</MemberType>
<Attributes >
<Attribute >
<AttributeName > GLib.Property("active")</AttributeName>
</Attribute>
</Attributes>
<ReturnValue >
<ReturnType > Gtk.Widget</ReturnType>
</ReturnValue>
<Docs >
<summary > Returns the selected menu item from the menu.</summary>
<value > The <see cref= "T:Gtk.MenuItem" /> that was last selected in the menu. If a selection has not yet been made, the first menu item is selected.</value>
<remarks >
<para >
This is used by the <see cref= "T:Gtk.OptionMenu" /> .
</para>
</remarks>
</Docs>
</Member>
<Member MemberName= "Attach" >
<MemberSignature Language= "C#" Value= "public void Attach (Gtk.Widget child, uint left_attach, uint right_attach, uint top_attach, uint bottom_attach);" />
<MemberSignature Language= "ILAsm" Value= ".method public hidebysig instance void Attach(class Gtk.Widget child, unsigned int32 left_attach, unsigned int32 right_attach, unsigned int32 top_attach, unsigned int32 bottom_attach) cil managed" />
2003-02-12 02:00:12 +00:00
<MemberType > Method</MemberType>
<ReturnValue >
<ReturnType > System.Void</ReturnType>
</ReturnValue>
2011-11-09 16:01:51 +00:00
<Parameters >
<Parameter Name= "child" Type= "Gtk.Widget" />
<Parameter Name= "left_attach" Type= "System.UInt32" />
<Parameter Name= "right_attach" Type= "System.UInt32" />
<Parameter Name= "top_attach" Type= "System.UInt32" />
<Parameter Name= "bottom_attach" Type= "System.UInt32" />
</Parameters>
2003-02-12 02:00:12 +00:00
<Docs >
2011-11-09 16:01:51 +00:00
<param name= "child" > a <see cref= "T:Gtk.Widget" /> , should be a <see cref= "T:Gtk.MenuItem" /> </param>
<param name= "left_attach" > a <see cref= "T:System.UInt32" /> </param>
<param name= "right_attach" > a <see cref= "T:System.UInt32" /> </param>
<param name= "top_attach" > a <see cref= "T:System.UInt32" /> </param>
<param name= "bottom_attach" > a <see cref= "T:System.UInt32" /> </param>
<summary > Adds a new <see cref= "T:Gtk.MenuItem" /> to a (table) menu.</summary>
<remarks >
<para > The number of 'cells' that
an item will occupy is specified by <paramref name= "left_attach" /> ,
<paramref name= "right_attach" /> , <paramref name= "top_attach" /> and
<paramref name= "bottom_attach" /> . These each represent the leftmost,
rightmost, uppermost and lower column and row numbers of the table.
(Columns and rows are indexed from zero).</para>
<para > Note that this function is not related to <see cref= "M:Gtk.Menu.Detach" /> .</para>
</remarks>
<since version= "Gtk# 2.4" />
2003-02-12 02:00:12 +00:00
</Docs>
</Member>
<Member MemberName= "AttachToWidget" >
<MemberSignature Language= "C#" Value= "public void AttachToWidget (Gtk.Widget attach_widget, Gtk.MenuDetachFunc detacher);" />
2011-11-09 16:01:51 +00:00
<MemberSignature Language= "ILAsm" Value= ".method public hidebysig instance void AttachToWidget(class Gtk.Widget attach_widget, class Gtk.MenuDetachFunc detacher) cil managed" />
2003-02-12 02:00:12 +00:00
<MemberType > Method</MemberType>
<ReturnValue >
<ReturnType > System.Void</ReturnType>
</ReturnValue>
<Parameters >
2003-09-17 21:56:59 +00:00
<Parameter Name= "attach_widget" Type= "Gtk.Widget" />
<Parameter Name= "detacher" Type= "Gtk.MenuDetachFunc" />
</Parameters>
2003-02-12 02:00:12 +00:00
<Docs >
2003-05-20 08:10:59 +00:00
<param name= "attach_widget" > The <see cref= "T:Gtk.Widget" /> that the menu will be attached to.</param>
<param name= "detacher" > The user supplied callback function that will be called when the menu calls <see cref= "M:Gtk.Menu.Detach" /> .</param>
2011-11-09 16:01:51 +00:00
<summary > Attaches the menu to the widget and provides a detacher.</summary>
2003-05-20 08:10:59 +00:00
<remarks >
2003-07-17 06:38:40 +00:00
<para >
2003-05-20 08:10:59 +00:00
Attaches the menu to the widget and provides a callback function that will be invoked when the menu calls <see cref= "M:Gtk.Menu.Detach" /> during its destruction.
</para>
</remarks>
2003-02-12 02:00:12 +00:00
</Docs>
</Member>
2011-11-09 16:01:51 +00:00
<Member MemberName= "AttachWidget" >
<MemberSignature Language= "C#" Value= "public Gtk.Widget AttachWidget { get; set; }" />
<MemberSignature Language= "ILAsm" Value= ".property instance class Gtk.Widget AttachWidget" />
<MemberType > Property</MemberType>
<Attributes >
<Attribute >
<AttributeName > GLib.Property("attach-widget")</AttributeName>
</Attribute>
</Attributes>
<ReturnValue >
<ReturnType > Gtk.Widget</ReturnType>
</ReturnValue>
<Docs >
<summary > Returns the <see cref= "T:Gtk.Widget" /> that the menu is attached to.</summary>
<value > The <see cref= "T:Gtk.Widget" /> that the menu is attached to.</value>
<remarks />
</Docs>
</Member>
<Member MemberName= "Detach" >
<MemberSignature Language= "C#" Value= "public void Detach ();" />
<MemberSignature Language= "ILAsm" Value= ".method public hidebysig instance void Detach() cil managed" />
<MemberType > Method</MemberType>
<ReturnValue >
<ReturnType > System.Void</ReturnType>
</ReturnValue>
<Parameters />
<Docs >
<summary > Detaches the menu from the widget to which it had been attached.</summary>
<remarks >
<para >
This function will call the detacher, provided when the <see cref= "M:Gtk.Menu.AttachToWidget" /> function was called.
</para>
</remarks>
</Docs>
</Member>
<Member MemberName= "GetForAttachWidget" >
2013-11-30 15:01:53 +00:00
<MemberSignature Language= "C#" Value= "public static Gtk.Widget[] GetForAttachWidget (Gtk.Widget widget);" />
<MemberSignature Language= "ILAsm" Value= ".method public static hidebysig class Gtk.Widget[] GetForAttachWidget(class Gtk.Widget widget) cil managed" />
2011-11-09 16:01:51 +00:00
<MemberType > Method</MemberType>
<ReturnValue >
2013-11-30 15:01:53 +00:00
<ReturnType > Gtk.Widget[]</ReturnType>
2011-11-09 16:01:51 +00:00
</ReturnValue>
<Parameters >
<Parameter Name= "widget" Type= "Gtk.Widget" />
</Parameters>
<Docs >
2013-11-30 15:01:53 +00:00
<param name= "widget" > To be added.</param>
<summary > To be added.</summary>
<returns > To be added.</returns>
<remarks > To be added.</remarks>
<since version= "Gtk# 3.0" />
2011-11-09 16:01:51 +00:00
</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.Menu" /> .</remarks>
</Docs>
</Member>
<Member MemberName= "Item" >
<MemberSignature Language= "C#" Value= "public override Gtk.Container.ContainerChild this[Gtk.Widget child] { get; }" />
<MemberSignature Language= "ILAsm" Value= ".property instance class Gtk.Container/ContainerChild Item(class Gtk.Widget)" />
<MemberType > Property</MemberType>
<ReturnValue >
<ReturnType > Gtk.Container+ContainerChild</ReturnType>
</ReturnValue>
<Parameters >
<Parameter Name= "child" Type= "Gtk.Widget" />
</Parameters>
<Docs >
<param name= "child" > To be added.</param>
<summary > To be added.</summary>
<value > To be added.</value>
<remarks > To be added.</remarks>
<since version= "Gtk# 3.0" />
</Docs>
</Member>
<Member MemberName= "Monitor" >
<MemberSignature Language= "C#" Value= "public int Monitor { get; set; }" />
<MemberSignature Language= "ILAsm" Value= ".property instance int32 Monitor" />
<MemberType > Property</MemberType>
<Attributes >
<Attribute >
<AttributeName > GLib.Property("monitor")</AttributeName>
</Attribute>
</Attributes>
<ReturnValue >
<ReturnType > System.Int32</ReturnType>
</ReturnValue>
<Docs >
<summary > The number of the monitor on which the menu should be popped up.</summary>
<value > a <see cref= "T:System.Int32" /> </value>
<remarks >
</remarks>
<since version= "Gtk# 2.4" />
</Docs>
</Member>
<Member MemberName= "MoveScroll" >
<MemberSignature Language= "C#" Value= "public event Gtk.MoveScrollHandler MoveScroll;" />
<MemberSignature Language= "ILAsm" Value= ".event class Gtk.MoveScrollHandler MoveScroll" />
<MemberType > Event</MemberType>
<Attributes >
<Attribute >
<AttributeName > GLib.Signal("move-scroll")</AttributeName>
</Attribute>
</Attributes>
<ReturnValue >
<ReturnType > Gtk.MoveScrollHandler</ReturnType>
</ReturnValue>
<Docs >
<summary > To be added.</summary>
<remarks > To be added.</remarks>
<since version= "Gtk# 3.0" />
</Docs>
</Member>
<Member MemberName= "OnMoveScroll" >
<MemberSignature Language= "C#" Value= "protected virtual void OnMoveScroll (Gtk.ScrollType p0);" />
<MemberSignature Language= "ILAsm" Value= ".method familyhidebysig newslot virtual instance void OnMoveScroll(valuetype Gtk.ScrollType p0) cil managed" />
<MemberType > Method</MemberType>
<Attributes >
<Attribute >
<AttributeName > GLib.DefaultSignalHandler(ConnectionMethod="OverrideMoveScroll", Type=typeof(Gtk.Menu))</AttributeName>
</Attribute>
</Attributes>
<ReturnValue >
<ReturnType > System.Void</ReturnType>
</ReturnValue>
<Parameters >
<Parameter Name= "p0" Type= "Gtk.ScrollType" />
</Parameters>
<Docs >
<param name= "p0" > To be added.</param>
2013-12-04 20:28:00 +00:00
<summary > Default handler for the <see cref= "M:Gtk.Menu.MoveScroll" /> event.</summary>
<remarks > Override this method in a subclass to provide a default handler for the <see cref= "M:Gtk.Menu.MoveScroll" /> event.</remarks>
2011-11-09 16:01:51 +00:00
<since version= "Gtk# 3.0" />
</Docs>
</Member>
<Member MemberName= "Popdown" >
<MemberSignature Language= "C#" Value= "public void Popdown ();" />
<MemberSignature Language= "ILAsm" Value= ".method public hidebysig instance void Popdown() cil managed" />
<MemberType > Method</MemberType>
<ReturnValue >
<ReturnType > System.Void</ReturnType>
</ReturnValue>
<Parameters />
<Docs >
<summary > Removes the menu from the screen.</summary>
<remarks />
</Docs>
</Member>
2004-08-24 19:56:13 +00:00
<Member MemberName= "Popup" >
<MemberSignature Language= "C#" Value= "public void Popup ();" />
2011-11-09 16:01:51 +00:00
<MemberSignature Language= "ILAsm" Value= ".method public hidebysig instance void Popup() cil managed" />
2004-08-24 19:56:13 +00:00
<MemberType > Method</MemberType>
<ReturnValue >
<ReturnType > System.Void</ReturnType>
</ReturnValue>
2004-11-05 21:25:40 +00:00
<Parameters />
2004-08-24 19:56:13 +00:00
<Docs >
<summary > Displays a menu and makes it available for selection.</summary>
<remarks > This is a convenience overload that calls
2004-11-05 21:25:40 +00:00
<see cref= "M:Gtk.Menu.Popup(Gtk.Widget,Gtk.Widget,Gtk.MenuPositionFunc,System.IntPtr,System.UInt32,System.UInt32)" /> with some default arguments.</remarks>
2004-08-24 19:56:13 +00:00
</Docs>
</Member>
2003-02-12 02:00:12 +00:00
<Member MemberName= "Popup" >
* parser/gapi2xml.pl (addParamsElem): change the handling of
anonymous function pointer types in method signatures. Before, we
added a <callback> child to the <parameters> node, but the
generator just ignored it. Now we add the callback (with a made-up
name) to the toplevel node, and add an ordinary <param> node
referencing it to the <parameters> node. Also, if the last param
of the callback is a gpointer, rename it from "arg#" to "data" so
it will be treated correctly (as the user data passed from the
calling method). [Fixes #66241]
* art/art-api.raw:
* gdk/gdk-api-2.4.raw:
* gdk/gdk-api-2.6.raw: Regen
* generator/Parameters.cs (IsHidden): loosen the definition of
hideable user_data; it doesn't have to occur at the end of the
parameter list, as long as there's a callback arg before it.
* generator/MethodBody.cs (GetCallString): Use Parameters.IsHidden
to decide whether or not to squash user_data params, rather than
trying to duplicate its logic. As a side effect, this also causes
a handful of methods that take non-hidden IntPtr arguments to
start actually passing those arguments to C rather than always
passing IntPtr.Zero.
* generator/Method.cs (Equals, GetHashCode): Remove unnecessary
and possibly erroneous hashing overrides.
* gtk/Gtk.metadata: Hide Gtk.Container.ForeachFull, since it's
useless and wasn't in gtk# 1.0
* gtk/Menu.custom (Popup):
* gtk/TextIter.custom (ForwardFindChar, BackwardFindChar):
* gnome/App.custom (CreateMenusInterp, InsertMenusInterp,
CreateToolbarInterp):
* gnome/Client.custom (RequestInteractionInterp):
* gnome/Popup.custom (MenuDoPopupModal, MenuDoPopup): Add
[Obsolete] compat overloads for methods that have now lost a
useless IntPtr.
svn path=/trunk/gtk-sharp/; revision=47566
2005-07-22 19:10:04 +00:00
<MemberSignature Language= "C#" Value= "public void Popup (Gtk.Widget parent_menu_shell, Gtk.Widget parent_menu_item, Gtk.MenuPositionFunc func, uint button, uint activate_time);" />
2011-11-09 16:01:51 +00:00
<MemberSignature Language= "ILAsm" Value= ".method public hidebysig instance void Popup(class Gtk.Widget parent_menu_shell, class Gtk.Widget parent_menu_item, class Gtk.MenuPositionFunc func, unsigned int32 button, unsigned int32 activate_time) cil managed" />
2003-02-12 02:00:12 +00:00
<MemberType > Method</MemberType>
<ReturnValue >
<ReturnType > System.Void</ReturnType>
</ReturnValue>
<Parameters >
2003-09-17 21:56:59 +00:00
<Parameter Name= "parent_menu_shell" Type= "Gtk.Widget" />
<Parameter Name= "parent_menu_item" Type= "Gtk.Widget" />
<Parameter Name= "func" Type= "Gtk.MenuPositionFunc" />
<Parameter Name= "button" Type= "System.UInt32" />
<Parameter Name= "activate_time" Type= "System.UInt32" />
</Parameters>
2003-02-12 02:00:12 +00:00
<Docs >
2003-05-20 08:10:59 +00:00
<param name= "parent_menu_shell" > The menu shell containing the triggering menu item, or <see langword= "null" /> .</param>
<param name= "parent_menu_item" > The menu item whose activation triggered the popup, or <see langword= "null" /> .</param>
<param name= "func" > A user supplied function used to position the menu, or <see langword= "null" /> .</param>
<param name= "button" > The mouse button which was pressed to initiate the event.</param>
<param name= "activate_time" > The time at which the activation event occurred.</param>
2011-11-09 16:01:51 +00:00
<summary > Displays a menu and makes it available for selection.</summary>
2003-05-20 08:10:59 +00:00
<remarks >
2003-07-17 06:38:40 +00:00
<para >
* parser/gapi2xml.pl (addParamsElem): change the handling of
anonymous function pointer types in method signatures. Before, we
added a <callback> child to the <parameters> node, but the
generator just ignored it. Now we add the callback (with a made-up
name) to the toplevel node, and add an ordinary <param> node
referencing it to the <parameters> node. Also, if the last param
of the callback is a gpointer, rename it from "arg#" to "data" so
it will be treated correctly (as the user data passed from the
calling method). [Fixes #66241]
* art/art-api.raw:
* gdk/gdk-api-2.4.raw:
* gdk/gdk-api-2.6.raw: Regen
* generator/Parameters.cs (IsHidden): loosen the definition of
hideable user_data; it doesn't have to occur at the end of the
parameter list, as long as there's a callback arg before it.
* generator/MethodBody.cs (GetCallString): Use Parameters.IsHidden
to decide whether or not to squash user_data params, rather than
trying to duplicate its logic. As a side effect, this also causes
a handful of methods that take non-hidden IntPtr arguments to
start actually passing those arguments to C rather than always
passing IntPtr.Zero.
* generator/Method.cs (Equals, GetHashCode): Remove unnecessary
and possibly erroneous hashing overrides.
* gtk/Gtk.metadata: Hide Gtk.Container.ForeachFull, since it's
useless and wasn't in gtk# 1.0
* gtk/Menu.custom (Popup):
* gtk/TextIter.custom (ForwardFindChar, BackwardFindChar):
* gnome/App.custom (CreateMenusInterp, InsertMenusInterp,
CreateToolbarInterp):
* gnome/Client.custom (RequestInteractionInterp):
* gnome/Popup.custom (MenuDoPopupModal, MenuDoPopup): Add
[Obsolete] compat overloads for methods that have now lost a
useless IntPtr.
svn path=/trunk/gtk-sharp/; revision=47566
2005-07-22 19:10:04 +00:00
Applications can use this function to display context-sensitive menus, and will typically supply <see langword= "null" /> for the <paramref name= "parent_menu_shell" /> , <paramref name= "parent_menu_item" /> , and <paramref name= "func" /> parameters. The default menu positioning function will position the menu at the current mouse cursor position.
2003-05-20 08:10:59 +00:00
</para>
2003-07-17 06:38:40 +00:00
<para >
2003-05-20 08:10:59 +00:00
The <paramref name= "button" /> parameter should be the mouse button pressed to initiate the menu popup. If the menu popup was initiated by something other than a mouse button press, such as a mouse button release or a keypress, button should be zero(0).
</para>
2003-07-17 06:38:40 +00:00
<para >
2003-10-04 02:55:43 +00:00
The <paramref name= "activate_time" /> parameter should be the time stamp of the event that initiated the popup. If such an event is not available, use <see cref= "P:Gtk.Global.CurrentEventTime" /> instead.
2003-05-20 08:10:59 +00:00
</para>
</remarks>
2003-10-04 02:55:43 +00:00
<example >
<code language= "C#" >
using System;
using Gtk;
class PopupSample
{
Window win;
Menu menu;
static void Main (string[] args)
{
new PopupSample (args);
}
PopupSample (string[] args)
{
Application.Init ();
win = new Window ("Menu.Popup sample");
win.SetDefaultSize (400, 300);
win.DeleteEvent += new DeleteEventHandler (OnWinDelete);
menu = new Menu ();
MenuItem hello = new MenuItem ("Hello");
hello.Activated += new EventHandler (OnHelloActivated);
hello.Show ();
menu.Append (hello);
Label label = new Label ("Right Click me");
EventBox eventbox = new EventBox ();
eventbox.ButtonPressEvent += new ButtonPressEventHandler (OnEventBoxPressed);
eventbox.Add (label);
win.Add (eventbox);
win.ShowAll ();
Application.Run ();
}
private void OnEventBoxPressed (object o, ButtonPressEventArgs args)
{
if (args.Event.button == 3)
* parser/gapi2xml.pl (addParamsElem): change the handling of
anonymous function pointer types in method signatures. Before, we
added a <callback> child to the <parameters> node, but the
generator just ignored it. Now we add the callback (with a made-up
name) to the toplevel node, and add an ordinary <param> node
referencing it to the <parameters> node. Also, if the last param
of the callback is a gpointer, rename it from "arg#" to "data" so
it will be treated correctly (as the user data passed from the
calling method). [Fixes #66241]
* art/art-api.raw:
* gdk/gdk-api-2.4.raw:
* gdk/gdk-api-2.6.raw: Regen
* generator/Parameters.cs (IsHidden): loosen the definition of
hideable user_data; it doesn't have to occur at the end of the
parameter list, as long as there's a callback arg before it.
* generator/MethodBody.cs (GetCallString): Use Parameters.IsHidden
to decide whether or not to squash user_data params, rather than
trying to duplicate its logic. As a side effect, this also causes
a handful of methods that take non-hidden IntPtr arguments to
start actually passing those arguments to C rather than always
passing IntPtr.Zero.
* generator/Method.cs (Equals, GetHashCode): Remove unnecessary
and possibly erroneous hashing overrides.
* gtk/Gtk.metadata: Hide Gtk.Container.ForeachFull, since it's
useless and wasn't in gtk# 1.0
* gtk/Menu.custom (Popup):
* gtk/TextIter.custom (ForwardFindChar, BackwardFindChar):
* gnome/App.custom (CreateMenusInterp, InsertMenusInterp,
CreateToolbarInterp):
* gnome/Client.custom (RequestInteractionInterp):
* gnome/Popup.custom (MenuDoPopupModal, MenuDoPopup): Add
[Obsolete] compat overloads for methods that have now lost a
useless IntPtr.
svn path=/trunk/gtk-sharp/; revision=47566
2005-07-22 19:10:04 +00:00
menu.Popup (null, null, null, 3, Gtk.Global.CurrentEventTime);
2003-10-04 02:55:43 +00:00
}
private void OnHelloActivated (object o, EventArgs args)
{
Console.WriteLine ("Hello Activated");
}
private void OnWinDelete (object o, DeleteEventArgs args)
{
Application.Quit ();
}
}
</code>
</example>
2003-02-12 02:00:12 +00:00
</Docs>
</Member>
* parser/gapi2xml.pl (addParamsElem): change the handling of
anonymous function pointer types in method signatures. Before, we
added a <callback> child to the <parameters> node, but the
generator just ignored it. Now we add the callback (with a made-up
name) to the toplevel node, and add an ordinary <param> node
referencing it to the <parameters> node. Also, if the last param
of the callback is a gpointer, rename it from "arg#" to "data" so
it will be treated correctly (as the user data passed from the
calling method). [Fixes #66241]
* art/art-api.raw:
* gdk/gdk-api-2.4.raw:
* gdk/gdk-api-2.6.raw: Regen
* generator/Parameters.cs (IsHidden): loosen the definition of
hideable user_data; it doesn't have to occur at the end of the
parameter list, as long as there's a callback arg before it.
* generator/MethodBody.cs (GetCallString): Use Parameters.IsHidden
to decide whether or not to squash user_data params, rather than
trying to duplicate its logic. As a side effect, this also causes
a handful of methods that take non-hidden IntPtr arguments to
start actually passing those arguments to C rather than always
passing IntPtr.Zero.
* generator/Method.cs (Equals, GetHashCode): Remove unnecessary
and possibly erroneous hashing overrides.
* gtk/Gtk.metadata: Hide Gtk.Container.ForeachFull, since it's
useless and wasn't in gtk# 1.0
* gtk/Menu.custom (Popup):
* gtk/TextIter.custom (ForwardFindChar, BackwardFindChar):
* gnome/App.custom (CreateMenusInterp, InsertMenusInterp,
CreateToolbarInterp):
* gnome/Client.custom (RequestInteractionInterp):
* gnome/Popup.custom (MenuDoPopupModal, MenuDoPopup): Add
[Obsolete] compat overloads for methods that have now lost a
useless IntPtr.
svn path=/trunk/gtk-sharp/; revision=47566
2005-07-22 19:10:04 +00:00
<Member MemberName= "Popup" >
<MemberSignature Language= "C#" Value= "public void Popup (Gtk.Widget parent_menu_shell, Gtk.Widget parent_menu_item, Gtk.MenuPositionFunc func, IntPtr data, uint button, uint activate_time);" />
2011-11-09 16:01:51 +00:00
<MemberSignature Language= "ILAsm" Value= ".method public hidebysig instance void Popup(class Gtk.Widget parent_menu_shell, class Gtk.Widget parent_menu_item, class Gtk.MenuPositionFunc func, native int data, unsigned int32 button, unsigned int32 activate_time) cil managed" />
* parser/gapi2xml.pl (addParamsElem): change the handling of
anonymous function pointer types in method signatures. Before, we
added a <callback> child to the <parameters> node, but the
generator just ignored it. Now we add the callback (with a made-up
name) to the toplevel node, and add an ordinary <param> node
referencing it to the <parameters> node. Also, if the last param
of the callback is a gpointer, rename it from "arg#" to "data" so
it will be treated correctly (as the user data passed from the
calling method). [Fixes #66241]
* art/art-api.raw:
* gdk/gdk-api-2.4.raw:
* gdk/gdk-api-2.6.raw: Regen
* generator/Parameters.cs (IsHidden): loosen the definition of
hideable user_data; it doesn't have to occur at the end of the
parameter list, as long as there's a callback arg before it.
* generator/MethodBody.cs (GetCallString): Use Parameters.IsHidden
to decide whether or not to squash user_data params, rather than
trying to duplicate its logic. As a side effect, this also causes
a handful of methods that take non-hidden IntPtr arguments to
start actually passing those arguments to C rather than always
passing IntPtr.Zero.
* generator/Method.cs (Equals, GetHashCode): Remove unnecessary
and possibly erroneous hashing overrides.
* gtk/Gtk.metadata: Hide Gtk.Container.ForeachFull, since it's
useless and wasn't in gtk# 1.0
* gtk/Menu.custom (Popup):
* gtk/TextIter.custom (ForwardFindChar, BackwardFindChar):
* gnome/App.custom (CreateMenusInterp, InsertMenusInterp,
CreateToolbarInterp):
* gnome/Client.custom (RequestInteractionInterp):
* gnome/Popup.custom (MenuDoPopupModal, MenuDoPopup): Add
[Obsolete] compat overloads for methods that have now lost a
useless IntPtr.
svn path=/trunk/gtk-sharp/; revision=47566
2005-07-22 19:10:04 +00:00
<MemberType > Method</MemberType>
2011-11-09 16:01:51 +00:00
<Attributes >
<Attribute >
<AttributeName > System.Obsolete("Replaced by overload without IntPtr argument")</AttributeName>
</Attribute>
</Attributes>
* parser/gapi2xml.pl (addParamsElem): change the handling of
anonymous function pointer types in method signatures. Before, we
added a <callback> child to the <parameters> node, but the
generator just ignored it. Now we add the callback (with a made-up
name) to the toplevel node, and add an ordinary <param> node
referencing it to the <parameters> node. Also, if the last param
of the callback is a gpointer, rename it from "arg#" to "data" so
it will be treated correctly (as the user data passed from the
calling method). [Fixes #66241]
* art/art-api.raw:
* gdk/gdk-api-2.4.raw:
* gdk/gdk-api-2.6.raw: Regen
* generator/Parameters.cs (IsHidden): loosen the definition of
hideable user_data; it doesn't have to occur at the end of the
parameter list, as long as there's a callback arg before it.
* generator/MethodBody.cs (GetCallString): Use Parameters.IsHidden
to decide whether or not to squash user_data params, rather than
trying to duplicate its logic. As a side effect, this also causes
a handful of methods that take non-hidden IntPtr arguments to
start actually passing those arguments to C rather than always
passing IntPtr.Zero.
* generator/Method.cs (Equals, GetHashCode): Remove unnecessary
and possibly erroneous hashing overrides.
* gtk/Gtk.metadata: Hide Gtk.Container.ForeachFull, since it's
useless and wasn't in gtk# 1.0
* gtk/Menu.custom (Popup):
* gtk/TextIter.custom (ForwardFindChar, BackwardFindChar):
* gnome/App.custom (CreateMenusInterp, InsertMenusInterp,
CreateToolbarInterp):
* gnome/Client.custom (RequestInteractionInterp):
* gnome/Popup.custom (MenuDoPopupModal, MenuDoPopup): Add
[Obsolete] compat overloads for methods that have now lost a
useless IntPtr.
svn path=/trunk/gtk-sharp/; revision=47566
2005-07-22 19:10:04 +00:00
<ReturnValue >
<ReturnType > System.Void</ReturnType>
</ReturnValue>
<Parameters >
<Parameter Name= "parent_menu_shell" Type= "Gtk.Widget" />
<Parameter Name= "parent_menu_item" Type= "Gtk.Widget" />
<Parameter Name= "func" Type= "Gtk.MenuPositionFunc" />
<Parameter Name= "data" Type= "System.IntPtr" />
<Parameter Name= "button" Type= "System.UInt32" />
<Parameter Name= "activate_time" Type= "System.UInt32" />
</Parameters>
<Docs >
<param name= "parent_menu_shell" > The menu shell containing the triggering menu item, or <see langword= "null" /> .</param>
<param name= "parent_menu_item" > The menu item whose activation triggered the popup, or <see langword= "null" /> .</param>
<param name= "func" > A user supplied function used to position the menu, or <see langword= "null" /> .</param>
<param name= "data" > Ignored.</param>
<param name= "button" > The mouse button which was pressed to initiate the event.</param>
<param name= "activate_time" > The time at which the activation event occurred.</param>
2011-11-09 16:01:51 +00:00
<summary > Obsolete. Replaced by <see cref= "Gtk.Menu.Popup(Gtk.Widget,Gtk.Widget,Gtk.MenuPositionFunc,System.UInt32,System.UInt32)" /> .</summary>
* parser/gapi2xml.pl (addParamsElem): change the handling of
anonymous function pointer types in method signatures. Before, we
added a <callback> child to the <parameters> node, but the
generator just ignored it. Now we add the callback (with a made-up
name) to the toplevel node, and add an ordinary <param> node
referencing it to the <parameters> node. Also, if the last param
of the callback is a gpointer, rename it from "arg#" to "data" so
it will be treated correctly (as the user data passed from the
calling method). [Fixes #66241]
* art/art-api.raw:
* gdk/gdk-api-2.4.raw:
* gdk/gdk-api-2.6.raw: Regen
* generator/Parameters.cs (IsHidden): loosen the definition of
hideable user_data; it doesn't have to occur at the end of the
parameter list, as long as there's a callback arg before it.
* generator/MethodBody.cs (GetCallString): Use Parameters.IsHidden
to decide whether or not to squash user_data params, rather than
trying to duplicate its logic. As a side effect, this also causes
a handful of methods that take non-hidden IntPtr arguments to
start actually passing those arguments to C rather than always
passing IntPtr.Zero.
* generator/Method.cs (Equals, GetHashCode): Remove unnecessary
and possibly erroneous hashing overrides.
* gtk/Gtk.metadata: Hide Gtk.Container.ForeachFull, since it's
useless and wasn't in gtk# 1.0
* gtk/Menu.custom (Popup):
* gtk/TextIter.custom (ForwardFindChar, BackwardFindChar):
* gnome/App.custom (CreateMenusInterp, InsertMenusInterp,
CreateToolbarInterp):
* gnome/Client.custom (RequestInteractionInterp):
* gnome/Popup.custom (MenuDoPopupModal, MenuDoPopup): Add
[Obsolete] compat overloads for methods that have now lost a
useless IntPtr.
svn path=/trunk/gtk-sharp/; revision=47566
2005-07-22 19:10:04 +00:00
<remarks />
</Docs>
</Member>
2011-11-09 16:01:51 +00:00
<Member MemberName= "PopupForDevice" >
<MemberSignature Language= "C#" Value= "public void PopupForDevice (Gdk.Device device, Gtk.Widget parent_menu_shell, Gtk.Widget parent_menu_item, Gtk.MenuPositionFunc func, GLib.DestroyNotify destroy, uint button, uint activate_time);" />
<MemberSignature Language= "ILAsm" Value= ".method public hidebysig instance void PopupForDevice(class Gdk.Device device, class Gtk.Widget parent_menu_shell, class Gtk.Widget parent_menu_item, class Gtk.MenuPositionFunc func, class GLib.DestroyNotify destroy, unsigned int32 button, unsigned int32 activate_time) cil managed" />
2003-02-12 02:00:12 +00:00
<MemberType > Method</MemberType>
<ReturnValue >
<ReturnType > System.Void</ReturnType>
</ReturnValue>
2011-11-09 16:01:51 +00:00
<Parameters >
<Parameter Name= "device" Type= "Gdk.Device" />
<Parameter Name= "parent_menu_shell" Type= "Gtk.Widget" />
<Parameter Name= "parent_menu_item" Type= "Gtk.Widget" />
<Parameter Name= "func" Type= "Gtk.MenuPositionFunc" />
<Parameter Name= "destroy" Type= "GLib.DestroyNotify" />
<Parameter Name= "button" Type= "System.UInt32" />
<Parameter Name= "activate_time" Type= "System.UInt32" />
</Parameters>
2003-02-12 02:00:12 +00:00
<Docs >
2011-11-09 16:01:51 +00:00
<param name= "device" > To be added.</param>
<param name= "parent_menu_shell" > To be added.</param>
<param name= "parent_menu_item" > To be added.</param>
<param name= "func" > To be added.</param>
<param name= "destroy" > To be added.</param>
<param name= "button" > To be added.</param>
<param name= "activate_time" > To be added.</param>
<summary > To be added.</summary>
<remarks > To be added.</remarks>
<since version= "Gtk# 3.0" />
2003-02-12 02:00:12 +00:00
</Docs>
</Member>
<Member MemberName= "ReorderChild" >
<MemberSignature Language= "C#" Value= "public void ReorderChild (Gtk.Widget child, int position);" />
2011-11-09 16:01:51 +00:00
<MemberSignature Language= "ILAsm" Value= ".method public hidebysig instance void ReorderChild(class Gtk.Widget child, int32 position) cil managed" />
2003-02-12 02:00:12 +00:00
<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-20 08:10:59 +00:00
<param name= "child" > The <see cref= "T:Gtk.MenuItem" /> to move.</param>
<param name= "position" > The new position to place <paramref name= "child" /> . Positions are numbered from 0 to n-1.</param>
2011-11-09 16:01:51 +00:00
<summary > Moves a <see cref= "T:Gtk.MenuItem" /> to a new position within the <see cref= "T:Gtk.Menu" /> .</summary>
2003-05-20 08:10:59 +00:00
<remarks />
2003-02-12 02:00:12 +00:00
</Docs>
</Member>
2011-11-09 16:01:51 +00:00
<Member MemberName= "Reposition" >
<MemberSignature Language= "C#" Value= "public void Reposition ();" />
<MemberSignature Language= "ILAsm" Value= ".method public hidebysig instance void Reposition() cil managed" />
<MemberType > Method</MemberType>
2003-02-12 02:00:12 +00:00
<ReturnValue >
2011-11-09 16:01:51 +00:00
<ReturnType > System.Void</ReturnType>
2003-02-12 02:00:12 +00:00
</ReturnValue>
2011-11-09 16:01:51 +00:00
<Parameters />
2003-02-12 02:00:12 +00:00
<Docs >
2011-11-09 16:01:51 +00:00
<summary > Repositions the menu according to its position function.</summary>
2003-05-20 08:10:59 +00:00
<remarks />
2003-02-12 02:00:12 +00:00
</Docs>
</Member>
2011-11-09 16:01:51 +00:00
<Member MemberName= "ReserveToggleSize" >
<MemberSignature Language= "C#" Value= "public bool ReserveToggleSize { get; set; }" />
<MemberSignature Language= "ILAsm" Value= ".property instance bool ReserveToggleSize" />
2003-02-12 02:00:12 +00:00
<MemberType > Property</MemberType>
2005-09-03 04:11:38 +00:00
<Attributes >
<Attribute >
2011-11-09 16:01:51 +00:00
<AttributeName > GLib.Property("reserve-toggle-size")</AttributeName>
2005-09-03 04:11:38 +00:00
</Attribute>
</Attributes>
2003-02-12 02:00:12 +00:00
<ReturnValue >
2011-11-09 16:01:51 +00:00
<ReturnType > System.Boolean</ReturnType>
2003-02-12 02:00:12 +00:00
</ReturnValue>
<Docs >
2011-11-09 16:01:51 +00:00
<summary > To be added.</summary>
<value > To be added.</value>
<remarks > To be added.</remarks>
<since version= "Gtk# 3.0" />
2003-02-12 02:00:12 +00:00
</Docs>
2005-06-16 18:56:42 +00:00
</Member>
2003-07-17 06:38:40 +00:00
<Member MemberName= "Screen" >
2011-11-09 16:01:51 +00:00
<MemberSignature Language= "C#" Value= "public Gdk.Screen Screen { get; set; }" />
<MemberSignature Language= "ILAsm" Value= ".property instance class Gdk.Screen Screen" />
2003-07-17 06:38:40 +00:00
<MemberType > Property</MemberType>
<ReturnValue >
<ReturnType > Gdk.Screen</ReturnType>
</ReturnValue>
2005-02-12 06:30:56 +00:00
<Parameters />
2003-07-17 06:38:40 +00:00
<Docs >
2004-08-29 08:53:41 +00:00
<summary > The physical screen this menu is placed on.</summary>
2005-05-23 20:41:51 +00:00
<value > a <see cref= "T:Gdk.Screen" /> </value>
2004-11-05 21:25:40 +00:00
<remarks />
2003-07-17 06:38:40 +00:00
</Docs>
</Member>
<Member MemberName= "SetActive" >
<MemberSignature Language= "C#" Value= "public void SetActive (uint index_);" />
2011-11-09 16:01:51 +00:00
<MemberSignature Language= "ILAsm" Value= ".method public hidebysig instance void SetActive(unsigned int32 index_) cil managed" />
2003-07-17 06:38:40 +00:00
<MemberType > Method</MemberType>
<ReturnValue >
<ReturnType > System.Void</ReturnType>
</ReturnValue>
<Parameters >
2003-09-17 21:56:59 +00:00
<Parameter Name= "index_" Type= "System.UInt32" />
</Parameters>
2003-07-17 06:38:40 +00:00
<Docs >
<param name= "index_" > a <see cref= "T:System.UInt32" /> </param>
2011-11-09 16:01:51 +00:00
<summary > Selects the specified menu item within the menu.</summary>
2003-07-17 06:38:40 +00:00
<remarks >
2003-07-18 02:50:06 +00:00
<para >
2003-07-17 06:38:40 +00:00
This is used by the <see cref= "T:Gtk.OptionMenu" /> and should not be used by anyone else.
</para>
</remarks>
</Docs>
</Member>
2011-11-09 16:01:51 +00:00
<Member MemberName= "TearoffState" >
<MemberSignature Language= "C#" Value= "public bool TearoffState { get; set; }" />
<MemberSignature Language= "ILAsm" Value= ".property instance bool TearoffState" />
2003-12-24 01:35:30 +00:00
<MemberType > Property</MemberType>
2005-06-16 18:56:42 +00:00
<Attributes >
2005-05-23 20:41:51 +00:00
<Attribute >
2011-11-09 16:01:51 +00:00
<AttributeName > GLib.Property("tearoff-state")</AttributeName>
2005-05-23 20:41:51 +00:00
</Attribute>
2005-06-16 18:56:42 +00:00
</Attributes>
2004-11-05 21:25:40 +00:00
<ReturnValue >
2011-11-09 16:01:51 +00:00
<ReturnType > System.Boolean</ReturnType>
2004-11-05 21:25:40 +00:00
</ReturnValue>
2011-11-09 16:01:51 +00:00
<Parameters >
</Parameters>
2004-11-05 21:25:40 +00:00
<Docs >
2011-11-09 16:01:51 +00:00
<summary > Sets or obtains the tearoff state of the menu.</summary>
<value > Returns <see langword= "true" /> if the menu is currently torn off.</value>
2005-02-12 06:30:56 +00:00
<remarks >
2011-11-09 16:01:51 +00:00
<para >
A menu is normally displayed as drop down menu which persists as long as the menu is active. It can also be displayed as a tearoff menu which persists until it is closed or reattached.
</para>
2005-02-12 06:30:56 +00:00
</remarks>
2004-11-05 21:25:40 +00:00
</Docs>
</Member>
2011-11-09 16:01:51 +00:00
<Member MemberName= "TearoffTitle" >
<MemberSignature Language= "C#" Value= "public string TearoffTitle { get; set; }" />
<MemberSignature Language= "ILAsm" Value= ".property instance string TearoffTitle" />
<MemberType > Property</MemberType>
<Attributes >
<Attribute >
<AttributeName > GLib.Property("tearoff-title")</AttributeName>
</Attribute>
</Attributes>
2004-11-05 21:25:40 +00:00
<ReturnValue >
2011-11-09 16:01:51 +00:00
<ReturnType > System.String</ReturnType>
2004-11-05 21:25:40 +00:00
</ReturnValue>
<Parameters >
</Parameters>
<Docs >
2011-11-09 16:01:51 +00:00
<summary > The title of this menu when it is torn off</summary>
<value > an object of type <see cref= "T:System.String" /> </value>
<remarks />
2004-11-05 21:25:40 +00:00
</Docs>
</Member>
2011-11-09 16:01:51 +00:00
<Member MemberName= "Title" >
<MemberSignature Language= "C#" Value= "public string Title { get; set; }" />
<MemberSignature Language= "ILAsm" Value= ".property instance string Title" />
<MemberType > Property</MemberType>
2005-04-21 17:10:54 +00:00
<ReturnValue >
2011-11-09 16:01:51 +00:00
<ReturnType > System.String</ReturnType>
2005-04-21 17:10:54 +00:00
</ReturnValue>
<Parameters >
</Parameters>
<Docs >
2011-11-09 16:01:51 +00:00
<summary > Sets or obtains the title for the menu.</summary>
<value > The title of the menu, or <see langword= "null" /> if the menu has no title set on it. This string is owned by the widget and should not be modified or freed.</value>
<remarks >
<para >
The title is displayed when the menu is shown as a tearoff menu.
</para>
</remarks>
2005-04-21 17:10:54 +00:00
</Docs>
</Member>
2003-02-12 02:00:12 +00:00
</Members>
2005-06-17 18:43:30 +00:00
</Type>