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" />
2003-02-12 02:00:12 +00:00
<AssemblyInfo >
<AssemblyName > gtk-sharp</AssemblyName>
2003-11-12 06:18:10 +00:00
<AssemblyPublicKey >
</AssemblyPublicKey>
2006-08-04 19:43:19 +00:00
<AssemblyVersion > 2.10.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-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>
<Base >
<BaseTypeName > Gtk.CellRenderer</BaseTypeName>
</Base>
2006-08-07 17:00:55 +00:00
<Interfaces > </Interfaces>
2003-02-12 02:00:12 +00:00
<Members >
<Member MemberName= ".ctor" >
<MemberSignature Language= "C#" Value= "public CellRendererToggle (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 CellRendererToggle ();" />
<MemberType > Constructor</MemberType>
<ReturnValue />
<Parameters />
<Docs >
2003-07-17 06:38:40 +00:00
<summary > Creates a new <see cref= "T:Gtk.CellRendererToggle" /> .</summary>
2003-07-16 04:35:01 +00:00
<remarks > The default constructor.</remarks>
2003-02-12 02:00:12 +00:00
</Docs>
</Member>
<Member MemberName= "Activatable" >
<MemberSignature Language= "C#" Value= "public bool Activatable { set; get; };" />
<MemberType > Property</MemberType>
<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 >
2003-07-17 06:38:40 +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>
2005-08-23 17:02:47 +00:00
<Attributes >
2005-05-23 20:41:51 +00:00
<Attribute >
<AttributeName > GLib.Property(Name="activatable")</AttributeName>
</Attribute>
2005-08-23 17:02:47 +00:00
</Attributes>
</Member>
2003-02-12 02:00:12 +00:00
<Member MemberName= "Active" >
<MemberSignature Language= "C#" Value= "public bool Active { set; get; };" />
<MemberType > Property</MemberType>
<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 >
2003-07-17 06:38:40 +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
<Attributes >
2005-05-23 20:41:51 +00:00
<Attribute >
<AttributeName > GLib.Property(Name="active")</AttributeName>
</Attribute>
2005-08-23 17:02:47 +00:00
</Attributes>
</Member>
2003-02-12 02:00:12 +00:00
<Member MemberName= "Radio" >
<MemberSignature Language= "C#" Value= "public bool Radio { set; get; };" />
<MemberType > Property</MemberType>
<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 >
2003-07-17 06:38:40 +00:00
<summary > Draw the <see cref= "T:Gtk.ToggleButton" /> as a <see cref= "T:Gtk.RadioButton" /> .</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
<Attributes >
2005-05-23 20:41:51 +00:00
<Attribute >
<AttributeName > GLib.Property(Name="radio")</AttributeName>
</Attribute>
2005-08-23 17:02:47 +00:00
</Attributes>
</Member>
2003-02-12 02:00:12 +00:00
<Member MemberName= "Toggled" >
2004-02-25 23:39:06 +00:00
<MemberSignature Language= "C#" Value= "public event Gtk.ToggledHandler Toggled;" />
2003-02-12 02:00:12 +00:00
<MemberType > Event</MemberType>
2003-09-17 21:56:59 +00:00
<ReturnValue >
2004-02-25 23:39:06 +00:00
<ReturnType > Gtk.ToggledHandler</ReturnType>
2003-09-17 21:56:59 +00:00
</ReturnValue>
2003-02-12 02:00:12 +00:00
<Parameters />
<Docs >
2003-07-16 04:35:01 +00:00
<summary > Emitted when the cell is clicked.</summary>
<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 >
<AttributeName > GLib.Signal(CName="toggled")</AttributeName>
</Attribute>
2005-08-23 17:02:47 +00:00
</Attributes>
</Member>
2003-07-16 04:35:01 +00:00
<Member MemberName= "Inconsistent" >
<MemberSignature Language= "C#" Value= "public bool Inconsistent { set; get; };" />
<MemberType > Property</MemberType>
<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>
2005-08-23 17:02:47 +00:00
<Attributes >
2005-05-23 20:41:51 +00:00
<Attribute >
<AttributeName > GLib.Property(Name="inconsistent")</AttributeName>
</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.CellRendererToggle" /> .</remarks>
2003-12-24 01:35:30 +00:00
</Docs>
</Member>
<Member MemberName= "OnToggled" >
<MemberSignature Language= "C#" Value= "protected virtual void OnToggled (string path);" />
<MemberType > Method</MemberType>
<ReturnValue >
<ReturnType > System.Void</ReturnType>
</ReturnValue>
<Parameters >
<Parameter Name= "path" Type= "System.String" />
</Parameters>
<Docs >
2004-06-15 15:41:25 +00:00
<summary > Default handler for the <see cref= "M:Gtk.CellRendererToggle.Toggled" /> event.</summary>
2003-12-24 01:35:30 +00:00
<param name= "path" > a <see cref= "T:System.String" /> </param>
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>
<Member MemberName= ".ctor" >
<MemberSignature Language= "C#" Value= "protected CellRendererToggle (GLib.GType gtype);" />
<MemberType > Constructor</MemberType>
<ReturnValue />
<Parameters >
<Parameter Name= "gtype" Type= "GLib.GType" />
</Parameters>
<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-12-24 01:35:30 +00:00
</Docs>
2005-08-23 17:02:47 +00:00
<Attributes >
2005-05-23 20:41:51 +00:00
<Attribute >
<AttributeName > System.Obsolete(Message=null, IsError=False)</AttributeName>
</Attribute>
2005-08-23 17:02:47 +00:00
</Attributes>
</Member>
2006-08-07 17:00:55 +00:00
<Member MemberName= "IndicatorSize" >
<MemberSignature Language= "C#" Value= "public int IndicatorSize { set; get; };" />
<MemberType > Property</MemberType>
<Attributes >
<Attribute >
<AttributeName > GLib.Property(Name="indicator-size")</AttributeName>
</Attribute>
</Attributes>
<ReturnValue >
<ReturnType > System.Int32</ReturnType>
</ReturnValue>
<Docs >
<summary > Size of check or radio indicator.</summary>
<value > defaults to 12.</value>
<remarks />
<since version= "Gtk# 2.10" />
</Docs>
</Member>
2003-02-12 02:00:12 +00:00
</Members>
2005-05-23 20:41:51 +00:00
</Type>