2003-02-12 01:58:24 +00:00
<Type Name= "Opaque" FullName= "GLib.Opaque" >
2007-01-15 21:19:09 +00:00
<TypeSignature Language= "C#" Maintainer= "auto" Value= "public class Opaque : GLib.IWrapper, IDisposable" />
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>
2003-02-12 01:58:24 +00:00
<Base >
<BaseTypeName > System.Object</BaseTypeName>
</Base>
<Interfaces >
<Interface >
<InterfaceName > GLib.IWrapper</InterfaceName>
</Interface>
2005-08-03 15:35:46 +00:00
<Interface >
<InterfaceName > System.IDisposable</InterfaceName>
</Interface>
2003-02-12 01:58:24 +00:00
</Interfaces>
2009-01-06 16:29:49 +00:00
<Docs >
<summary > To be added</summary>
<remarks > To be added</remarks>
</Docs>
2003-02-12 01:58:24 +00:00
<Members >
<Member MemberName= ".ctor" >
<MemberSignature Language= "C#" Value= "public Opaque ();" />
<MemberType > Constructor</MemberType>
<ReturnValue />
<Parameters />
<Docs >
2003-08-30 02:35:39 +00:00
<summary > Creates a new <see cref= "T:GLib.Opaque" /> instance.</summary>
2003-12-24 01:35:30 +00:00
<remarks >
</remarks>
2003-02-12 01:58:24 +00:00
</Docs>
</Member>
<Member MemberName= ".ctor" >
<MemberSignature Language= "C#" Value= "public Opaque (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-02-23 07:26:30 +00:00
<param name= "raw" > Pointer to the C object.</param>
2009-01-06 16:29:49 +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 01:58:24 +00:00
</Docs>
</Member>
2009-01-06 16:29:49 +00:00
<Member MemberName= "Copy" >
<MemberSignature Language= "C#" Value= "protected virtual GLib.Opaque Copy (IntPtr raw);" />
<MemberType > Method</MemberType>
2003-02-12 01:58:24 +00:00
<ReturnValue >
2009-01-06 16:29:49 +00:00
<ReturnType > GLib.Opaque</ReturnType>
2003-02-12 01:58:24 +00:00
</ReturnValue>
2009-01-06 16:29:49 +00:00
<Parameters >
<Parameter Name= "raw" Type= "System.IntPtr" />
</Parameters>
2003-02-12 01:58:24 +00:00
<Docs >
2009-01-06 16:29:49 +00:00
<param name= "raw" > Native opaque structure pointer to copy.</param>
<summary > Copies an existing opaque type.</summary>
<returns > A copied reference, or the original if the type doesn't support copying.</returns>
<remarks />
2003-02-12 01:58:24 +00:00
</Docs>
</Member>
2009-01-06 16:29:49 +00:00
<Member MemberName= "Dispose" >
<MemberSignature Language= "C#" Value= "public virtual void Dispose ();" />
<MemberType > Method</MemberType>
2003-02-12 01:58:24 +00:00
<ReturnValue >
2009-01-06 16:29:49 +00:00
<ReturnType > System.Void</ReturnType>
2003-02-12 01:58:24 +00:00
</ReturnValue>
2009-01-06 16:29:49 +00:00
<Parameters />
2003-02-12 01:58:24 +00:00
<Docs >
2009-01-06 16:29:49 +00:00
<summary > Disposes the raw object.</summary>
<remarks />
2003-02-12 01:58:24 +00:00
</Docs>
</Member>
2009-01-06 16:29:49 +00:00
<Member MemberName= "Equals" >
<MemberSignature Language= "C#" Value= "public override bool Equals (object o);" />
2005-08-03 15:35:46 +00:00
<MemberType > Method</MemberType>
<ReturnValue >
2009-01-06 16:29:49 +00:00
<ReturnType > System.Boolean</ReturnType>
2005-08-03 15:35:46 +00:00
</ReturnValue>
<Parameters >
2009-01-06 16:29:49 +00:00
<Parameter Name= "o" Type= "System.Object" />
2005-08-03 15:35:46 +00:00
</Parameters>
<Docs >
2009-01-06 16:29:49 +00:00
<param name= "o" > object to test.</param>
<summary > Tests for equality.</summary>
<returns > boolean equality indication.</returns>
<remarks />
2005-08-03 15:35:46 +00:00
</Docs>
</Member>
2009-01-06 16:29:49 +00:00
<Member MemberName= "Finalize" >
<MemberSignature Language= "C#" Value= "~Opaque ();" />
2005-08-03 15:35:46 +00:00
<MemberType > Method</MemberType>
<ReturnValue >
<ReturnType > System.Void</ReturnType>
</ReturnValue>
<Parameters />
<Docs >
2009-01-06 16:29:49 +00:00
<summary > Finalizer.</summary>
2005-08-03 15:35:46 +00:00
<remarks />
</Docs>
</Member>
2009-01-06 16:29:49 +00:00
<Member MemberName= "Free" >
<MemberSignature Language= "C#" Value= "protected virtual void Free (IntPtr raw);" />
2005-08-03 15:35:46 +00:00
<MemberType > Method</MemberType>
<ReturnValue >
<ReturnType > System.Void</ReturnType>
</ReturnValue>
<Parameters >
<Parameter Name= "raw" Type= "System.IntPtr" />
</Parameters>
<Docs >
<param name= "raw" > The raw pointer.</param>
2009-01-06 16:29:49 +00:00
<summary > Overridden in generated subclasses to free the raw data.</summary>
2005-08-03 15:35:46 +00:00
<remarks />
</Docs>
</Member>
2009-01-06 16:29:49 +00:00
<Member MemberName= "GetHashCode" >
<MemberSignature Language= "C#" Value= "public override int GetHashCode ();" />
2005-08-03 15:35:46 +00:00
<MemberType > Method</MemberType>
<ReturnValue >
2009-01-06 16:29:49 +00:00
<ReturnType > System.Int32</ReturnType>
</ReturnValue>
<Parameters />
<Docs >
<summary > Hashing value.</summary>
<returns > integer hash value.</returns>
<remarks />
</Docs>
</Member>
<Member MemberName= "GetOpaque" >
<MemberSignature Language= "C#" Value= "public static GLib.Opaque GetOpaque (IntPtr o);" />
<MemberType > Method</MemberType>
<ReturnValue >
<ReturnType > GLib.Opaque</ReturnType>
2005-08-03 15:35:46 +00:00
</ReturnValue>
<Parameters >
2009-01-06 16:29:49 +00:00
<Parameter Name= "o" Type= "System.IntPtr" />
2005-08-03 15:35:46 +00:00
</Parameters>
<Docs >
2009-01-06 16:29:49 +00:00
<param name= "o" > an object of type <see cref= "T:System.IntPtr" /> </param>
<summary > Used to obtain a CLI typed object associated with a given raw object pointer.</summary>
<returns > an object of type <see cref= "T:GLib.Opaque" /> </returns>
<remarks > This method is primarily used to wrap object references that are returned by either the signal system or raw class methods that return opaque struct references.</remarks>
2005-08-03 15:35:46 +00:00
</Docs>
2009-01-06 16:29:49 +00:00
<Attributes >
<Attribute >
<AttributeName > System.Obsolete("Use more explicit overload. This method always returns null")</AttributeName>
</Attribute>
</Attributes>
2005-08-03 15:35:46 +00:00
</Member>
2009-01-06 16:29:49 +00:00
<Member MemberName= "GetOpaque" >
<MemberSignature Language= "C#" Value= "public static GLib.Opaque GetOpaque (IntPtr o, Type type, bool owned);" />
2005-08-03 15:35:46 +00:00
<MemberType > Method</MemberType>
<ReturnValue >
2009-01-06 16:29:49 +00:00
<ReturnType > GLib.Opaque</ReturnType>
2005-08-03 15:35:46 +00:00
</ReturnValue>
<Parameters >
2009-01-06 16:29:49 +00:00
<Parameter Name= "o" Type= "System.IntPtr" />
<Parameter Name= "type" Type= "System.Type" />
<Parameter Name= "owned" Type= "System.Boolean" />
2005-08-03 15:35:46 +00:00
</Parameters>
<Docs >
2009-01-06 16:29:49 +00:00
<param name= "o" > a <see cref= "T:System.IntPtr" /> </param>
<param name= "type" > a <see cref= "T:System.Type" /> </param>
<param name= "owned" > a <see cref= "T:System.Boolean" /> </param>
<summary > Used to obtain a CLI typed object associated with a given raw pointer.</summary>
<returns > a <see cref= "T:GLib.Object" /> </returns>
<remarks > This method is primarily used to wrap object references that are returned by either the signal system or raw class methods that return opaque type pointers.</remarks>
</Docs>
</Member>
<Member MemberName= "Handle" >
<MemberSignature Language= "C#" Value= "public IntPtr Handle { get; }" />
<MemberType > Property</MemberType>
<ReturnValue >
<ReturnType > System.IntPtr</ReturnType>
</ReturnValue>
<Docs >
<summary > The raw Opaque reference associated with this object.</summary>
<value > an object of type <see cref= "T:System.IntPtr" /> </value>
<remarks > Subclasses can use Raw property for read/write access.</remarks>
2005-08-03 15:35:46 +00:00
</Docs>
</Member>
<Member MemberName= "Owned" >
2009-01-06 16:29:49 +00:00
<MemberSignature Language= "C#" Value= "public bool Owned { set; get; }" />
2005-08-03 15:35:46 +00:00
<MemberType > Property</MemberType>
<ReturnValue >
<ReturnType > System.Boolean</ReturnType>
</ReturnValue>
<Docs >
<summary > Whether or not this <see cref= "T:GLib.Opaque" /> wrapper owns the raw object.</summary>
2005-08-03 16:41:29 +00:00
<value >
2005-08-09 17:33:46 +00:00
<see langword= "true" /> if the wrapper owns the raw object and will <see cref= "M:GLib.Opaque.Unref" /> / <see cref= "M:GLib.Opaque.Free" /> it when the wrapper is disposed.</value>
2005-08-03 15:35:46 +00:00
<remarks > By default, this is set to <see langword= "true" /> for opaque objects created with the no-argument constructor, and <see langword= "false" /> for opaque objects created with the <see cref= "T:System.IntPtr" /> constructor. Methods that return an opaque object can override this by setting the <see cref= "M:GLib.Opaque.Owned" /> property accordingly to obey the memory-management conventions of the underlying C code.</remarks>
</Docs>
</Member>
2009-01-06 16:29:49 +00:00
<Member MemberName= "OwnedCopy" >
<MemberSignature Language= "C#" Value= "public IntPtr OwnedCopy { get; }" />
<MemberType > Property</MemberType>
<ReturnValue >
<ReturnType > System.IntPtr</ReturnType>
</ReturnValue>
<Docs >
<summary > Gets a pointer to an owned native copy.</summary>
<value > a native copy.</value>
<remarks />
<since version= "Gtk# 2.10" />
</Docs>
</Member>
<Member MemberName= "Raw" >
<MemberSignature Language= "C#" Value= "protected IntPtr Raw { set; get; }" />
<MemberType > Property</MemberType>
<ReturnValue >
<ReturnType > System.IntPtr</ReturnType>
</ReturnValue>
<Parameters >
</Parameters>
<Docs >
<summary > The raw Opaque reference associated with this wrapper.</summary>
<value > an object of type <see cref= "T:System.IntPtr" /> </value>
<remarks > Only subclasses of Opaque can access this read/write property.</remarks>
</Docs>
</Member>
<Member MemberName= "Ref" >
<MemberSignature Language= "C#" Value= "protected virtual void Ref (IntPtr raw);" />
2007-10-05 18:20:57 +00:00
<MemberType > Method</MemberType>
<ReturnValue >
2009-01-06 16:29:49 +00:00
<ReturnType > System.Void</ReturnType>
2007-10-05 18:20:57 +00:00
</ReturnValue>
<Parameters >
<Parameter Name= "raw" Type= "System.IntPtr" />
</Parameters>
<Docs >
2009-01-06 16:29:49 +00:00
<param name= "raw" > The raw pointer.</param>
<summary > Overridden in generated subclasses that perform refcounting.</summary>
<remarks />
</Docs>
</Member>
<Member MemberName= "Unref" >
<MemberSignature Language= "C#" Value= "protected virtual void Unref (IntPtr raw);" />
<MemberType > Method</MemberType>
<ReturnValue >
<ReturnType > System.Void</ReturnType>
</ReturnValue>
<Parameters >
<Parameter Name= "raw" Type= "System.IntPtr" />
</Parameters>
<Docs >
<param name= "raw" > The raw pointer.</param>
<summary > Overridden in generated subclasses that perform refcounting.</summary>
2007-10-05 18:20:57 +00:00
<remarks />
</Docs>
</Member>
2003-02-12 01:58:24 +00:00
</Members>
2005-05-23 20:41:51 +00:00
</Type>