2003-02-12 02:00:12 +00:00
<Type Name= "CheckButton" FullName= "Gtk.CheckButton" >
2005-05-23 20:41:51 +00:00
<TypeSignature Language= "C#" Maintainer= "Kevin Breit" Value= "public class CheckButton : Gtk.ToggleButton" />
2011-11-09 16:01:51 +00:00
<TypeSignature Language= "ILAsm" Value= ".class public auto ansi beforefieldinit CheckButton extends Gtk.ToggleButton" />
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.ToggleButton</BaseTypeName>
</Base>
<Interfaces >
</Interfaces>
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.
2004-06-19 18:25:02 +00:00
</para>
<example >
<code lang= "C#" >
2003-07-27 18:21:23 +00:00
using System;
using Gtk;
class CheckButtonSample
{
CheckButton cb;
static void Main ()
{
2004-06-19 18:25:02 +00:00
new CheckButtonSample ();
2003-07-27 18:21:23 +00:00
}
2004-06-19 18:25:02 +00:00
2003-07-27 18:21:23 +00:00
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);
2004-06-19 18:25:02 +00:00
vbox.Add (cb);
2003-07-27 18:21:23 +00:00
win.ShowAll ();
Application.Run ();
}
2004-06-19 18:25:02 +00:00
2003-07-27 18:21:23 +00:00
void OnCheckToggled (object obj, EventArgs args)
{
if (cb.Label == "Checked")
{
cb.Label = "Unchecked";
}
else
{
cb.Label = "Checked";
}
}
2004-06-19 18:25:02 +00:00
2003-07-27 18:21:23 +00:00
void OnWinDelete (object obj, DeleteEventArgs 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 CheckButton ();" />
<MemberSignature Language= "ILAsm" Value= ".method public hidebysig specialname rtspecialname instance void .ctor() cil managed" />
<MemberType > Constructor</MemberType>
<ReturnValue />
<Parameters />
2003-02-12 02:00:12 +00:00
<Docs >
2011-11-09 16:01:51 +00:00
<summary > Constructor</summary>
<remarks />
2003-02-12 02:00:12 +00:00
</Docs>
</Member>
<Member MemberName= ".ctor" >
<MemberSignature Language= "C#" Value= "public CheckButton (IntPtr raw);" />
2011-11-09 16:01:51 +00:00
<MemberSignature Language= "ILAsm" Value= ".method public hidebysig specialname rtspecialname instance void .ctor(native int raw) cil managed" />
2003-02-12 02:00:12 +00:00
<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-23 07:26:30 +00:00
<param name= "raw" > Pointer to the C object.</param>
2011-11-09 16:01:51 +00:00
<summary > Internal constructor</summary>
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 (string label);" />
2011-11-09 16:01:51 +00:00
<MemberSignature Language= "ILAsm" Value= ".method public hidebysig specialname rtspecialname instance void .ctor(string label) cil managed" />
2003-02-12 02:00:12 +00:00
<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-07-27 18:21:23 +00:00
<param name= "label" > A string for the <see cref= "T:Gtk.Label" /> .</param>
2011-11-09 16:01:51 +00:00
<summary > Constructor</summary>
2003-02-23 07:26:30 +00:00
<remarks />
2003-02-12 02:00:12 +00:00
</Docs>
</Member>
<Member MemberName= "GType" >
2011-11-09 16:01:51 +00:00
<MemberSignature Language= "C#" Value= "public static GLib.GType GType { get; }" />
<MemberSignature Language= "ILAsm" Value= ".property valuetype GLib.GType GType" />
2003-02-12 02:00:12 +00:00
<MemberType > Property</MemberType>
<ReturnValue >
2003-12-24 01:35:30 +00:00
<ReturnType > GLib.GType</ReturnType>
2003-02-12 02:00:12 +00:00
</ReturnValue>
2003-12-24 01:35:30 +00:00
<Parameters />
2003-02-12 02:00:12 +00:00
<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.CheckButton" /> .</remarks>
2003-02-12 02:00:12 +00:00
</Docs>
</Member>
2011-11-09 16:01:51 +00:00
<Member MemberName= "NewWithLabel" >
<MemberSignature Language= "C#" Value= "public static Gtk.CheckButton NewWithLabel (string label);" />
<MemberSignature Language= "ILAsm" Value= ".method public static hidebysig class Gtk.CheckButton NewWithLabel(string label) cil managed" />
<MemberType > Method</MemberType>
<ReturnValue >
<ReturnType > Gtk.CheckButton</ReturnType>
</ReturnValue>
2003-03-07 01:30:00 +00:00
<Parameters >
2011-11-09 16:01:51 +00:00
<Parameter Name= "label" Type= "System.String" />
2003-07-27 18:21:23 +00:00
</Parameters>
2003-03-07 01:30:00 +00:00
<Docs >
2011-11-09 16:01:51 +00:00
<param name= "label" > The label displayed to the right of the <see cref= "T:Gtk.CheckButton" /> .</param>
<summary > Creates a new <see cref= "T:Gtk.CheckButton" /> object with a label to the right of it.</summary>
<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
right of it</remarks>
2003-03-07 01:30:00 +00:00
</Docs>
2011-11-09 16:01:51 +00:00
</Member>
<Member MemberName= "OnDrawIndicator" >
<MemberSignature Language= "C#" Value= "protected virtual void OnDrawIndicator (Cairo.Context cr);" />
<MemberSignature Language= "ILAsm" Value= ".method familyhidebysig newslot virtual instance void OnDrawIndicator(class Cairo.Context cr) cil managed" />
<MemberType > Method</MemberType>
2005-08-23 17:02:47 +00:00
<Attributes >
2005-05-23 20:41:51 +00:00
<Attribute >
2011-11-09 16:01:51 +00:00
<AttributeName > GLib.DefaultSignalHandler(ConnectionMethod="OverrideDrawIndicator", Type=typeof(Gtk.CheckButton))</AttributeName>
2005-05-23 20:41:51 +00:00
</Attribute>
2005-08-23 17:02:47 +00:00
</Attributes>
2011-11-09 16:01:51 +00:00
<ReturnValue >
<ReturnType > System.Void</ReturnType>
</ReturnValue>
<Parameters >
<Parameter Name= "cr" Type= "Cairo.Context" />
</Parameters>
<Docs >
<param name= "cr" > To be added.</param>
<summary > To be added.</summary>
<remarks > To be added.</remarks>
<since version= "Gtk# 3.0" />
</Docs>
2005-08-23 17:02:47 +00:00
</Member>
2003-02-12 02:00:12 +00:00
</Members>
2005-05-23 20:41:51 +00:00
</Type>