2003-02-12 02:00:12 +00:00
<Type Name= "ImageMenuItem" FullName= "Gtk.ImageMenuItem" >
2005-05-23 20:41:51 +00:00
<TypeSignature Language= "C#" Maintainer= "John Luke" Value= "public class ImageMenuItem : Gtk.MenuItem" />
2003-02-12 02:00:12 +00:00
<AssemblyInfo >
<AssemblyName > gtk-sharp</AssemblyName>
2003-12-24 01:35:30 +00:00
<AssemblyPublicKey >
</AssemblyPublicKey>
2007-12-06 18:37:54 +00:00
<AssemblyVersion > 2.12.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-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>
2007-01-16 16:18:05 +00:00
<Interfaces >
</Interfaces>
2003-02-12 02:00:12 +00:00
<Members >
<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>
<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>
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>
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>
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>
2005-05-23 20:41:51 +00:00
<value > an object of type <see cref= "T:Gtk.Widget" /> </value>
2003-07-18 01:59:08 +00:00
<remarks />
2003-02-12 02:00:12 +00:00
</Docs>
2005-08-23 17:02:47 +00:00
<Attributes >
2005-05-23 20:41:51 +00:00
<Attribute >
2007-01-16 16:18:05 +00:00
<AttributeName > GLib.Property("image")</AttributeName>
2005-05-23 20:41:51 +00:00
</Attribute>
2005-08-23 17:02:47 +00:00
</Attributes>
</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>
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.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>
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 >
2007-01-16 16:18:05 +00:00
<AttributeName > System.Obsolete</AttributeName>
2005-05-23 20:41:51 +00:00
</Attribute>
2005-08-23 17:02:47 +00:00
</Attributes>
</Member>
2003-02-12 02:00:12 +00:00
</Members>
2005-05-23 20:41:51 +00:00
</Type>