2002-08-17 10:38:17 +00:00
|
|
|
//
|
|
|
|
// CanvasProxy.cs - For subclassing CanvasItems
|
|
|
|
//
|
|
|
|
// Author: Duncan Mak (duncan@ximian.com)
|
|
|
|
//
|
|
|
|
// 2002 (C) Copyright, Ximian, Inc.
|
|
|
|
//
|
|
|
|
|
|
|
|
using System;
|
2002-08-20 23:43:16 +00:00
|
|
|
using System.Collections;
|
2002-08-17 10:38:17 +00:00
|
|
|
|
|
|
|
namespace Gnome {
|
|
|
|
|
|
|
|
public class CanvasProxy : Gnome.CanvasItem
|
|
|
|
{
|
|
|
|
public CanvasProxy (IntPtr raw)
|
|
|
|
: base (raw)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
protected CanvasProxy () : base ()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2002-08-20 23:43:16 +00:00
|
|
|
private Hashtable Signals = new Hashtable ();
|
|
|
|
|
2004-02-26 19:00:18 +00:00
|
|
|
public event UpdateHandler Update {
|
2002-08-17 10:38:17 +00:00
|
|
|
add {
|
2002-09-30 02:21:06 +00:00
|
|
|
if (EventList["update"] == null)
|
2003-02-12 01:44:35 +00:00
|
|
|
Signals["update"] = new GtkSharp.voidObjectAffineSVPintSignal(this, Handle, "update", value, System.Type.GetType("EventArgs"));
|
2002-09-30 02:21:06 +00:00
|
|
|
EventList.AddHandler("update", value);
|
2002-08-17 10:38:17 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
remove {
|
|
|
|
EventList.RemoveHandler ("update", value);
|
|
|
|
if (EventList ["update"] == null)
|
|
|
|
Signals.Remove ("update");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public event EventHandler Realize {
|
|
|
|
add {
|
|
|
|
if (EventList["realize"] == null)
|
2003-05-08 04:44:13 +00:00
|
|
|
Signals["realize"] = new GnomeSharp.voidObjectSignal(this, Handle, "realize", value, System.Type.GetType("EventArgs"));
|
2002-08-17 10:38:17 +00:00
|
|
|
EventList.AddHandler("realize", value);
|
|
|
|
}
|
|
|
|
remove {
|
|
|
|
EventList.RemoveHandler("realize", value);
|
|
|
|
if (EventList["realize"] == null)
|
|
|
|
Signals.Remove("realize");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public event EventHandler Unrealize {
|
|
|
|
add {
|
|
|
|
if (EventList["unrealize"] == null)
|
2003-05-08 04:44:13 +00:00
|
|
|
Signals["unrealize"] = new GnomeSharp.voidObjectSignal(this, Handle, "unrealize", value, System.Type.GetType("EventArgs"));
|
2002-08-17 10:38:17 +00:00
|
|
|
EventList.AddHandler("unrealize", value);
|
|
|
|
}
|
|
|
|
remove {
|
|
|
|
EventList.RemoveHandler("unrealize", value);
|
|
|
|
if (EventList["unrealize"] == null)
|
|
|
|
Signals.Remove("unrealize");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public event EventHandler Map {
|
|
|
|
add {
|
|
|
|
if (EventList["map"] == null)
|
2003-05-08 04:44:13 +00:00
|
|
|
Signals["map"] = new GnomeSharp.voidObjectSignal(this, Handle, "map", value, System.Type.GetType("EventArgs"));
|
2002-08-17 10:38:17 +00:00
|
|
|
EventList.AddHandler("map", value);
|
|
|
|
}
|
|
|
|
remove {
|
|
|
|
EventList.RemoveHandler("map", value);
|
|
|
|
if (EventList["map"] == null)
|
|
|
|
Signals.Remove("map");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public event EventHandler Unmap {
|
|
|
|
add {
|
|
|
|
if (EventList["unmap"] == null)
|
2003-05-08 04:44:13 +00:00
|
|
|
Signals["unmap"] = new GnomeSharp.voidObjectSignal(this, Handle, "unmap", value, System.Type.GetType("EventArgs"));
|
2002-08-17 10:38:17 +00:00
|
|
|
EventList.AddHandler("unmap", value);
|
|
|
|
}
|
|
|
|
remove {
|
|
|
|
EventList.RemoveHandler("unmap", value);
|
|
|
|
if (EventList["unmap"] == null)
|
|
|
|
Signals.Remove("unmap");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public event EventHandler Coverage {
|
|
|
|
add {
|
|
|
|
throw new NotImplementedException ();
|
|
|
|
}
|
|
|
|
|
|
|
|
remove {
|
|
|
|
EventList.RemoveHandler ("coverage", value);
|
|
|
|
if (EventList ["coverage"] == null)
|
|
|
|
Signals.Remove ("coverage");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2004-02-26 19:00:18 +00:00
|
|
|
public event DrawHandler Draw {
|
2002-08-17 10:38:17 +00:00
|
|
|
add {
|
|
|
|
throw new NotImplementedException ();
|
|
|
|
}
|
|
|
|
|
|
|
|
remove {
|
|
|
|
EventList.RemoveHandler ("draw", value);
|
|
|
|
if (EventList ["draw"] == null)
|
|
|
|
Signals.Remove ("draw");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2004-02-26 19:00:18 +00:00
|
|
|
public event RenderHandler Render {
|
2002-08-17 10:38:17 +00:00
|
|
|
add {
|
|
|
|
throw new NotImplementedException ();
|
|
|
|
}
|
|
|
|
|
|
|
|
remove {
|
|
|
|
EventList.RemoveHandler ("render", value);
|
|
|
|
if (EventList ["render"] == null)
|
|
|
|
Signals.Remove ("render");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2004-02-26 19:00:18 +00:00
|
|
|
public event PointHandler Point {
|
2002-08-17 10:38:17 +00:00
|
|
|
add {
|
|
|
|
throw new NotImplementedException ();
|
|
|
|
}
|
|
|
|
|
|
|
|
remove {
|
|
|
|
EventList.RemoveHandler ("point", value);
|
|
|
|
if (EventList ["point"] == null)
|
|
|
|
Signals.Remove ("point");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2004-02-26 19:00:18 +00:00
|
|
|
public event BoundsHandler Bounds {
|
2002-08-17 10:38:17 +00:00
|
|
|
add {
|
|
|
|
throw new NotImplementedException ();
|
|
|
|
}
|
|
|
|
|
|
|
|
remove {
|
|
|
|
EventList.RemoveHandler ("bounds", value);
|
|
|
|
if (EventList ["bounds"] == null)
|
|
|
|
Signals.Remove ("bounds");
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|