2003-02-12 02:00:12 +00:00
<Type Name= "ImageMenuItem" FullName= "Gtk.ImageMenuItem" >
2003-07-18 01:59:08 +00:00
<TypeSignature Language= "C#" Value= "public class ImageMenuItem : Gtk.MenuItem, Implementor, IWrapper, IWrapper, IDisposable" Maintainer= "John Luke" />
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-09-17 21:56:59 +00:00
<summary > A <see cref= "T:Gtk.MenuItem" /> with an icon.</summary>
2003-07-18 01:59:08 +00:00
<remarks >
2003-09-17 21:56:59 +00:00
<para >
<see cref= "T:Gtk.ImageMenuItem" /> is a <see cref= "T:Gtk.MenuItem" /> which has an icon next to the text label.</para>
<para > Note that the user can disable display of menu icons, so make sure to still fill in the text label.</para>
2005-01-12 19:42:14 +00:00
<example >
<code lang= "C#" >
//How to add MenuBar with a Quit stock MenuItem
...
Window win; //if your class derive from Window then call this. istead of win.
MenuBar menuBar
...
AccelGroup grup = new AccelGroup ();
win.AddAccelGroup(grup);
menuFile = new Menu ();
ImageMenuItem quit_item = new ImageMenuItem(Stock.Quit, group);
quit_item.AddAccelerator("activate", grup, new AccelKey(
Gdk.Key.q, Gdk.ModifierType.ControlMask, AccelFlags.Visible));
//OnMenuFileQuit is the Method runned when the event is trigged
quit_item.Activated += new EventHandler (OnMenuFileQuit);
menuFile.Append(quit_item);
MenuItem file_item = new MenuItem("_File");
file_item.Submenu = menuFile;
menuBar.Append(file_item);
</code>
</example>
2003-09-17 21:56:59 +00:00
</remarks>
2003-02-12 02:00:12 +00:00
</Docs>
<Base >
<BaseTypeName > Gtk.MenuItem</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= "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 ImageMenuItem (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 ImageMenuItem, 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= ".ctor" >
<MemberSignature Language= "C#" Value= "public ImageMenuItem ();" />
<MemberType > Constructor</MemberType>
<ReturnValue />
<Parameters />
<Docs >
2003-09-17 21:56:59 +00:00
<summary > Creates a new <see cref= "T:Gtk.ImageMenuItem" /> .</summary>
<returns > an object of type <see cref= "T:Gtk.ImageMenuItem" /> </returns>
2003-12-24 01:35:30 +00:00
<remarks >
</remarks>
2003-02-12 02:00:12 +00:00
</Docs>
</Member>
<Member MemberName= ".ctor" >
<MemberSignature Language= "C#" Value= "public ImageMenuItem (string stock_id, Gtk.AccelGroup accel_group);" />
<MemberType > Constructor</MemberType>
<ReturnValue />
<Parameters >
2003-09-17 21:56:59 +00:00
<Parameter Name= "stock_id" Type= "System.String" />
<Parameter Name= "accel_group" Type= "Gtk.AccelGroup" />
</Parameters>
2003-02-12 02:00:12 +00:00
<Docs >
2003-09-17 21:56:59 +00:00
<summary > Creates a new <see cref= "T:Gtk.ImageMenuItem" /> containing the image and text from a stock item.</summary>
<param name= "stock_id" > an object of type <see cref= "T:System.String" /> </param>
<param name= "accel_group" > an object of type <see cref= "T:Gtk.AccelGroup" /> </param>
<returns > an object of type <see cref= "T:Gtk.ImageMenuItem" /> </returns>
2003-07-18 01:59:08 +00:00
<remarks />
2003-02-12 02:00:12 +00:00
</Docs>
</Member>
<Member MemberName= ".ctor" >
<MemberSignature Language= "C#" Value= "public ImageMenuItem (string label);" />
<MemberType > Constructor</MemberType>
<ReturnValue />
<Parameters >
2003-09-17 21:56:59 +00:00
<Parameter Name= "label" Type= "System.String" />
</Parameters>
2003-02-12 02:00:12 +00:00
<Docs >
2003-09-17 21:56:59 +00:00
<summary > Creates a new <see cref= "T:Gtk.ImageMenuItem" /> containing a label.</summary>
<param name= "label" > an object of type <see cref= "T:System.String" /> </param>
<returns > an object of type <see cref= "T:Gtk.ImageMenuItem" /> </returns>
2003-07-18 01:59:08 +00:00
<remarks />
2003-02-12 02:00:12 +00:00
</Docs>
</Member>
<Member MemberName= "Image" >
<MemberSignature Language= "C#" Value= "public Gtk.Widget Image { set; get; };" />
<MemberType > Property</MemberType>
<ReturnValue >
<ReturnType > Gtk.Widget</ReturnType>
</ReturnValue>
2003-12-24 01:35:30 +00:00
<Parameters >
</Parameters>
2003-02-12 02:00:12 +00:00
<Docs >
2003-07-18 01:59:08 +00:00
<summary > Child widget to appear next to the menu text.</summary>
2003-09-17 21:56:59 +00:00
<param name= "value" > an object of type <see cref= "T:Gtk.Widget" /> </param>
<returns > an object of type <see cref= "T:Gtk.Widget" /> </returns>
2003-07-18 01:59:08 +00:00
<remarks />
2003-02-12 02:00:12 +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.ImageMenuItem" /> .</remarks>
2003-12-24 01:35:30 +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 ImageMenuItem (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>
<returns > a <see cref= "T:Gtk.ImageMenuItem" /> </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-03-07 01:30:00 +00:00
</Docs>
</Member>
2003-02-12 02:00:12 +00:00
</Members>
2003-09-17 21:56:59 +00:00
</Type>