2003-02-20 04:03:15 +00:00
<Type Name= "Button" FullName= "Gtk.Button" >
2013-11-30 15:01:53 +00:00
<TypeSignature Language= "C#" Maintainer= "Duncan Mak" Value= "public class Button : Gtk.Bin, Gtk.IActivatable" />
<TypeSignature Language= "ILAsm" Value= ".class public auto ansi beforefieldinit Button extends Gtk.Bin implements class GLib.IWrapper, class Gtk.IActivatable" />
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.Bin</BaseTypeName>
</Base>
<Interfaces >
<Interface >
2013-11-30 15:01:53 +00:00
<InterfaceName > Gtk.IActivatable</InterfaceName>
2011-11-09 16:01:51 +00:00
</Interface>
</Interfaces>
2003-02-12 02:00:12 +00:00
<Docs >
2003-02-20 04:03:15 +00:00
<summary > A widget that creates a signal when clicked on.</summary>
<remarks >
<para >
2003-07-17 06:38:40 +00:00
The <see cref= "T:Gtk.Button" /> widget is generally used to attach to a function that is called when the button is pressed.
The <see cref= "T:Gtk.Button" /> widget can hold any valid child widget.
2003-05-30 04:30:12 +00:00
That is, it can hold most any other standard <see cref= "T:Gtk.Widget" /> . The most commonly used child is the <see cref= "T:Gtk.Label" /> .
2003-02-20 04:03:15 +00:00
</para>
2003-07-17 06:38:40 +00:00
<example >
<code lang= "C#" >
2003-05-30 04:30:12 +00:00
using Gtk;
using System;
public class ButtonApp {
public static int Main (string[] args)
{
Application.Init ();
Window win = new Window ("Button Tester");
2004-06-19 18:25:02 +00:00
win.SetDefaultSize (200, 150);
2003-05-30 04:30:12 +00:00
win.DeleteEvent += new DeleteEventHandler (Window_Delete);
Button btn = new Button ("Click Me");
btn.Clicked += new EventHandler (btn_click);
win.Add (btn);
win.ShowAll ();
Application.Run ();
return 0;
}
static void btn_click (object obj, EventArgs args)
{
Console.WriteLine ("Button Clicked");
}
static void Window_Delete (object obj, DeleteEventArgs args)
{
Application.Quit ();
args.RetVal = true;
}
}
</code>
2003-07-17 06:38:40 +00:00
</example>
2003-02-20 04:03:15 +00:00
</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 Button ();" />
<MemberSignature Language= "ILAsm" Value= ".method public hidebysig specialname rtspecialname instance void .ctor() cil managed" />
<MemberType > Constructor</MemberType>
<ReturnValue />
<Parameters />
2003-03-15 22:50:24 +00:00
<Docs >
2011-11-09 16:01:51 +00:00
<summary > Default parameterless constructor.</summary>
<remarks > This is the default constructor for the <see cref= "T:Gtk.Button" /> class.</remarks>
2003-03-15 22:50:24 +00:00
</Docs>
2005-06-16 18:56:42 +00:00
</Member>
2011-11-09 16:01:51 +00:00
<Member MemberName= ".ctor" >
<MemberSignature Language= "C#" Value= "public Button (Gtk.Widget widget);" />
<MemberSignature Language= "ILAsm" Value= ".method public hidebysig specialname rtspecialname instance void .ctor(class Gtk.Widget widget) cil managed" />
<MemberType > Constructor</MemberType>
<ReturnValue />
2003-12-24 01:35:30 +00:00
<Parameters >
2011-11-09 16:01:51 +00:00
<Parameter Name= "widget" Type= "Gtk.Widget" />
2003-12-24 01:35:30 +00:00
</Parameters>
2003-03-15 22:50:24 +00:00
<Docs >
2011-11-09 16:01:51 +00:00
<param name= "widget" > a child <see cref= "T:Gtk.Widget" /> </param>
<summary > Constructs a button containing a specified Child widget.</summary>
<remarks >
</remarks>
2003-03-15 22:50:24 +00:00
</Docs>
2005-06-16 18:56:42 +00:00
</Member>
2011-11-09 16:01:51 +00:00
<Member MemberName= ".ctor" >
<MemberSignature Language= "C#" Value= "public Button (IntPtr raw);" />
<MemberSignature Language= "ILAsm" Value= ".method public hidebysig specialname rtspecialname instance void .ctor(native int raw) cil managed" />
<MemberType > Constructor</MemberType>
<ReturnValue />
2003-12-24 01:35:30 +00:00
<Parameters >
2011-11-09 16:01:51 +00:00
<Parameter Name= "raw" Type= "System.IntPtr" />
2003-12-24 01:35:30 +00:00
</Parameters>
2003-03-15 22:50:24 +00:00
<Docs >
2011-11-09 16:01:51 +00:00
<param name= "raw" > an object of type <see cref= "T:System.IntPtr" /> </param>
<summary > Internal constructor</summary>
<remarks > This is not typically used by C# code.</remarks>
2003-03-15 22:50:24 +00:00
</Docs>
2005-06-16 18:56:42 +00:00
</Member>
2011-11-09 16:01:51 +00:00
<Member MemberName= ".ctor" >
<MemberSignature Language= "C#" Value= "public Button (string stock_id);" />
<MemberSignature Language= "ILAsm" Value= ".method public hidebysig specialname rtspecialname instance void .ctor(string stock_id) cil managed" />
<MemberType > Constructor</MemberType>
<ReturnValue />
2003-12-24 01:35:30 +00:00
<Parameters >
2011-11-09 16:01:51 +00:00
<Parameter Name= "stock_id" Type= "System.String" />
2003-12-24 01:35:30 +00:00
</Parameters>
2003-03-15 22:50:24 +00:00
<Docs >
2011-11-09 16:01:51 +00:00
<param name= "stock_id" > a <see cref= "T:System.String" /> </param>
<summary > Creates a new <see cref= "T:Gtk.Button" /> containing the image and text from a stock item.</summary>
<remarks > The valid names of Stock items can be found in the <see cref= "T:Gtk.Stock" /> class. If <paramref name= "stock_id" /> is unknown, then it will be treated as a simple label.
<para >
This for example creates a stock OK button. It sets a localized label, a standard icon (choosed from your GTK theme), and the appropriate keyboard accelerator:
</para> <example > <code lang= "C#" >
Button b = new Button (Stock.Ok);
</code> </example> </remarks>
2003-03-15 22:50:24 +00:00
</Docs>
2005-06-16 18:56:42 +00:00
</Member>
2003-03-15 22:50:24 +00:00
<Member MemberName= "Activated" >
<MemberSignature Language= "C#" Value= "public event EventHandler Activated;" />
2011-11-09 16:01:51 +00:00
<MemberSignature Language= "ILAsm" Value= ".event class System.EventHandler Activated" />
2003-03-15 22:50:24 +00:00
<MemberType > Event</MemberType>
2011-11-09 16:01:51 +00:00
<Attributes >
<Attribute >
<AttributeName > GLib.Signal("activate")</AttributeName>
</Attribute>
</Attributes>
2003-09-17 21:56:59 +00:00
<ReturnValue >
<ReturnType > System.EventHandler</ReturnType>
</ReturnValue>
2003-03-15 22:50:24 +00:00
<Parameters />
<Docs >
2003-05-21 21:31:19 +00:00
<summary >
2003-07-17 06:38:40 +00:00
Event launched when the <see cref= "T:Gtk.Button" /> is activated.</summary>
2003-05-14 12:14:31 +00:00
<remarks />
2003-03-15 22:50:24 +00:00
</Docs>
2005-06-16 18:56:42 +00:00
</Member>
2011-11-09 16:01:51 +00:00
<Member MemberName= "Click" >
<MemberSignature Language= "C#" Value= "public void Click ();" />
<MemberSignature Language= "ILAsm" Value= ".method public hidebysig instance void Click() cil managed" />
<MemberType > Method</MemberType>
2003-09-17 21:56:59 +00:00
<ReturnValue >
2011-11-09 16:01:51 +00:00
<ReturnType > System.Void</ReturnType>
2003-09-17 21:56:59 +00:00
</ReturnValue>
2003-03-15 22:50:24 +00:00
<Parameters />
<Docs >
2011-11-09 16:01:51 +00:00
<summary > Emits a <see cref= "E:Gtk.Button.Clicked" /> signal to the given <see cref= "T:Gtk.Button" /> .</summary>
<remarks > Emits a <see cref= "E:Gtk.Button.Clicked" /> signal to the given <see cref= "T:Gtk.Button" /> .</remarks>
2003-03-15 22:50:24 +00:00
</Docs>
2011-11-09 16:01:51 +00:00
</Member>
<Member MemberName= "Clicked" >
<MemberSignature Language= "C#" Value= "public event EventHandler Clicked;" />
<MemberSignature Language= "ILAsm" Value= ".event class System.EventHandler Clicked" />
<MemberType > Event</MemberType>
2005-06-16 18:56:42 +00:00
<Attributes >
2005-05-23 20:41:51 +00:00
<Attribute >
2007-01-16 16:18:05 +00:00
<AttributeName > GLib.Signal("clicked")</AttributeName>
2005-05-23 20:41:51 +00:00
</Attribute>
2005-06-16 18:56:42 +00:00
</Attributes>
2003-09-17 21:56:59 +00:00
<ReturnValue >
<ReturnType > System.EventHandler</ReturnType>
</ReturnValue>
2003-03-15 22:50:24 +00:00
<Parameters />
<Docs >
2003-05-21 21:31:19 +00:00
<summary >
2011-11-09 16:01:51 +00:00
Event launched when the <see cref= "T:Gtk.Button" /> is clicked.</summary>
2003-05-14 12:14:31 +00:00
<remarks />
2003-03-15 22:50:24 +00:00
</Docs>
2005-06-16 18:56:42 +00:00
</Member>
2011-11-09 16:01:51 +00:00
<Member MemberName= "DoSetRelatedAction" >
<MemberSignature Language= "C#" Value= "public void DoSetRelatedAction (Gtk.Action action);" />
<MemberSignature Language= "ILAsm" Value= ".method public hidebysig newslot virtual instance void DoSetRelatedAction(class Gtk.Action action) cil managed" />
<MemberType > Method</MemberType>
2003-09-17 21:56:59 +00:00
<ReturnValue >
2011-11-09 16:01:51 +00:00
<ReturnType > System.Void</ReturnType>
2003-09-17 21:56:59 +00:00
</ReturnValue>
2011-11-09 16:01:51 +00:00
<Parameters >
<Parameter Name= "action" Type= "Gtk.Action" />
</Parameters>
2003-03-15 22:50:24 +00:00
<Docs >
2011-11-09 16:01:51 +00:00
<param name= "action" > To be added.</param>
<summary > To be added.</summary>
<remarks > To be added.</remarks>
<since version= "Gtk# 3.0" />
2003-03-15 22:50:24 +00:00
</Docs>
2011-11-09 16:01:51 +00:00
</Member>
<Member MemberName= "Enter" >
<MemberSignature Language= "C#" Value= "public void Enter ();" />
<MemberSignature Language= "ILAsm" Value= ".method public hidebysig instance void Enter() cil managed" />
<MemberType > Method</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 > System.Obsolete</AttributeName>
2005-05-23 20:41:51 +00:00
</Attribute>
2005-06-16 18:56:42 +00:00
</Attributes>
2003-09-17 21:56:59 +00:00
<ReturnValue >
2011-11-09 16:01:51 +00:00
<ReturnType > System.Void</ReturnType>
2003-09-17 21:56:59 +00:00
</ReturnValue>
2003-03-15 22:50:24 +00:00
<Parameters />
<Docs >
2011-11-09 16:01:51 +00:00
<summary > Emits a <see cref= "E:Gtk.Button.Entered" /> signal to the given <see cref= "T:Gtk.Button" /> .</summary>
<remarks > Emits a <see cref= "E:Gtk.Button.Entered" /> signal to the given <see cref= "T:Gtk.Button" /> .</remarks>
2003-03-15 22:50:24 +00:00
</Docs>
2005-06-16 18:56:42 +00:00
</Member>
2003-03-15 22:50:24 +00:00
<Member MemberName= "Entered" >
<MemberSignature Language= "C#" Value= "public event EventHandler Entered;" />
2011-11-09 16:01:51 +00:00
<MemberSignature Language= "ILAsm" Value= ".event class System.EventHandler Entered" />
2003-03-15 22:50:24 +00:00
<MemberType > Event</MemberType>
2011-11-09 16:01:51 +00:00
<Attributes >
<Attribute >
<AttributeName > GLib.Signal("enter")</AttributeName>
</Attribute>
</Attributes>
2003-09-17 21:56:59 +00:00
<ReturnValue >
<ReturnType > System.EventHandler</ReturnType>
</ReturnValue>
2003-03-15 22:50:24 +00:00
<Parameters />
<Docs >
2003-05-21 21:31:19 +00:00
<summary >
2003-07-17 06:38:40 +00:00
Event launched when the cursor enters the <see cref= "T:Gtk.Button" /> area.</summary>
2003-05-14 12:14:31 +00:00
<remarks />
2003-03-15 22:50:24 +00:00
</Docs>
2005-06-16 18:56:42 +00:00
</Member>
2011-11-09 16:01:51 +00:00
<Member MemberName= "EventWindow" >
<MemberSignature Language= "C#" Value= "public Gdk.Window EventWindow { get; }" />
<MemberSignature Language= "ILAsm" Value= ".property instance class Gdk.Window EventWindow" />
<MemberType > Property</MemberType>
2003-03-15 22:50:24 +00:00
<ReturnValue >
2011-11-09 16:01:51 +00:00
<ReturnType > Gdk.Window</ReturnType>
2003-03-15 22:50:24 +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-03-15 22:50:24 +00:00
</Docs>
</Member>
2011-11-09 16:01:51 +00:00
<Member MemberName= "FocusOnClick" >
<MemberSignature Language= "C#" Value= "public bool FocusOnClick { get; set; }" />
<MemberSignature Language= "ILAsm" Value= ".property instance bool FocusOnClick" />
<MemberType > Property</MemberType>
<Attributes >
<Attribute >
<AttributeName > GLib.Property("focus-on-click")</AttributeName>
</Attribute>
</Attributes>
2003-03-15 22:50:24 +00:00
<ReturnValue >
2011-11-09 16:01:51 +00:00
<ReturnType > System.Boolean</ReturnType>
2003-03-15 22:50:24 +00:00
</ReturnValue>
<Parameters />
<Docs >
2011-11-09 16:01:51 +00:00
<summary >
Whether the button grabs focus when it is clicked with the mouse.
</summary>
<value > a <see cref= "T:System.Boolean" /> </value>
<remarks >
</remarks>
<since version= "Gtk# 2.4" />
2003-03-15 22:50:24 +00:00
</Docs>
</Member>
2011-11-09 16:01:51 +00:00
<Member MemberName= "GetAlignment" >
<MemberSignature Language= "C#" Value= "public void GetAlignment (out float xalign, out float yalign);" />
<MemberSignature Language= "ILAsm" Value= ".method public hidebysig instance void GetAlignment(float32 xalign, float32 yalign) cil managed" />
2003-03-15 22:50:24 +00:00
<MemberType > Method</MemberType>
<ReturnValue >
<ReturnType > System.Void</ReturnType>
</ReturnValue>
2011-11-09 16:01:51 +00:00
<Parameters >
<Parameter Name= "xalign" Type= "System.Single&" RefType= "out" />
<Parameter Name= "yalign" Type= "System.Single&" RefType= "out" />
</Parameters>
2003-03-15 22:50:24 +00:00
<Docs >
2011-11-09 16:01:51 +00:00
<param name= "xalign" > a <see cref= "T:System.Single" /> to put the horizontal alignment in</param>
<param name= "yalign" > a <see cref= "T:System.Single" /> to put the vertical alignment in</param>
<summary > Gets the alignment of the child in the button.</summary>
<remarks > A convenience method; shouldn't be </remarks>
<since version= "Gtk# 2.4" />
2003-03-15 22:50:24 +00:00
</Docs>
</Member>
2011-11-09 16:01:51 +00:00
<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>
2003-03-15 22:50:24 +00:00
<ReturnValue >
2011-11-09 16:01:51 +00:00
<ReturnType > GLib.GType</ReturnType>
2003-03-15 22:50:24 +00:00
</ReturnValue>
<Parameters />
<Docs >
2011-11-09 16:01:51 +00:00
<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.Button" /> .</remarks>
2003-03-15 22:50:24 +00:00
</Docs>
</Member>
2011-11-09 16:01:51 +00:00
<Member MemberName= "Image" >
<MemberSignature Language= "C#" Value= "public Gtk.Widget Image { get; set; }" />
<MemberSignature Language= "ILAsm" Value= ".property instance class Gtk.Widget Image" />
<MemberType > Property</MemberType>
<Attributes >
<Attribute >
<AttributeName > GLib.Property("image")</AttributeName>
</Attribute>
</Attributes>
<ReturnValue >
<ReturnType > Gtk.Widget</ReturnType>
2003-03-15 22:50:24 +00:00
</ReturnValue>
<Parameters />
<Docs >
2011-11-09 16:01:51 +00:00
<summary > Child widget to appear next to the button text.</summary>
<value > A <see cref= "T:Gtk.Widget" /> .</value>
<remarks />
<since version= "Gtk# 2.6" />
2003-03-15 22:50:24 +00:00
</Docs>
</Member>
2011-11-09 16:01:51 +00:00
<Member MemberName= "ImagePosition" >
<MemberSignature Language= "C#" Value= "public Gtk.PositionType ImagePosition { get; set; }" />
<MemberSignature Language= "ILAsm" Value= ".property instance valuetype Gtk.PositionType ImagePosition" />
<MemberType > Property</MemberType>
<Attributes >
<Attribute >
<AttributeName > GLib.Property("image-position")</AttributeName>
</Attribute>
</Attributes>
2003-03-15 22:50:24 +00:00
<ReturnValue >
2011-11-09 16:01:51 +00:00
<ReturnType > Gtk.PositionType</ReturnType>
2003-03-15 22:50:24 +00:00
</ReturnValue>
<Docs >
2011-11-09 16:01:51 +00:00
<summary > Position of the image relative to the text.</summary>
<value > a <see cref= "T:Gtk.PositionType" /> .</value>
<remarks />
<since version= "Gtk# 2.10" />
2003-03-15 22:50:24 +00:00
</Docs>
</Member>
2011-11-09 16:01:51 +00:00
<Member MemberName= "Label" >
<MemberSignature Language= "C#" Value= "public string Label { get; set; }" />
<MemberSignature Language= "ILAsm" Value= ".property instance string Label" />
<MemberType > Property</MemberType>
<Attributes >
<Attribute >
<AttributeName > GLib.Property("label")</AttributeName>
</Attribute>
</Attributes>
<ReturnValue >
<ReturnType > System.String</ReturnType>
</ReturnValue>
<Parameters >
</Parameters>
2003-03-15 22:50:24 +00:00
<Docs >
2011-11-09 16:01:51 +00:00
<summary > The text of the <see cref= "T:Gtk.Label" /> in the <see cref= "T:Gtk.Button" /> .</summary>
<value > The <see cref= "T:System.String" /> contained by the <see cref= "T:Gtk.Button" /> .</value>
<remarks > If you want the Label to have a mnemonic you need to set <see cref= "P:Gtk.Button.UseUnderline" /> to <see langword= "true" /> .</remarks>
2003-03-15 22:50:24 +00:00
</Docs>
</Member>
2011-11-09 16:01:51 +00:00
<Member MemberName= "Leave" >
<MemberSignature Language= "C#" Value= "public void Leave ();" />
<MemberSignature Language= "ILAsm" Value= ".method public hidebysig instance void Leave() cil managed" />
<MemberType > Method</MemberType>
<Attributes >
<Attribute >
<AttributeName > System.Obsolete</AttributeName>
</Attribute>
</Attributes>
<ReturnValue >
<ReturnType > System.Void</ReturnType>
</ReturnValue>
<Parameters />
2003-11-05 04:30:47 +00:00
<Docs >
2011-11-09 16:01:51 +00:00
<summary > Emits a <see cref= "E:Gtk.Button.Left" /> signal to the given <see cref= "T:Gtk.Button" /> .</summary>
<remarks > Emits a <see cref= "E:Gtk.Button.Left" /> signal to the given <see cref= "T:Gtk.Button" /> .</remarks>
2003-11-05 04:30:47 +00:00
</Docs>
</Member>
2011-11-09 16:01:51 +00:00
<Member MemberName= "Left" >
<MemberSignature Language= "C#" Value= "public event EventHandler Left;" />
<MemberSignature Language= "ILAsm" Value= ".event class System.EventHandler Left" />
<MemberType > Event</MemberType>
<Attributes >
<Attribute >
<AttributeName > GLib.Signal("leave")</AttributeName>
</Attribute>
</Attributes>
2003-11-05 04:30:47 +00:00
<ReturnValue >
2011-11-09 16:01:51 +00:00
<ReturnType > System.EventHandler</ReturnType>
2003-11-05 04:30:47 +00:00
</ReturnValue>
<Parameters />
<Docs >
2011-11-09 16:01:51 +00:00
<summary >
Event launched when the cursor leaves the <see cref= "T:Gtk.Button" /> area.</summary>
<remarks />
</Docs>
</Member>
<Member MemberName= "NewWithLabel" >
<MemberSignature Language= "C#" Value= "public static Gtk.Button NewWithLabel (string label);" />
<MemberSignature Language= "ILAsm" Value= ".method public static hidebysig class Gtk.Button NewWithLabel(string label) cil managed" />
<MemberType > Method</MemberType>
<ReturnValue >
<ReturnType > Gtk.Button</ReturnType>
</ReturnValue>
<Parameters >
<Parameter Name= "label" Type= "System.String" />
</Parameters>
<Docs >
<param name= "label" >
The text you want the <see cref= "T:Gtk.Label" /> to hold.
</param>
<summary > Creates a <see cref= "T:Gtk.Button" /> widget with a <see cref= "T:Gtk.Label" /> child containing the given text.</summary>
<returns > The newly created <see cref= "T:Gtk.Button" /> widget.</returns>
2004-09-27 19:20:35 +00:00
<remarks />
2003-11-05 04:30:47 +00:00
</Docs>
</Member>
<Member MemberName= "NewWithMnemonic" >
<MemberSignature Language= "C#" Value= "public static Gtk.Button NewWithMnemonic (string label);" />
2011-11-09 16:01:51 +00:00
<MemberSignature Language= "ILAsm" Value= ".method public static hidebysig class Gtk.Button NewWithMnemonic(string label) cil managed" />
2003-11-05 04:30:47 +00:00
<MemberType > Method</MemberType>
<ReturnValue >
<ReturnType > Gtk.Button</ReturnType>
</ReturnValue>
2003-03-15 22:50:24 +00:00
<Parameters >
2003-09-17 21:56:59 +00:00
<Parameter Name= "label" Type= "System.String" />
</Parameters>
2003-03-15 22:50:24 +00:00
<Docs >
2003-11-05 04:30:47 +00:00
<param name= "label" > a <see cref= "T:System.String" /> </param>
2011-11-09 16:01:51 +00:00
<summary > Creates a labeled <see cref= "T:Gtk.Button" /> .</summary>
2003-11-05 04:30:47 +00:00
<returns > a <see cref= "T:Gtk.Button" /> </returns>
2003-07-17 06:38:40 +00:00
<remarks > Constructor that creates a labeled <see cref= "T:Gtk.Button" /> . The label
2003-05-14 12:14:31 +00:00
shows the string passed as parameter.</remarks>
2003-03-07 01:30:00 +00:00
</Docs>
</Member>
2011-11-09 16:01:51 +00:00
<Member MemberName= "OnActivated" >
<MemberSignature Language= "C#" Value= "protected virtual void OnActivated ();" />
<MemberSignature Language= "ILAsm" Value= ".method familyhidebysig newslot virtual instance void OnActivated() cil managed" />
<MemberType > Method</MemberType>
<Attributes >
<Attribute >
<AttributeName > GLib.DefaultSignalHandler(ConnectionMethod="OverrideActivated", Type=typeof(Gtk.Button))</AttributeName>
</Attribute>
</Attributes>
2003-12-24 01:35:30 +00:00
<ReturnValue >
2011-11-09 16:01:51 +00:00
<ReturnType > System.Void</ReturnType>
2003-12-24 01:35:30 +00:00
</ReturnValue>
<Parameters />
<Docs >
2011-11-09 16:01:51 +00:00
<summary > Default handler for the <see cref= "M:Gtk.Button.Activated" /> event.</summary>
<remarks > Override this method in a subclass to provide a default handler for the <see cref= "M:Gtk.Button.Activated" /> event.</remarks>
2003-12-24 01:35:30 +00:00
</Docs>
</Member>
2011-11-09 16:01:51 +00:00
<Member MemberName= "OnClicked" >
<MemberSignature Language= "C#" Value= "protected virtual void OnClicked ();" />
<MemberSignature Language= "ILAsm" Value= ".method familyhidebysig newslot virtual instance void OnClicked() cil managed" />
2003-12-24 01:35:30 +00:00
<MemberType > Method</MemberType>
2011-11-09 16:01:51 +00:00
<Attributes >
<Attribute >
<AttributeName > GLib.DefaultSignalHandler(ConnectionMethod="OverrideClicked", Type=typeof(Gtk.Button))</AttributeName>
</Attribute>
</Attributes>
2003-12-24 01:35:30 +00:00
<ReturnValue >
2011-11-09 16:01:51 +00:00
<ReturnType > System.Void</ReturnType>
2003-12-24 01:35:30 +00:00
</ReturnValue>
<Parameters />
<Docs >
2011-11-09 16:01:51 +00:00
<summary > Default handler for the <see cref= "M:Gtk.Button.Clicked" /> event.</summary>
<remarks > Override this method in a subclass to provide a default handler for the <see cref= "M:Gtk.Button.Clicked" /> event.</remarks>
2003-12-24 01:35:30 +00:00
</Docs>
</Member>
<Member MemberName= "OnEntered" >
<MemberSignature Language= "C#" Value= "protected virtual void OnEntered ();" />
2011-11-09 16:01:51 +00:00
<MemberSignature Language= "ILAsm" Value= ".method familyhidebysig newslot virtual instance void OnEntered() cil managed" />
2003-12-24 01:35:30 +00:00
<MemberType > Method</MemberType>
2011-11-09 16:01:51 +00:00
<Attributes >
<Attribute >
<AttributeName > GLib.DefaultSignalHandler(ConnectionMethod="OverrideEntered", Type=typeof(Gtk.Button))</AttributeName>
</Attribute>
</Attributes>
2003-12-24 01:35:30 +00:00
<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.Button.Entered" /> event.</summary>
<remarks > Override this method in a subclass to provide a default handler for the <see cref= "M:Gtk.Button.Entered" /> event.</remarks>
2003-12-24 01:35:30 +00:00
</Docs>
</Member>
2011-11-09 16:01:51 +00:00
<Member MemberName= "OnLeft" >
<MemberSignature Language= "C#" Value= "protected virtual void OnLeft ();" />
<MemberSignature Language= "ILAsm" Value= ".method familyhidebysig newslot virtual instance void OnLeft() cil managed" />
2003-12-24 01:35:30 +00:00
<MemberType > Method</MemberType>
2011-11-09 16:01:51 +00:00
<Attributes >
<Attribute >
<AttributeName > GLib.DefaultSignalHandler(ConnectionMethod="OverrideLeft", Type=typeof(Gtk.Button))</AttributeName>
</Attribute>
</Attributes>
2003-12-24 01:35:30 +00:00
<ReturnValue >
<ReturnType > System.Void</ReturnType>
</ReturnValue>
<Parameters />
<Docs >
2011-11-09 16:01:51 +00:00
<summary > Default handler for the <see cref= "M:Gtk.Button.Left" /> event.</summary>
<remarks > Override this method in a subclass to provide a default handler for the <see cref= "M:Gtk.Button.Left" /> event.</remarks>
2003-12-24 01:35:30 +00:00
</Docs>
</Member>
<Member MemberName= "OnPressed" >
<MemberSignature Language= "C#" Value= "protected virtual void OnPressed ();" />
2011-11-09 16:01:51 +00:00
<MemberSignature Language= "ILAsm" Value= ".method familyhidebysig newslot virtual instance void OnPressed() cil managed" />
2003-12-24 01:35:30 +00:00
<MemberType > Method</MemberType>
2011-11-09 16:01:51 +00:00
<Attributes >
<Attribute >
<AttributeName > GLib.DefaultSignalHandler(ConnectionMethod="OverridePressed", Type=typeof(Gtk.Button))</AttributeName>
</Attribute>
</Attributes>
2003-12-24 01:35:30 +00:00
<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.Button.Pressed" /> event.</summary>
<remarks > Override this method in a subclass to provide a default handler for the <see cref= "M:Gtk.Button.Pressed" /> event.</remarks>
2003-12-24 01:35:30 +00:00
</Docs>
</Member>
2011-11-09 16:01:51 +00:00
<Member MemberName= "OnReleased" >
<MemberSignature Language= "C#" Value= "protected virtual void OnReleased ();" />
<MemberSignature Language= "ILAsm" Value= ".method familyhidebysig newslot virtual instance void OnReleased() cil managed" />
2003-12-24 01:35:30 +00:00
<MemberType > Method</MemberType>
2011-11-09 16:01:51 +00:00
<Attributes >
<Attribute >
<AttributeName > GLib.DefaultSignalHandler(ConnectionMethod="OverrideReleased", Type=typeof(Gtk.Button))</AttributeName>
</Attribute>
</Attributes>
2003-12-24 01:35:30 +00:00
<ReturnValue >
<ReturnType > System.Void</ReturnType>
</ReturnValue>
<Parameters />
<Docs >
2011-11-09 16:01:51 +00:00
<summary > Default handler for the <see cref= "M:Gtk.Button.Released" /> event.</summary>
<remarks > Override this method in a subclass to provide a default handler for the <see cref= "M:Gtk.Button.Released" /> event.</remarks>
2003-12-24 01:35:30 +00:00
</Docs>
</Member>
2011-11-09 16:01:51 +00:00
<Member MemberName= "Press" >
<MemberSignature Language= "C#" Value= "public void Press ();" />
<MemberSignature Language= "ILAsm" Value= ".method public hidebysig instance void Press() cil managed" />
2003-12-24 01:35:30 +00:00
<MemberType > Method</MemberType>
2011-11-09 16:01:51 +00:00
<Attributes >
<Attribute >
<AttributeName > System.Obsolete</AttributeName>
</Attribute>
</Attributes>
2003-12-24 01:35:30 +00:00
<ReturnValue >
<ReturnType > System.Void</ReturnType>
</ReturnValue>
<Parameters />
<Docs >
2011-11-09 16:01:51 +00:00
<summary > Emits a <see cref= "E:Gtk.Button.Pressed" /> signal to the given <see cref= "T:Gtk.Button" /> .</summary>
<remarks > Emits a <see cref= "E:Gtk.Button.Pressed" /> signal to the given <see cref= "T:Gtk.Button" /> .</remarks>
2003-12-24 01:35:30 +00:00
</Docs>
</Member>
2011-11-09 16:01:51 +00:00
<Member MemberName= "Pressed" >
<MemberSignature Language= "C#" Value= "public event EventHandler Pressed;" />
<MemberSignature Language= "ILAsm" Value= ".event class System.EventHandler Pressed" />
<MemberType > Event</MemberType>
<Attributes >
<Attribute >
<AttributeName > GLib.Signal("pressed")</AttributeName>
</Attribute>
</Attributes>
2003-12-24 01:35:30 +00:00
<ReturnValue >
2011-11-09 16:01:51 +00:00
<ReturnType > System.EventHandler</ReturnType>
2003-12-24 01:35:30 +00:00
</ReturnValue>
<Parameters />
<Docs >
2011-11-09 16:01:51 +00:00
<summary >
Event launched when the <see cref= "T:Gtk.Button" /> is pressed.</summary>
<remarks />
2003-12-24 01:35:30 +00:00
</Docs>
</Member>
2011-11-09 16:01:51 +00:00
<Member MemberName= "RelatedAction" >
<MemberSignature Language= "C#" Value= "public Gtk.Action RelatedAction { get; set; }" />
<MemberSignature Language= "ILAsm" Value= ".property instance class Gtk.Action RelatedAction" />
<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("related-action")</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 > Gtk.Action</ReturnType>
2004-11-05 21:25:40 +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" />
2004-11-05 21:25:40 +00:00
</Docs>
2011-11-09 16:01:51 +00:00
</Member>
<Member MemberName= "Release" >
<MemberSignature Language= "C#" Value= "public void Release ();" />
<MemberSignature Language= "ILAsm" Value= ".method public hidebysig instance void Release() cil managed" />
<MemberType > Method</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 > System.Obsolete</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.Void</ReturnType>
2004-11-05 21:25:40 +00:00
</ReturnValue>
<Parameters />
<Docs >
2011-11-09 16:01:51 +00:00
<summary > Emits a <see cref= "E:Gtk.Button.Released" /> signal to the given <see cref= "T:Gtk.Button" /> .</summary>
<remarks > Emits a <see cref= "E:Gtk.Button.Released" /> signal to the given <see cref= "T:Gtk.Button" /> .</remarks>
2004-11-05 21:25:40 +00:00
</Docs>
2011-11-09 16:01:51 +00:00
</Member>
<Member MemberName= "Released" >
<MemberSignature Language= "C#" Value= "public event EventHandler Released;" />
<MemberSignature Language= "ILAsm" Value= ".event class System.EventHandler Released" />
<MemberType > Event</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.Signal("released")</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.EventHandler</ReturnType>
2004-11-05 21:25:40 +00:00
</ReturnValue>
<Parameters />
<Docs >
2004-12-31 21:06:38 +00:00
<summary >
2011-11-09 16:01:51 +00:00
Event launched when the <see cref= "T:Gtk.Button" /> is released.</summary>
<remarks />
2004-11-05 21:25:40 +00:00
</Docs>
2011-11-09 16:01:51 +00:00
</Member>
<Member MemberName= "Relief" >
<MemberSignature Language= "C#" Value= "public Gtk.ReliefStyle Relief { get; set; }" />
<MemberSignature Language= "ILAsm" Value= ".property instance valuetype Gtk.ReliefStyle Relief" />
<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("relief")</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 > Gtk.ReliefStyle</ReturnType>
2004-11-05 21:25:40 +00:00
</ReturnValue>
<Parameters >
</Parameters>
<Docs >
2011-11-09 16:01:51 +00:00
<summary > The <see cref= "T:Gtk.ReliefStyle" /> for the <see cref= "T:Gtk.Button" /> .</summary>
<value > An instance of <see cref= "T:Gtk.ReliefStyle" /> that
represents the relief style of the <see cref= "T:Gtk.Button" /> .</value>
<remarks />
2004-11-05 21:25:40 +00:00
</Docs>
</Member>
<Member MemberName= "SetAlignment" >
<MemberSignature Language= "C#" Value= "public void SetAlignment (float xalign, float yalign);" />
2011-11-09 16:01:51 +00:00
<MemberSignature Language= "ILAsm" Value= ".method public hidebysig instance void SetAlignment(float32 xalign, float32 yalign) cil managed" />
2004-11-05 21:25:40 +00:00
<MemberType > Method</MemberType>
<ReturnValue >
<ReturnType > System.Void</ReturnType>
</ReturnValue>
<Parameters >
<Parameter Name= "xalign" Type= "System.Single" />
<Parameter Name= "yalign" Type= "System.Single" />
</Parameters>
<Docs >
2004-12-31 21:06:38 +00:00
<param name= "xalign" > a <see cref= "T:System.Single" /> ,
the horizontal position of the child; 0.0 is left aligned,
1.0 is right aligned.</param>
<param name= "yalign" > a <see cref= "T:System.Single" /> ,
the vertical position of the child; 0.0 is top aligned,
1.0 is bottom aligned.</param>
2011-11-09 16:01:51 +00:00
<summary >
Sets the alignment of the child.
</summary>
2004-12-31 21:06:38 +00:00
<remarks >
This has no effect
2005-04-21 17:10:54 +00:00
unless the button's child is a <see cref= "T:Gtk.Misc" />
or <see cref= "T:Gtk.Alignment" /> .
2004-12-31 21:06:38 +00:00
</remarks>
2005-06-16 18:56:42 +00:00
<since version= "Gtk# 2.4" />
2004-09-27 19:20:35 +00:00
</Docs>
</Member>
2011-11-09 16:01:51 +00:00
<Member MemberName= "SyncActionProperties" >
<MemberSignature Language= "C#" Value= "public void SyncActionProperties (Gtk.Action action);" />
<MemberSignature Language= "ILAsm" Value= ".method public hidebysig newslot virtual instance void SyncActionProperties(class Gtk.Action action) cil managed" />
<MemberType > Method</MemberType>
<ReturnValue >
<ReturnType > System.Void</ReturnType>
</ReturnValue>
<Parameters >
<Parameter Name= "action" Type= "Gtk.Action" />
</Parameters>
<Docs >
<param name= "action" > To be added.</param>
<summary > To be added.</summary>
<remarks > To be added.</remarks>
<since version= "Gtk# 3.0" />
</Docs>
</Member>
<Member MemberName= "UseActionAppearance" >
<MemberSignature Language= "C#" Value= "public bool UseActionAppearance { get; set; }" />
<MemberSignature Language= "ILAsm" Value= ".property instance bool UseActionAppearance" />
2005-04-21 17:10:54 +00:00
<MemberType > Property</MemberType>
2011-11-09 16:01:51 +00:00
<Attributes >
<Attribute >
<AttributeName > GLib.Property("use-action-appearance")</AttributeName>
</Attribute>
</Attributes>
2005-04-21 17:10:54 +00:00
<ReturnValue >
2011-11-09 16:01:51 +00:00
<ReturnType > System.Boolean</ReturnType>
2005-04-21 17:10:54 +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" />
2005-04-21 17:10:54 +00:00
</Docs>
2011-11-09 16:01:51 +00:00
</Member>
<Member MemberName= "UseStock" >
<MemberSignature Language= "C#" Value= "public bool UseStock { get; set; }" />
<MemberSignature Language= "ILAsm" Value= ".property instance bool UseStock" />
<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("use-stock")</AttributeName>
2005-05-23 20:41:51 +00:00
</Attribute>
2005-06-16 18:56:42 +00:00
</Attributes>
2011-11-09 16:01:51 +00:00
<ReturnValue >
<ReturnType > System.Boolean</ReturnType>
</ReturnValue>
<Parameters >
</Parameters>
<Docs >
<summary > Whether the <see cref= "T:Gtk.Button" /> should use a <see cref= "T:Gtk.Stock" /> .</summary>
<value > Gets a value indicating if the <see cref= "T:Gtk.Button" /> uses a <see cref= "T:Gtk.Stock" /> .</value>
<remarks > It is possible to create a <see cref= "T:Gtk.Button" /> from <see cref= "T:Gtk.Stock" /> , which is recommended for consistency in <see cref= "N:Gnome" />
apps. They also provide a <see cref= "T:Gtk.Label" /> and a key shortcut.
</remarks>
</Docs>
2005-06-16 18:56:42 +00:00
</Member>
2011-11-09 16:01:51 +00:00
<Member MemberName= "UseUnderline" >
<MemberSignature Language= "C#" Value= "public bool UseUnderline { get; set; }" />
<MemberSignature Language= "ILAsm" Value= ".property instance bool UseUnderline" />
2006-08-04 23:13:09 +00:00
<MemberType > Property</MemberType>
<Attributes >
<Attribute >
2011-11-09 16:01:51 +00:00
<AttributeName > GLib.Property("use-underline")</AttributeName>
2006-08-04 23:13:09 +00:00
</Attribute>
</Attributes>
<ReturnValue >
2011-11-09 16:01:51 +00:00
<ReturnType > System.Boolean</ReturnType>
2006-08-04 23:13:09 +00:00
</ReturnValue>
2011-11-09 16:01:51 +00:00
<Parameters >
</Parameters>
2006-08-04 23:13:09 +00:00
<Docs >
2011-11-09 16:01:51 +00:00
<summary > Indicates if a mnemonic is associated with the <see cref= "T:Gtk.Button" /> .</summary>
<value > Gets a value indicating if the <see cref= "T:Gtk.Button" /> uses underline
or not.</value>
2006-08-04 23:13:09 +00:00
<remarks />
2011-11-09 16:01:51 +00:00
</Docs>
</Member>
<Member MemberName= "Xalign" >
<MemberSignature Language= "C#" Value= "public float Xalign { get; set; }" />
<MemberSignature Language= "ILAsm" Value= ".property instance float32 Xalign" />
<MemberType > Property</MemberType>
<Attributes >
<Attribute >
<AttributeName > GLib.Property("xalign")</AttributeName>
</Attribute>
</Attributes>
<ReturnValue >
<ReturnType > System.Single</ReturnType>
</ReturnValue>
<Parameters />
<Docs >
<summary >
If the child of the button is a <see cref= "T:Gtk.Misc" />
or <see cref= "T:Gtk.Alignment" /> , this property
can be used to control its horizontal alignment.
</summary>
<value > a <see cref= "T:System.Single" /> ;
0.0 is left aligned, 1.0 is right aligned.
</value>
<remarks >
</remarks>
<since version= "Gtk# 2.4" />
</Docs>
</Member>
<Member MemberName= "Yalign" >
<MemberSignature Language= "C#" Value= "public float Yalign { get; set; }" />
<MemberSignature Language= "ILAsm" Value= ".property instance float32 Yalign" />
<MemberType > Property</MemberType>
<Attributes >
<Attribute >
<AttributeName > GLib.Property("yalign")</AttributeName>
</Attribute>
</Attributes>
<ReturnValue >
<ReturnType > System.Single</ReturnType>
</ReturnValue>
<Parameters />
<Docs >
<summary >
If the child of the button is a <see cref= "T:Gtk.Misc" />
or <see cref= "T:Gtk.Alignment" /> , this property
can be used to control its vertical alignment.
</summary>
<value >
a <see cref= "T:System.Single" /> ;
0.0 is top aligned, 1.0 is bottom aligned.
</value>
<remarks >
</remarks>
<since version= "Gtk# 2.4" />
2006-08-04 23:13:09 +00:00
</Docs>
</Member>
2003-02-12 02:00:12 +00:00
</Members>
2006-08-04 23:13:09 +00:00
</Type>