2001-09-19 02:04:57 +00:00
|
|
|
// Object.cs - GObject class wrapper implementation
|
|
|
|
//
|
2001-09-27 17:17:33 +00:00
|
|
|
// Authors: Bob Smith <bob@thestuff.net>
|
|
|
|
// Mike Kestner <mkestner@speakeasy.net>
|
2001-09-19 02:04:57 +00:00
|
|
|
//
|
2001-09-27 17:17:33 +00:00
|
|
|
// (c) 2001 Bob Smith and Mike Kestner
|
2001-09-19 02:04:57 +00:00
|
|
|
|
2001-09-19 11:37:15 +00:00
|
|
|
namespace GLib {
|
2001-09-19 02:04:57 +00:00
|
|
|
|
|
|
|
using System;
|
2001-09-20 04:03:27 +00:00
|
|
|
using System.Collections;
|
2001-09-19 11:37:15 +00:00
|
|
|
using System.ComponentModel;
|
2001-09-19 02:04:57 +00:00
|
|
|
using System.Runtime.InteropServices;
|
|
|
|
|
2001-09-27 18:39:53 +00:00
|
|
|
/// <summary>
|
|
|
|
/// Object Class
|
|
|
|
/// </summary>
|
|
|
|
///
|
|
|
|
/// <remarks>
|
|
|
|
/// Wrapper class for GObject.
|
|
|
|
/// </remarks>
|
|
|
|
|
2001-09-19 02:04:57 +00:00
|
|
|
public class Object {
|
2001-09-27 18:39:53 +00:00
|
|
|
|
|
|
|
// Private class and instance members
|
|
|
|
IntPtr _obj;
|
|
|
|
EventHandlerList _events;
|
|
|
|
Hashtable Data;
|
|
|
|
static Hashtable Objects = new Hashtable();
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// GetObject Shared Method
|
|
|
|
/// </summary>
|
|
|
|
///
|
|
|
|
/// <remarks>
|
|
|
|
/// Used to obtain a CLI typed object associated with a
|
|
|
|
/// given raw object pointer. This method is primarily
|
|
|
|
/// used to wrap object references that are returned
|
|
|
|
/// by either the signal system or raw class methods that
|
|
|
|
/// return GObject references.
|
|
|
|
/// </remarks>
|
|
|
|
///
|
|
|
|
/// <returns>
|
|
|
|
/// The wrapper instance.
|
|
|
|
/// </returns>
|
|
|
|
|
2001-09-19 04:47:48 +00:00
|
|
|
public static Object GetObject(IntPtr o)
|
|
|
|
{
|
2001-09-21 16:24:46 +00:00
|
|
|
Object obj = (Object)Objects[(int)o];
|
|
|
|
if (obj != null) return obj;
|
2001-09-27 17:17:33 +00:00
|
|
|
return null; //FIXME: Call TypeParser here eventually.
|
2001-09-19 02:04:57 +00:00
|
|
|
}
|
2001-09-20 04:03:27 +00:00
|
|
|
|
2001-09-19 02:04:57 +00:00
|
|
|
|
2001-09-27 18:39:53 +00:00
|
|
|
/// <summary>
|
|
|
|
/// RawObject Property
|
|
|
|
/// </summary>
|
|
|
|
///
|
|
|
|
/// <remarks>
|
|
|
|
/// The raw GObject reference associated with this wrapper.
|
2001-10-07 00:41:52 +00:00
|
|
|
/// Only subclasses of Object can access this read/write
|
|
|
|
/// property. For public read-only access, use the
|
|
|
|
/// Handle property.
|
2001-09-27 18:39:53 +00:00
|
|
|
/// </remarks>
|
|
|
|
|
|
|
|
protected IntPtr RawObject {
|
2001-09-19 11:37:15 +00:00
|
|
|
get {
|
2001-09-19 02:04:57 +00:00
|
|
|
return _obj;
|
|
|
|
}
|
2001-09-19 11:37:15 +00:00
|
|
|
set {
|
2001-09-27 18:39:53 +00:00
|
|
|
Objects [value] = this;
|
2001-09-19 02:04:57 +00:00
|
|
|
_obj = value;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2001-10-07 00:41:52 +00:00
|
|
|
/// <summary>
|
|
|
|
/// Handle Property
|
|
|
|
/// </summary>
|
|
|
|
///
|
|
|
|
/// <remarks>
|
|
|
|
/// The raw GObject reference associated with this object.
|
|
|
|
/// Subclasses can use RawObject property for read/write
|
|
|
|
/// access.
|
|
|
|
/// </remarks>
|
|
|
|
|
|
|
|
public IntPtr Handle {
|
|
|
|
get {
|
|
|
|
return _obj;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2001-09-27 18:39:53 +00:00
|
|
|
/// <summary>
|
2002-01-12 02:08:16 +00:00
|
|
|
/// EventList Property
|
2001-09-27 18:39:53 +00:00
|
|
|
/// </summary>
|
|
|
|
///
|
|
|
|
/// <remarks>
|
|
|
|
/// A list object containing all the events for this
|
|
|
|
/// object indexed by the Gtk+ signal name.
|
|
|
|
/// </remarks>
|
|
|
|
|
2002-01-12 02:08:16 +00:00
|
|
|
protected EventHandlerList EventList {
|
2001-09-19 11:37:15 +00:00
|
|
|
get {
|
|
|
|
if (_events == null)
|
|
|
|
_events = new EventHandlerList ();
|
|
|
|
return _events;
|
2001-09-19 02:04:57 +00:00
|
|
|
}
|
|
|
|
}
|
2001-09-19 04:47:48 +00:00
|
|
|
|
2001-10-31 01:31:05 +00:00
|
|
|
/// <summary>
|
|
|
|
/// Equals Method
|
|
|
|
/// </summary>
|
|
|
|
///
|
|
|
|
/// <remarks>
|
|
|
|
/// Checks equivalence of two Objects.
|
|
|
|
/// </remarks>
|
|
|
|
|
|
|
|
public override bool Equals (object o)
|
|
|
|
{
|
|
|
|
if (!(o is Object))
|
|
|
|
return false;
|
|
|
|
|
|
|
|
return (Handle == ((Object) o).Handle);
|
|
|
|
}
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// GetHashCode Method
|
|
|
|
/// </summary>
|
|
|
|
///
|
|
|
|
/// <remarks>
|
|
|
|
/// Calculates a hashing value.
|
|
|
|
/// </remarks>
|
|
|
|
|
|
|
|
public override int GetHashCode ()
|
|
|
|
{
|
|
|
|
return Handle.GetHashCode ();
|
|
|
|
}
|
|
|
|
|
2001-09-27 18:39:53 +00:00
|
|
|
/// <summary>
|
|
|
|
/// GetData Method
|
|
|
|
/// </summary>
|
|
|
|
///
|
|
|
|
/// <remarks>
|
|
|
|
/// Accesses arbitrary data storage on the Object.
|
|
|
|
/// </remarks>
|
2001-09-20 04:03:27 +00:00
|
|
|
|
2001-09-27 18:39:53 +00:00
|
|
|
public object GetData (String key)
|
2001-09-20 04:03:27 +00:00
|
|
|
{
|
2001-09-27 18:39:53 +00:00
|
|
|
if (Data == null)
|
|
|
|
return null;
|
|
|
|
|
|
|
|
return Data [key];
|
2001-09-20 04:03:27 +00:00
|
|
|
}
|
|
|
|
|
2001-09-27 18:39:53 +00:00
|
|
|
/// <summary>
|
|
|
|
/// SetData Method
|
|
|
|
/// </summary>
|
|
|
|
///
|
|
|
|
/// <remarks>
|
|
|
|
/// Stores arbitrary data on the Object.
|
|
|
|
/// </remarks>
|
2001-09-19 02:04:57 +00:00
|
|
|
|
2001-09-27 18:39:53 +00:00
|
|
|
public void SetData (String key, object val)
|
2001-09-19 02:04:57 +00:00
|
|
|
{
|
2001-09-27 18:39:53 +00:00
|
|
|
if (Data == null)
|
|
|
|
Data = new Hashtable ();
|
|
|
|
|
|
|
|
Data [key] = val;
|
2001-09-19 02:04:57 +00:00
|
|
|
}
|
2001-09-20 04:03:27 +00:00
|
|
|
|
2001-09-28 18:23:14 +00:00
|
|
|
/// <summary>
|
|
|
|
/// GetProperty Method
|
|
|
|
/// </summary>
|
|
|
|
///
|
|
|
|
/// <remarks>
|
2001-10-02 01:27:44 +00:00
|
|
|
/// Accesses a string Property.
|
2001-09-28 18:23:14 +00:00
|
|
|
/// </remarks>
|
|
|
|
|
2001-10-02 01:27:44 +00:00
|
|
|
[DllImport("gobject-1.3.dll", CharSet=CharSet.Ansi,
|
|
|
|
CallingConvention=CallingConvention.Cdecl)]
|
|
|
|
static extern void g_object_get (IntPtr obj, IntPtr name,
|
|
|
|
out IntPtr val, IntPtr term);
|
2001-09-28 18:23:14 +00:00
|
|
|
|
2001-10-02 01:27:44 +00:00
|
|
|
public void GetProperty (String name, out String val)
|
2001-09-28 18:23:14 +00:00
|
|
|
{
|
2001-10-02 01:27:44 +00:00
|
|
|
IntPtr propval;
|
|
|
|
g_object_get (RawObject,
|
|
|
|
Marshal.StringToHGlobalAnsi (name),
|
|
|
|
out propval, new IntPtr (0));
|
|
|
|
val = Marshal.PtrToStringAnsi (propval);
|
|
|
|
}
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// GetProperty Method
|
|
|
|
/// </summary>
|
|
|
|
///
|
|
|
|
/// <remarks>
|
|
|
|
/// Accesses a boolean Property.
|
|
|
|
/// </remarks>
|
|
|
|
|
|
|
|
[DllImport("gobject-1.3.dll", CharSet=CharSet.Ansi,
|
|
|
|
CallingConvention=CallingConvention.Cdecl)]
|
|
|
|
static extern void g_object_get (IntPtr obj, IntPtr name,
|
|
|
|
out bool val, IntPtr term);
|
|
|
|
|
|
|
|
public void GetProperty (String name, out bool val)
|
|
|
|
{
|
|
|
|
g_object_get (RawObject,
|
|
|
|
Marshal.StringToHGlobalAnsi (name),
|
|
|
|
out val, new IntPtr (0));
|
|
|
|
}
|
|
|
|
|
2002-01-12 02:08:16 +00:00
|
|
|
/// <summary>
|
|
|
|
/// GetProperty Method
|
|
|
|
/// </summary>
|
|
|
|
///
|
|
|
|
/// <remarks>
|
|
|
|
/// Accesses a double Property.
|
|
|
|
/// </remarks>
|
|
|
|
|
|
|
|
[DllImport("gobject-1.3.dll", CharSet=CharSet.Ansi,
|
|
|
|
CallingConvention=CallingConvention.Cdecl)]
|
|
|
|
static extern void g_object_get (IntPtr obj, IntPtr name,
|
|
|
|
out double val, IntPtr term);
|
|
|
|
|
|
|
|
public void GetProperty (String name, out double val)
|
|
|
|
{
|
|
|
|
g_object_get (RawObject,
|
|
|
|
Marshal.StringToHGlobalAnsi (name),
|
|
|
|
out val, new IntPtr (0));
|
|
|
|
}
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// GetProperty Method
|
|
|
|
/// </summary>
|
|
|
|
///
|
|
|
|
/// <remarks>
|
|
|
|
/// Accesses a float Property.
|
|
|
|
/// </remarks>
|
|
|
|
|
|
|
|
[DllImport("gobject-1.3.dll", CharSet=CharSet.Ansi,
|
|
|
|
CallingConvention=CallingConvention.Cdecl)]
|
|
|
|
static extern void g_object_get (IntPtr obj, IntPtr name,
|
|
|
|
out float val, IntPtr term);
|
|
|
|
|
|
|
|
public void GetProperty (String name, out float val)
|
|
|
|
{
|
|
|
|
g_object_get (RawObject,
|
|
|
|
Marshal.StringToHGlobalAnsi (name),
|
|
|
|
out val, new IntPtr (0));
|
|
|
|
}
|
|
|
|
|
2001-10-02 01:27:44 +00:00
|
|
|
/// <summary>
|
|
|
|
/// GetProperty Method
|
|
|
|
/// </summary>
|
|
|
|
///
|
|
|
|
/// <remarks>
|
|
|
|
/// Accesses an integer Property.
|
|
|
|
/// </remarks>
|
|
|
|
|
|
|
|
[DllImport("gobject-1.3.dll", CharSet=CharSet.Ansi,
|
|
|
|
CallingConvention=CallingConvention.Cdecl)]
|
|
|
|
static extern void g_object_get (IntPtr obj, IntPtr name,
|
|
|
|
out int val, IntPtr term);
|
|
|
|
|
|
|
|
public void GetProperty (String name, out int val)
|
|
|
|
{
|
|
|
|
g_object_get (RawObject,
|
|
|
|
Marshal.StringToHGlobalAnsi (name),
|
|
|
|
out val, new IntPtr (0));
|
|
|
|
}
|
|
|
|
|
2002-01-12 02:08:16 +00:00
|
|
|
/// <summary>
|
|
|
|
/// GetProperty Method
|
|
|
|
/// </summary>
|
|
|
|
///
|
|
|
|
/// <remarks>
|
|
|
|
/// Accesses an unsigned integer Property.
|
|
|
|
/// </remarks>
|
|
|
|
|
|
|
|
[DllImport("gobject-1.3.dll", CharSet=CharSet.Ansi,
|
|
|
|
CallingConvention=CallingConvention.Cdecl)]
|
|
|
|
static extern void g_object_get (IntPtr obj, IntPtr name,
|
|
|
|
out uint val, IntPtr term);
|
|
|
|
|
|
|
|
public void GetProperty (String name, out uint val)
|
|
|
|
{
|
|
|
|
g_object_get (RawObject,
|
|
|
|
Marshal.StringToHGlobalAnsi (name),
|
|
|
|
out val, new IntPtr (0));
|
|
|
|
}
|
|
|
|
|
2001-10-25 22:44:49 +00:00
|
|
|
/// <summary>
|
|
|
|
/// GetProperty Method
|
|
|
|
/// </summary>
|
|
|
|
///
|
|
|
|
/// <remarks>
|
|
|
|
/// Accesses an Object Property.
|
|
|
|
/// </remarks>
|
|
|
|
|
|
|
|
public void GetProperty (String name, out GLib.Object val)
|
|
|
|
{
|
|
|
|
IntPtr obj;
|
|
|
|
g_object_get (RawObject,
|
|
|
|
Marshal.StringToHGlobalAnsi (name),
|
|
|
|
out obj, new IntPtr (0));
|
|
|
|
val = GLib.Object.GetObject (obj);
|
|
|
|
}
|
|
|
|
|
2002-01-17 00:26:46 +00:00
|
|
|
/// <summary>
|
|
|
|
/// GetProperty Method
|
|
|
|
/// </summary>
|
|
|
|
///
|
|
|
|
/// <remarks>
|
|
|
|
/// Accesses a Boxed Property.
|
|
|
|
/// </remarks>
|
|
|
|
|
|
|
|
public void GetProperty (String name, out GtkSharp.Boxed val)
|
|
|
|
{
|
|
|
|
IntPtr raw;
|
|
|
|
g_object_get (RawObject,
|
|
|
|
Marshal.StringToHGlobalAnsi (name),
|
|
|
|
out raw, new IntPtr (0));
|
|
|
|
val = GtkSharp.Boxed.GetBoxed (raw);
|
|
|
|
}
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// GetProperty Method
|
|
|
|
/// </summary>
|
2002-01-12 02:08:16 +00:00
|
|
|
/// <summary>
|
|
|
|
/// GetProperty Method
|
|
|
|
/// </summary>
|
|
|
|
///
|
|
|
|
/// <remarks>
|
|
|
|
/// Accesses an IntPtr Property.
|
|
|
|
/// </remarks>
|
|
|
|
|
|
|
|
public void GetProperty (String name, out IntPtr val)
|
|
|
|
{
|
|
|
|
g_object_get (RawObject,
|
|
|
|
Marshal.StringToHGlobalAnsi (name),
|
|
|
|
out val, new IntPtr (0));
|
|
|
|
}
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// SetProperty Method
|
|
|
|
/// </summary>
|
2001-10-02 01:27:44 +00:00
|
|
|
/// <summary>
|
|
|
|
/// SetProperty Method
|
|
|
|
/// </summary>
|
|
|
|
///
|
|
|
|
/// <remarks>
|
|
|
|
/// Changes the value of a string Property.
|
|
|
|
/// </remarks>
|
|
|
|
|
|
|
|
[DllImport("gobject-1.3.dll", CharSet=CharSet.Ansi,
|
|
|
|
CallingConvention=CallingConvention.Cdecl)]
|
|
|
|
static extern void g_object_set (IntPtr obj, IntPtr name,
|
|
|
|
IntPtr val, IntPtr term);
|
|
|
|
|
|
|
|
public void SetProperty (String name, String val)
|
|
|
|
{
|
|
|
|
g_object_set (RawObject,
|
|
|
|
Marshal.StringToHGlobalAnsi (name),
|
|
|
|
Marshal.StringToHGlobalAnsi (val),
|
|
|
|
new IntPtr (0));
|
|
|
|
}
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// SetProperty Method
|
|
|
|
/// </summary>
|
|
|
|
///
|
|
|
|
/// <remarks>
|
|
|
|
/// Changes the value of an integer Property.
|
|
|
|
/// </remarks>
|
|
|
|
|
|
|
|
[DllImport("gobject-1.3.dll", CharSet=CharSet.Ansi,
|
|
|
|
CallingConvention=CallingConvention.Cdecl)]
|
|
|
|
static extern void g_object_set (IntPtr obj, IntPtr name,
|
|
|
|
int val, IntPtr term);
|
|
|
|
|
|
|
|
public void SetProperty (String name, int val)
|
|
|
|
{
|
|
|
|
g_object_set (RawObject,
|
|
|
|
Marshal.StringToHGlobalAnsi (name),
|
|
|
|
val, new IntPtr (0));
|
2001-09-28 18:23:14 +00:00
|
|
|
}
|
|
|
|
|
2002-01-12 02:08:16 +00:00
|
|
|
/// <summary>
|
|
|
|
/// SetProperty Method
|
|
|
|
/// </summary>
|
|
|
|
///
|
|
|
|
/// <remarks>
|
|
|
|
/// Changes the value of an unsigned integer Property.
|
|
|
|
/// </remarks>
|
|
|
|
|
|
|
|
[DllImport("gobject-1.3.dll", CharSet=CharSet.Ansi,
|
|
|
|
CallingConvention=CallingConvention.Cdecl)]
|
|
|
|
static extern void g_object_set (IntPtr obj, IntPtr name,
|
|
|
|
uint val, IntPtr term);
|
|
|
|
|
|
|
|
public void SetProperty (String name, uint val)
|
|
|
|
{
|
|
|
|
g_object_set (RawObject,
|
|
|
|
Marshal.StringToHGlobalAnsi (name),
|
|
|
|
val, new IntPtr (0));
|
|
|
|
}
|
|
|
|
|
2001-09-28 18:23:14 +00:00
|
|
|
/// <summary>
|
|
|
|
/// SetProperty Method
|
|
|
|
/// </summary>
|
|
|
|
///
|
|
|
|
/// <remarks>
|
2001-10-02 01:27:44 +00:00
|
|
|
/// Changes the value of a boolean Property.
|
2001-09-28 18:23:14 +00:00
|
|
|
/// </remarks>
|
|
|
|
|
2001-10-02 01:27:44 +00:00
|
|
|
[DllImport("gobject-1.3.dll", CharSet=CharSet.Ansi,
|
|
|
|
CallingConvention=CallingConvention.Cdecl)]
|
|
|
|
static extern void g_object_set (IntPtr obj, IntPtr name,
|
|
|
|
bool val, IntPtr term);
|
2001-09-28 18:23:14 +00:00
|
|
|
|
2001-10-02 01:27:44 +00:00
|
|
|
public void SetProperty (String name, bool val)
|
2001-09-28 18:23:14 +00:00
|
|
|
{
|
2001-10-02 01:27:44 +00:00
|
|
|
g_object_set (RawObject,
|
|
|
|
Marshal.StringToHGlobalAnsi (name),
|
|
|
|
val, new IntPtr (0));
|
2001-09-28 18:23:14 +00:00
|
|
|
}
|
|
|
|
|
2002-01-12 02:08:16 +00:00
|
|
|
/// <summary>
|
|
|
|
/// SetProperty Method
|
|
|
|
/// </summary>
|
|
|
|
///
|
|
|
|
/// <remarks>
|
|
|
|
/// Changes the value of a double Property.
|
|
|
|
/// </remarks>
|
|
|
|
|
|
|
|
[DllImport("gobject-1.3.dll", CharSet=CharSet.Ansi,
|
|
|
|
CallingConvention=CallingConvention.Cdecl)]
|
|
|
|
static extern void g_object_set (IntPtr obj, IntPtr name,
|
|
|
|
double val, IntPtr term);
|
|
|
|
|
|
|
|
public void SetProperty (String name, double val)
|
|
|
|
{
|
|
|
|
g_object_set (RawObject,
|
|
|
|
Marshal.StringToHGlobalAnsi (name),
|
|
|
|
val, new IntPtr (0));
|
|
|
|
}
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// SetProperty Method
|
|
|
|
/// </summary>
|
|
|
|
///
|
|
|
|
/// <remarks>
|
|
|
|
/// Changes the value of a float Property.
|
|
|
|
/// </remarks>
|
|
|
|
|
|
|
|
[DllImport("gobject-1.3.dll", CharSet=CharSet.Ansi,
|
|
|
|
CallingConvention=CallingConvention.Cdecl)]
|
|
|
|
static extern void g_object_set (IntPtr obj, IntPtr name,
|
|
|
|
float val, IntPtr term);
|
|
|
|
|
|
|
|
public void SetProperty (String name, float val)
|
|
|
|
{
|
|
|
|
g_object_set (RawObject,
|
|
|
|
Marshal.StringToHGlobalAnsi (name),
|
|
|
|
val, new IntPtr (0));
|
|
|
|
}
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// SetProperty Method
|
|
|
|
/// </summary>
|
|
|
|
///
|
|
|
|
/// <remarks>
|
|
|
|
/// Changes the value of an IntPtr Property.
|
|
|
|
/// </remarks>
|
|
|
|
|
|
|
|
public void SetProperty (String name, IntPtr val)
|
|
|
|
{
|
|
|
|
g_object_set (RawObject,
|
|
|
|
Marshal.StringToHGlobalAnsi (name),
|
|
|
|
val, new IntPtr (0));
|
|
|
|
}
|
|
|
|
|
2001-10-25 22:44:49 +00:00
|
|
|
/// <summary>
|
|
|
|
/// SetProperty Method
|
|
|
|
/// </summary>
|
|
|
|
///
|
|
|
|
/// <remarks>
|
|
|
|
/// Changes the value of an Object Property.
|
|
|
|
/// </remarks>
|
|
|
|
|
|
|
|
public void SetProperty (String name, GLib.Object val)
|
|
|
|
{
|
|
|
|
g_object_set (RawObject,
|
|
|
|
Marshal.StringToHGlobalAnsi (name),
|
|
|
|
val.Handle, new IntPtr (0));
|
|
|
|
}
|
|
|
|
|
2002-01-17 00:26:46 +00:00
|
|
|
/// <summary>
|
|
|
|
/// SetProperty Method
|
|
|
|
/// </summary>
|
|
|
|
///
|
|
|
|
/// <remarks>
|
|
|
|
/// Changes the value of a Boxed Property.
|
|
|
|
/// </remarks>
|
|
|
|
|
|
|
|
public void SetProperty (String name, GtkSharp.Boxed val)
|
|
|
|
{
|
|
|
|
g_object_set (RawObject,
|
|
|
|
Marshal.StringToHGlobalAnsi (name),
|
|
|
|
val.Raw, new IntPtr (0));
|
|
|
|
}
|
|
|
|
|
2001-10-25 22:44:49 +00:00
|
|
|
|
2001-09-27 17:17:33 +00:00
|
|
|
/*
|
|
|
|
[DllImport("gtk-1.3.dll")]
|
2001-09-19 04:47:48 +00:00
|
|
|
static extern void g_object_set_data_full (
|
2001-09-20 04:03:27 +00:00
|
|
|
IntPtr obj,
|
2001-09-19 04:47:48 +00:00
|
|
|
String key,
|
|
|
|
IntPtr data,
|
|
|
|
DestroyNotify destroy );
|
2001-09-19 02:04:57 +00:00
|
|
|
|
|
|
|
|
|
|
|
GParamSpec* g_object_class_find_property (GObjectClass *oclass,
|
|
|
|
const gchar *property_name);
|
|
|
|
GParamSpec** g_object_class_list_properties (GObjectClass *oclass,
|
|
|
|
guint *n_properties);
|
|
|
|
gpointer g_object_ref (gpointer object);
|
|
|
|
void g_object_unref (gpointer object);
|
|
|
|
void g_object_weak_ref (GObject *object,
|
|
|
|
GWeakNotify notify,
|
|
|
|
gpointer data);
|
|
|
|
void g_object_weak_unref (GObject *object,
|
|
|
|
GWeakNotify notify,
|
|
|
|
gpointer data);
|
|
|
|
void g_object_add_weak_pointer (GObject *object,
|
|
|
|
gpointer *weak_pointer_location);
|
|
|
|
void g_object_remove_weak_pointer (GObject *object,
|
|
|
|
gpointer *weak_pointer_location);
|
|
|
|
gpointer g_object_connect (gpointer object,
|
|
|
|
const gchar *signal_spec,
|
|
|
|
...);
|
|
|
|
void g_object_disconnect (gpointer object,
|
|
|
|
const gchar *signal_spec,
|
|
|
|
...);
|
|
|
|
void g_object_set (gpointer object,
|
|
|
|
const gchar *first_property_name,
|
|
|
|
...);
|
|
|
|
void g_object_get (gpointer object,
|
|
|
|
const gchar *first_property_name,
|
|
|
|
...);
|
|
|
|
void g_object_notify (GObject *object,
|
|
|
|
const gchar *property_name);
|
|
|
|
void g_object_freeze_notify (GObject *object);
|
|
|
|
void g_object_thaw_notify (GObject *object);
|
|
|
|
void g_object_set_data_full (GObject *object,
|
|
|
|
const gchar *key,
|
|
|
|
gpointer data,
|
|
|
|
GDestroyNotify destroy);
|
|
|
|
gpointer g_object_steal_data (GObject *object,
|
|
|
|
const gchar *key);
|
|
|
|
gpointer g_object_get_qdata (GObject *object,
|
|
|
|
GQuark quark);
|
|
|
|
void g_object_set_qdata (GObject *object,
|
|
|
|
GQuark quark,
|
|
|
|
gpointer data);
|
|
|
|
void g_object_set_qdata_full (GObject *object,
|
|
|
|
GQuark quark,
|
|
|
|
gpointer data,
|
|
|
|
GDestroyNotify destroy);
|
|
|
|
gpointer g_object_steal_qdata (GObject *object,
|
|
|
|
GQuark quark);
|
|
|
|
void g_object_watch_closure (GObject *object,
|
|
|
|
GClosure *closure);
|
|
|
|
void g_object_run_dispose (GObject *object);
|
|
|
|
*/
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|