2003-02-12 02:00:12 +00:00
<Type Name= "CheckButton" FullName= "Gtk.CheckButton" >
2003-02-20 19:25:37 +00:00
<TypeSignature Language= "C#" Value= "public class CheckButton : Gtk.ToggleButton, Implementor, IWrapper, IWrapper, IDisposable" Maintainer= "Kevin Breit" />
2003-02-12 02:00:12 +00:00
<AssemblyInfo >
<AssemblyName > gtk-sharp</AssemblyName>
2003-10-28 00:48:23 +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-07-27 18:21:23 +00:00
<summary > A <see cref= "T:Gtk.CheckButton" /> places a discrete <see cref= "T:Gtk.ToggleButton" /> next to a widget.</summary>
2003-02-20 19:25:37 +00:00
<remarks >
<para >
2003-07-27 18:21:23 +00:00
A <see cref= "T:Gtk.CheckButton" /> places a discrete <see cref= "T:Gtk.ToggleButton" /> next to a widget, usually a <see cref= "T:Gtk.Label" /> . See <see cref= "T:Gtk.ToggleButton" /> for more information about toggle/check buttons.
2003-02-20 19:25:37 +00:00
</para>
2003-02-23 07:26:30 +00:00
</remarks>
2003-07-27 18:21:23 +00:00
<example >
<code language= "C#" >
using System;
using Gtk;
using GtkSharp;
class CheckButtonSample
{
CheckButton cb;
static void Main ()
{
new CheckButtonSample ();
}
CheckButtonSample ()
{
Application.Init ();
Window win = new Window ("CheckButtonSample");
win.DeleteEvent += new DeleteEventHandler (OnWinDelete);
VBox vbox = new VBox (true, 1);
win.Add (vbox);
cb = new CheckButton ("Checked");
cb.Toggled += new EventHandler (OnCheckToggled);
vbox.Add (cb);
win.ShowAll ();
Application.Run ();
}
void OnCheckToggled (object obj, EventArgs args)
{
if (cb.Label == "Checked")
{
cb.Label = "Unchecked";
}
else
{
cb.Label = "Checked";
}
}
void OnWinDelete (object obj, DeleteEventArgs args)
{
Application.Quit ();
}
}
</code>
</example>
2003-02-12 02:00:12 +00:00
</Docs>
<Base >
<BaseTypeName > Gtk.ToggleButton</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= "NewWithLabel" >
<MemberSignature Language= "C#" Value= "public static Gtk.CheckButton NewWithLabel (string label);" />
<MemberType > Method</MemberType>
<ReturnValue >
<ReturnType > Gtk.CheckButton</ReturnType>
</ReturnValue>
<Parameters >
2003-07-27 18:21:23 +00:00
<Parameter Name= "label" Type= "System.String" />
</Parameters>
2003-02-12 02:00:12 +00:00
<Docs >
2003-07-27 18:21:23 +00:00
<summary > Creates a new <see cref= "T:Gtk.CheckButton" /> object with a label to the right of it.</summary>
<param name= "label" > The label displayed to the right of the <see cref= "T:Gtk.CheckButton" /> .</param>
<returns > The newly created <see cref= "T:Gtk.CheckButton" /> .</returns>
<remarks > Creates a new <see cref= "T:Gtk.CheckButton" /> object with a <see cref= "T:Gtk.Label" /> to the
2003-02-20 19:25:37 +00:00
right of it</remarks>
2003-02-12 02:00:12 +00:00
</Docs>
</Member>
<Member MemberName= "Finalize" >
2003-10-13 22:55:58 +00:00
<MemberSignature Language= "C#" Value= "protected override void Finalize ();" />
2003-02-12 02:00:12 +00:00
<MemberType > Method</MemberType>
<ReturnValue >
<ReturnType > System.Void</ReturnType>
</ReturnValue>
<Parameters />
<Docs >
2003-02-23 07:26:30 +00:00
<summary > Disposes the resources associated with the object.</summary>
<remarks />
2003-02-12 02:00:12 +00:00
</Docs>
</Member>
<Member MemberName= ".ctor" >
<MemberSignature Language= "C#" Value= "public CheckButton (IntPtr raw);" />
<MemberType > Constructor</MemberType>
<ReturnValue />
<Parameters >
2003-07-27 18:21:23 +00:00
<Parameter Name= "raw" Type= "System.IntPtr" />
</Parameters>
2003-02-12 02:00:12 +00:00
<Docs >
2003-02-20 19:25:37 +00:00
<summary > Internal constructor</summary>
2003-02-23 07:26:30 +00:00
<param name= "raw" > Pointer to the C object.</param>
2003-07-27 18:21:23 +00:00
<returns > An instance of <see cref= "T:Gtk.CheckButton" /> , wrapping the C object.</returns>
2003-02-20 19:25:37 +00:00
<remarks >
2003-02-23 07:26:30 +00:00
<para > This is an internal constructor, and should not be used by user code.</para>
2003-02-20 19:25:37 +00:00
</remarks>
2003-02-12 02:00:12 +00:00
</Docs>
</Member>
<Member MemberName= ".ctor" >
<MemberSignature Language= "C#" Value= "public CheckButton ();" />
<MemberType > Constructor</MemberType>
<ReturnValue />
<Parameters />
<Docs >
2003-02-20 19:25:37 +00:00
<summary > Constructor</summary>
2003-07-27 18:21:23 +00:00
<returns > A new <see cref= "T:Gtk.CheckButton" /> </returns>
2003-02-23 07:26:30 +00:00
<remarks />
2003-02-12 02:00:12 +00:00
</Docs>
</Member>
<Member MemberName= ".ctor" >
<MemberSignature Language= "C#" Value= "public CheckButton (string label);" />
<MemberType > Constructor</MemberType>
<ReturnValue />
<Parameters >
2003-07-27 18:21:23 +00:00
<Parameter Name= "label" Type= "System.String" />
</Parameters>
2003-02-12 02:00:12 +00:00
<Docs >
2003-02-20 19:25:37 +00:00
<summary > Constructor</summary>
2003-07-27 18:21:23 +00:00
<param name= "label" > A string for the <see cref= "T:Gtk.Label" /> .</param>
<returns > A new <see cref= "T:Gtk.CheckButton" /> with a <see cref= "T:Gtk.Label" /> </returns>
2003-02-23 07:26:30 +00:00
<remarks />
2003-02-12 02:00:12 +00:00
</Docs>
</Member>
<Member MemberName= "GType" >
<MemberSignature Language= "C#" Value= "public static uint GType { get; };" />
<MemberType > Property</MemberType>
<ReturnValue >
<ReturnType > System.UInt32</ReturnType>
</ReturnValue>
<Docs >
2003-07-27 18:21:23 +00:00
<summary > The <see cref= "T:GLib.Type" /> for <see cref= "T:Gtk.CheckButton" /> </summary>
<returns > The <see cref= "T:GLib.Type" /> for the <see cref= "T:Gtk.CheckButton" /> class.</returns>
2003-02-23 07:26:30 +00:00
<remarks />
2003-02-12 02:00:12 +00:00
</Docs>
</Member>
2003-03-07 01:30:00 +00:00
<Member MemberName= ".ctor" >
<MemberSignature Language= "C#" Value= "protected CheckButton (GLib.Type gtype);" />
<MemberType > Constructor</MemberType>
<ReturnValue />
<Parameters >
2003-07-27 18:21:23 +00:00
<Parameter Name= "gtype" Type= "GLib.Type" />
</Parameters>
2003-03-07 01:30:00 +00:00
<Docs >
<summary > Internal constructor</summary>
<param name= "gtype" > GLib type for the type</param>
2003-07-27 18:21:23 +00:00
<returns > Creates a new instance of <see cref= "T:Gtk.CheckButton" /> , using the GLib-provided type</returns>
2003-03-07 01:30:00 +00:00
<remarks >
<para > This is a constructor used by derivative types of <see cref= "T:Gtk.CheckButton" /> that would have their own GLib type assigned to it. This is not typically used by C# code.</para>
</remarks>
</Docs>
</Member>
2003-02-12 02:00:12 +00:00
</Members>
2003-07-27 18:21:23 +00:00
</Type>