Ryujinx-GtkSharp/glib/UnwrappedObject.cs
Rachel Hestilow 414a14d93e 2002-06-24 Rachel Hestilow <hestilow@ximian.com>
* glib/UnwrappedObject.cs: New class which holds an IntPtr.
	This is used in Value so that we can retrieve the IntPtr itself
	for an object property.

	* glib/Value.cs: Add UnwrappedObject cast operator.

	* glib/Property.cs: If the retrieved value is an object,
	and there is no wrapper object, create a new one.

svn path=/trunk/gtk-sharp/; revision=5440
2002-06-24 23:38:51 +00:00

27 lines
520 B
C#

// UnwrappedObject.cs - Class which holds an IntPtr without resolving it:
//
// Author: Rachel Hestilow <hestilow@ximian.com>
//
// (c) 2002 Rachel Hestilow
namespace GLib {
using System;
using System.Runtime.InteropServices;
// <summary> Unwrapped object class </summary>
// <remarks> </remarks>
public class UnwrappedObject {
IntPtr obj;
public UnwrappedObject (IntPtr obj) {
this.obj = obj;
}
public static explicit operator System.IntPtr (UnwrappedObject obj) {
return obj.obj;
}
}
}