2003-02-12 01:58:24 +00:00
<Type Name= "List" FullName= "GLib.List" >
2005-05-23 20:41:51 +00:00
<TypeSignature Language= "C#" Maintainer= "miguel" Value= "public class List : GLib.ListBase" />
2003-02-12 01:58:24 +00:00
<AssemblyInfo >
<AssemblyName > glib-sharp</AssemblyName>
2003-12-24 01:35:30 +00:00
<AssemblyPublicKey >
</AssemblyPublicKey>
2003-02-12 01:58:24 +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>
2009-01-06 16:29:49 +00:00
<Base >
<BaseTypeName > GLib.ListBase</BaseTypeName>
</Base>
<Interfaces >
</Interfaces>
2003-02-12 01:58:24 +00:00
<Docs >
2003-08-30 02:35:39 +00:00
<summary > A list class used by Gtk</summary>
2003-03-09 07:58:52 +00:00
<remarks >
<para >
2003-08-30 02:35:39 +00:00
<see cref= "T:GLib.List" /> is managed wrapper for the underlying C list
2003-03-09 07:58:52 +00:00
implementation used by Gtk+. Various functions on the Gtk+
API take lists or return lists in this form.
</para>
<para >
2003-08-30 02:35:39 +00:00
The list deals with <see cref= "T:System.IntPtr" /> objects, these are pointers into
2003-03-09 07:58:52 +00:00
unmanaged resources.
</para>
<example >
2003-03-15 22:45:31 +00:00
<para >
2003-03-09 07:58:52 +00:00
For example to create a list of widgets, you would use the
following sample:
</para>
2003-03-15 22:45:31 +00:00
<code lang= "c#" >
2003-03-09 07:58:52 +00:00
GLib.List MakeList (Gtk.Widget a, Gtk.Widget b)
{
GLib.List l = new GLib.List ((IntPtr) 0, typeof (Gtk.Widget));
l.Append (a.Handle);
l.Append (b.Handle);
}
</code>
2003-03-15 22:45:31 +00:00
<para >
2003-08-30 02:35:39 +00:00
The <see cref= "T:System.Type" /> argument to the <see cref= "T:GLib.List" />
2003-03-09 07:58:52 +00:00
constructor, allows the list enumerator code to return
properly wrapped or demarshalled objects from the unmanaged
world into the managed world.
</para>
</example>
</remarks>
2003-02-12 01:58:24 +00:00
</Docs>
<Members >
<Member MemberName= ".ctor" >
<MemberSignature Language= "C#" Value= "public List (IntPtr raw);" />
<MemberType > Constructor</MemberType>
<ReturnValue />
<Parameters >
2003-08-30 02:35:39 +00:00
<Parameter Name= "raw" Type= "System.IntPtr" />
</Parameters>
2003-02-12 01:58:24 +00:00
<Docs >
2003-08-30 02:35:39 +00:00
<param name= "raw" > A handle to a <see cref= "T:GLib.List" /> .</param>
2009-01-06 16:29:49 +00:00
<summary > Constructs a List</summary>
2003-02-23 07:26:30 +00:00
<remarks >
2003-03-09 07:58:52 +00:00
<para >
2003-08-30 02:35:39 +00:00
<see cref= "T:GLib.List" /> objects are constructed by passing an unmanaged
reference to an existing <see cref= "T:GLib.List" /> , or they can use
2003-03-09 07:58:52 +00:00
"(IntPtr) 0" as an initial value.
</para>
2003-03-15 22:45:31 +00:00
<para >
2003-03-09 07:58:52 +00:00
Using this constructor will not track the type information
of the classes or structures kept in the list. If you
2003-03-15 22:45:31 +00:00
plan on tracking the type information, use the <see cref= "M:GLib.List.List(IntPtr,Type)" /> method.
2003-03-09 07:58:52 +00:00
</para>
2003-02-23 07:26:30 +00:00
</remarks>
2003-02-12 01:58:24 +00:00
</Docs>
</Member>
2009-01-06 16:29:49 +00:00
<Member MemberName= ".ctor" >
<MemberSignature Language= "C#" Value= "public List (Type element_type);" />
<MemberType > Constructor</MemberType>
<ReturnValue />
<Parameters >
<Parameter Name= "element_type" Type= "System.Type" />
</Parameters>
<Docs >
<param name= "element_type" > a <see cref= "T:System.Type" /> </param>
<summary > Constructs a list of objects of a given type.</summary>
<remarks >
<example >
<code lang= "C#" >
Gtk.Widget a = new Gtk.Widget((IntPtr) 0);
Gtk.Widget b = new Gtk.Widget((IntPtr) 0);
GLib.List l = new GLib.List (typeof (Gtk.Widget));
l.Append (a.Handle);
l.Append (b.Handle);
</code>
</example>
</remarks>
</Docs>
</Member>
2003-02-12 01:58:24 +00:00
<Member MemberName= ".ctor" >
<MemberSignature Language= "C#" Value= "public List (IntPtr raw, Type element_type);" />
<MemberType > Constructor</MemberType>
<ReturnValue />
<Parameters >
2003-08-30 02:35:39 +00:00
<Parameter Name= "raw" Type= "System.IntPtr" />
<Parameter Name= "element_type" Type= "System.Type" />
</Parameters>
2003-02-12 01:58:24 +00:00
<Docs >
2003-03-09 07:58:52 +00:00
<param name= "raw" > A handle to a GLib.list</param>
2005-05-23 20:41:51 +00:00
<param name= "element_type" > To be added.</param>
<summary > Internal constructor</summary>
2003-02-23 07:26:30 +00:00
<remarks >
2003-03-09 07:58:52 +00:00
<para >
2003-08-30 02:35:39 +00:00
<see cref= "T:GLib.List" /> objects are constructed by passing an unmanaged
reference to an existing <see cref= "T:GLib.List" /> , or they can use
2003-03-09 07:58:52 +00:00
"(IntPtr) 0" as an initial value.
</para>
2003-03-15 22:45:31 +00:00
<para >
2003-03-09 07:58:52 +00:00
Using this constructor will track the type information
of the classes or structures kept in the list. This
information is used by the List enumerator when returning
data.
</para>
2003-02-23 07:26:30 +00:00
</remarks>
2003-02-12 01:58:24 +00:00
</Docs>
</Member>
2004-03-09 06:02:51 +00:00
<Member MemberName= ".ctor" >
2009-01-06 16:29:49 +00:00
<MemberSignature Language= "C#" Value= "public List (Array elements, Type element_type, bool owned, bool elements_owned);" />
2004-03-09 06:02:51 +00:00
<MemberType > Constructor</MemberType>
<Parameters >
2009-01-06 16:29:49 +00:00
<Parameter Name= "elements" Type= "System.Array" />
2004-03-09 06:02:51 +00:00
<Parameter Name= "element_type" Type= "System.Type" />
2009-01-06 16:29:49 +00:00
<Parameter Name= "owned" Type= "System.Boolean" />
<Parameter Name= "elements_owned" Type= "System.Boolean" />
2004-03-09 06:02:51 +00:00
</Parameters>
<Docs >
2009-01-06 16:29:49 +00:00
<param name= "elements" > Array on elements to build the list.</param>
<param name= "element_type" > The Type of the elements.</param>
<param name= "owned" > Indicates if the list reference must be released on finalization.</param>
<param name= "elements_owned" > Indicates if the list members must be released on finalization.</param>
<summary > Public constructor.</summary>
<remarks > Constructs a native GList containing a set of member objects.</remarks>
2004-03-09 06:02:51 +00:00
</Docs>
</Member>
2005-08-23 17:02:47 +00:00
<Member MemberName= ".ctor" >
2005-06-23 22:28:06 +00:00
<MemberSignature Language= "C#" Value= "public List (IntPtr raw, Type element_type, bool owned, bool elements_owned);" />
<MemberType > Constructor</MemberType>
<Parameters >
<Parameter Name= "raw" Type= "System.IntPtr" />
<Parameter Name= "element_type" Type= "System.Type" />
<Parameter Name= "owned" Type= "System.Boolean" />
<Parameter Name= "elements_owned" Type= "System.Boolean" />
</Parameters>
<Docs >
<param name= "raw" > Pointer to the native list.</param>
<param name= "element_type" > The type of the elements contained in the list.</param>
2005-06-24 19:27:01 +00:00
<param name= "owned" >
<see langword= "true" /> if the native list needs to be released on Dispose.</param>
<param name= "elements_owned" >
<see langword= "true" /> if the list elements need to be released on Dispose.</param>
2005-06-23 22:28:06 +00:00
<summary > Creates a List.</summary>
<remarks > This type is only recommended for marshaling GList parameters and return values in bindings.</remarks>
</Docs>
</Member>
2007-10-05 18:20:57 +00:00
<Member MemberName= ".ctor" >
<MemberSignature Language= "C#" Value= "public List (object[] elements, Type element_type, bool owned, bool elements_owned);" />
<MemberType > Constructor</MemberType>
<Parameters >
<Parameter Name= "elements" Type= "System.Object[]" />
<Parameter Name= "element_type" Type= "System.Type" />
<Parameter Name= "owned" Type= "System.Boolean" />
<Parameter Name= "elements_owned" Type= "System.Boolean" />
</Parameters>
<Docs >
<param name= "elements" > An array of list member objects.</param>
<param name= "element_type" > The type of the members.</param>
<param name= "owned" > Indicates if the list reference must be released on finalization.</param>
<param name= "elements_owned" > Indicates if the list members must be released on finalization.</param>
<summary > Public constructor.</summary>
<remarks > Constructs a native GList containing a set of member objects.</remarks>
</Docs>
</Member>
2009-01-06 16:29:49 +00:00
<Member MemberName= "Clone" >
<MemberSignature Language= "C#" Value= "public override object Clone ();" />
<MemberType > Method</MemberType>
<ReturnValue >
<ReturnType > System.Object</ReturnType>
</ReturnValue>
<Parameters />
2007-11-11 03:17:29 +00:00
<Docs >
2009-01-06 16:29:49 +00:00
<summary > Clones a list.</summary>
<returns > a new native list.</returns>
<remarks />
<since version= "Gtk# 2.4" />
2007-11-11 03:17:29 +00:00
</Docs>
</Member>
2003-02-12 01:58:24 +00:00
</Members>
2005-05-23 20:41:51 +00:00
</Type>