Ryujinx-GtkSharp/glib/Boxed.cs
Mike Kestner cd73a17587 2002-05-02 Mike Kestner <mkestner@speakeasy.net>
* README : Describe the new make procedure.
	* configure.in : Add the new Makefile generation.
	* makefile : add the glue dir, make linux the default build,
	  add an install target
	* */makefile.win32 : temp build files for win32
	* */Makefile.in : new configurable make system
	* */makefile : killed
	* generator/BoxedGen.cs : Now uses GLib.Boxed
	* generator/ObjectGen.cs : Use Values for Props.
	* generator/SymbolTable.cs : Add IsEnum method.
	* glib/Boxed.cs : Major overhaul.
	* glib/Object.cs : Remove type specific (Get|Set)Property. Now
	  use GValue based property accessors.
	* glib/TypeFundamentals.cs : Update to current values.
	* glib/Value.cs : Refactor to use glue.

svn path=/trunk/gtk-sharp/; revision=4236
2002-05-02 21:57:41 +00:00

84 lines
1.3 KiB
C#

// GtkSharp.Boxed.cs - Base class for deriving marshallable structures.
//
// Author: Mike Kestner <mkestner@speakeasy.net>
//
// (c) 2001-2002 Mike Kestner
namespace GLib {
using System;
/// <summary>
/// Boxed Class
/// </summary>
///
/// <remarks>
/// An abstract base class to derive structures and marshal them.
/// </remarks>
public abstract class Boxed {
private IntPtr raw;
public Boxed () : this (IntPtr.Zero) {}
/// <summary>
/// Boxed Constructor
/// </summary>
///
/// <remarks>
/// Constructs a Boxed type from a raw ref.
/// </remarks>
public Boxed (IntPtr raw)
{
this.raw = raw;
}
/// <summary>
/// Handle Property
/// </summary>
///
/// <remarks>
/// Gets a marshallable IntPtr.
/// </remarks>
public virtual IntPtr Handle {
get {
return raw;
}
}
/// <summary>
/// Raw Property
/// </summary>
///
/// <remarks>
/// Gets or sets a marshallable IntPtr.
/// </remarks>
protected IntPtr Raw {
get {
return raw;
}
set {
raw = value;
}
}
/// <summary>
/// FromNative Method
/// </summary>
///
/// <remarks>
/// Gets a Boxed type from a raw IntPtr.
/// </remarks>
public static GLib.Boxed FromNative (IntPtr raw)
{
// FIXME:
return null;
}
}
}