2003-02-12 02:00:12 +00:00
<Type Name= "CellRendererToggle" FullName= "Gtk.CellRendererToggle" >
2005-05-23 20:41:51 +00:00
<TypeSignature Language= "C#" Maintainer= "John Luke" Value= "public class CellRendererToggle : Gtk.CellRenderer" />
2011-11-09 16:01:51 +00:00
<TypeSignature Language= "ILAsm" Value= ".class public auto ansi beforefieldinit CellRendererToggle extends Gtk.CellRenderer" />
2003-02-12 02:00:12 +00:00
<AssemblyInfo >
<AssemblyName > gtk-sharp</AssemblyName>
2003-11-12 06:18:10 +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.CellRenderer</BaseTypeName>
</Base>
<Interfaces >
</Interfaces>
2003-02-12 02:00:12 +00:00
<Docs >
2003-07-17 06:38:40 +00:00
<summary > Renders a <see cref= "T:Gtk.ToggleButton" /> or a <see cref= "T:Gtk.RadioButton" /> </summary>
2005-01-12 19:24:39 +00:00
<remarks >
<para > This Class is a <see cref= "T:Gtk.CellRenderer" /> implementation that can render a checkbox in your <see cref= "T:Gtk.TreeView" /> columns.</para>
<para > It is important to note that the <see cref= "T:Gtk.CellRendererToggle" /> will not change the corresponding bool field in your <see cref= "T:Gtk.TreeModel" /> itself - you'll need to provide a handler, as shown in the following code snippet:
</para>
<example >
<code lang= "C#" >
private TreeStore store;
void SetupTreeView ()
{
store = new TreeStore (typeof (string), typeof(bool));
// populate store..
TreeView tv = new TreeView (store);
tv.HeadersVisible = true;
tv.AppendColumn ("Name", new CellRendererText (), "text", 0);
CellRendererToggle crt = new CellRendererToggle();
crt.Activatable = true;
crt.Toggled += crt_toggled;
tv.AppendColumn ("CheckMe", crt, "active", 1);
// add the TreeView to some window...
}
void crt_toggled(object o, ToggledArgs args) {
TreeIter iter;
if (store.GetIter (out iter, new TreePath(args.Path))) {
bool old = (bool) store.GetValue(iter,1);
store.SetValue(iter,1,!old);
}
}
</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 CellRendererToggle ();" />
<MemberSignature Language= "ILAsm" Value= ".method public hidebysig specialname rtspecialname instance void .ctor() cil managed" />
<MemberType > Constructor</MemberType>
<ReturnValue />
<Parameters />
<Docs >
<summary > Creates a new <see cref= "T:Gtk.CellRendererToggle" /> .</summary>
<remarks > The default constructor.</remarks>
</Docs>
</Member>
2003-02-12 02:00:12 +00:00
<Member MemberName= ".ctor" >
<MemberSignature Language= "C#" Value= "public CellRendererToggle (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-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
<param name= "raw" > Pointer to the C object.</param>
2011-11-09 16:01:51 +00:00
<summary > Internal constructor</summary>
2003-02-23 07:26:30 +00:00
<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= "Activatable" >
2011-11-09 16:01:51 +00:00
<MemberSignature Language= "C#" Value= "public bool Activatable { get; set; }" />
<MemberSignature Language= "ILAsm" Value= ".property instance bool Activatable" />
2003-02-12 02:00:12 +00:00
<MemberType > Property</MemberType>
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("activatable")</AttributeName>
2005-05-23 20:41:51 +00:00
</Attribute>
2005-08-23 17:02:47 +00:00
</Attributes>
2003-02-12 02:00:12 +00:00
<ReturnValue >
<ReturnType > System.Boolean</ReturnType>
</ReturnValue>
2003-11-12 06:18:10 +00:00
<Parameters >
</Parameters>
2003-02-12 02:00:12 +00:00
<Docs >
2011-11-09 16:01:51 +00:00
<summary > The <see cref= "T:Gtk.ToggleButton" /> can be activated.</summary>
2005-05-23 20:41:51 +00:00
<value > an object of type <see cref= "T:System.Boolean" /> </value>
2003-07-16 04:35:01 +00:00
<remarks />
2003-02-12 02:00:12 +00:00
</Docs>
2011-11-09 16:01:51 +00:00
</Member>
<Member MemberName= "Active" >
<MemberSignature Language= "C#" Value= "public bool Active { get; set; }" />
<MemberSignature Language= "ILAsm" Value= ".property instance bool Active" />
<MemberType > Property</MemberType>
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("active")</AttributeName>
2005-05-23 20:41:51 +00:00
</Attribute>
2005-08-23 17:02:47 +00:00
</Attributes>
2003-02-12 02:00:12 +00:00
<ReturnValue >
<ReturnType > System.Boolean</ReturnType>
</ReturnValue>
2003-11-12 06:18:10 +00:00
<Parameters >
</Parameters>
2003-02-12 02:00:12 +00:00
<Docs >
2011-11-09 16:01:51 +00:00
<summary > The toggle state of the <see cref= "T:Gtk.ToggleButton" /> .</summary>
2005-05-23 20:41:51 +00:00
<value > an object of type <see cref= "T:System.Boolean" /> </value>
2003-07-16 04:35:01 +00:00
<remarks />
2003-02-12 02:00:12 +00:00
</Docs>
2005-08-23 17:02:47 +00:00
</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-09-17 21:56:59 +00:00
<ReturnValue >
2011-11-09 16:01:51 +00:00
<ReturnType > GLib.GType</ReturnType>
2003-09-17 21:56:59 +00:00
</ReturnValue>
2003-02-12 02:00:12 +00:00
<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.CellRendererToggle" /> .</remarks>
2003-02-12 02:00:12 +00:00
</Docs>
2011-11-09 16:01:51 +00:00
</Member>
<Member MemberName= "Inconsistent" >
<MemberSignature Language= "C#" Value= "public bool Inconsistent { get; set; }" />
<MemberSignature Language= "ILAsm" Value= ".property instance bool Inconsistent" />
<MemberType > Property</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.Property("inconsistent")</AttributeName>
2005-05-23 20:41:51 +00:00
</Attribute>
2005-08-23 17:02:47 +00:00
</Attributes>
2003-07-16 04:35:01 +00:00
<ReturnValue >
<ReturnType > System.Boolean</ReturnType>
</ReturnValue>
2003-11-12 06:18:10 +00:00
<Parameters >
</Parameters>
2003-07-16 04:35:01 +00:00
<Docs >
<summary > The inconsistent state of the button.</summary>
2005-05-23 20:41:51 +00:00
<value > a <see cref= "T:System.Boolean" /> </value>
2003-07-16 04:35:01 +00:00
<remarks />
</Docs>
2011-11-09 16:01:51 +00:00
</Member>
<Member MemberName= "IndicatorSize" >
<MemberSignature Language= "C#" Value= "public int IndicatorSize { get; set; }" />
<MemberSignature Language= "ILAsm" Value= ".property instance int32 IndicatorSize" />
<MemberType > Property</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.Property("indicator-size")</AttributeName>
2005-05-23 20:41:51 +00:00
</Attribute>
2005-08-23 17:02:47 +00:00
</Attributes>
2003-12-24 01:35:30 +00:00
<ReturnValue >
2011-11-09 16:01:51 +00:00
<ReturnType > System.Int32</ReturnType>
2003-12-24 01:35:30 +00:00
</ReturnValue>
<Docs >
2011-11-09 16:01:51 +00:00
<summary > Size of check or radio indicator.</summary>
<value > defaults to 12.</value>
<remarks />
<since version= "Gtk# 2.10" />
2003-12-24 01:35:30 +00:00
</Docs>
</Member>
<Member MemberName= "OnToggled" >
<MemberSignature Language= "C#" Value= "protected virtual void OnToggled (string path);" />
2011-11-09 16:01:51 +00:00
<MemberSignature Language= "ILAsm" Value= ".method familyhidebysig newslot virtual instance void OnToggled(string path) 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="OverrideToggled", Type=typeof(Gtk.CellRendererToggle))</AttributeName>
</Attribute>
</Attributes>
2003-12-24 01:35:30 +00:00
<ReturnValue >
<ReturnType > System.Void</ReturnType>
</ReturnValue>
<Parameters >
<Parameter Name= "path" Type= "System.String" />
</Parameters>
<Docs >
<param name= "path" > a <see cref= "T:System.String" /> </param>
2011-11-09 16:01:51 +00:00
<summary > Default handler for the <see cref= "M:Gtk.CellRendererToggle.Toggled" /> event.</summary>
2004-06-15 15:41:25 +00:00
<remarks > Override this method in a subclass to provide a default handler for the <see cref= "M:Gtk.CellRendererToggle.Toggled" /> event.</remarks>
2003-12-24 01:35:30 +00:00
</Docs>
</Member>
2011-11-09 16:01:51 +00:00
<Member MemberName= "Radio" >
<MemberSignature Language= "C#" Value= "public bool Radio { get; set; }" />
<MemberSignature Language= "ILAsm" Value= ".property instance bool Radio" />
<MemberType > Property</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.Property("radio")</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.Boolean</ReturnType>
</ReturnValue>
<Parameters >
</Parameters>
<Docs >
<summary > Draw the <see cref= "T:Gtk.ToggleButton" /> as a <see cref= "T:Gtk.RadioButton" /> .</summary>
<value > an object of type <see cref= "T:System.Boolean" /> </value>
<remarks />
</Docs>
2005-08-23 17:02:47 +00:00
</Member>
2011-11-09 16:01:51 +00:00
<Member MemberName= "Toggled" >
<MemberSignature Language= "C#" Value= "public event Gtk.ToggledHandler Toggled;" />
<MemberSignature Language= "ILAsm" Value= ".event class Gtk.ToggledHandler Toggled" />
<MemberType > Event</MemberType>
2006-08-07 17:00:55 +00:00
<Attributes >
<Attribute >
2011-11-09 16:01:51 +00:00
<AttributeName > GLib.Signal("toggled")</AttributeName>
2006-08-07 17:00:55 +00:00
</Attribute>
</Attributes>
<ReturnValue >
2011-11-09 16:01:51 +00:00
<ReturnType > Gtk.ToggledHandler</ReturnType>
2006-08-07 17:00:55 +00:00
</ReturnValue>
2011-11-09 16:01:51 +00:00
<Parameters />
2006-08-07 17:00:55 +00:00
<Docs >
2011-11-09 16:01:51 +00:00
<summary > Emitted when the cell is clicked.</summary>
2006-08-07 17:00:55 +00:00
<remarks />
</Docs>
</Member>
2003-02-12 02:00:12 +00:00
</Members>
2005-05-23 20:41:51 +00:00
</Type>