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 ()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
2004-02-26 19:00:18 +00:00
|
|
|
public event UpdateHandler Update {
|
2002-08-17 10:38:17 +00:00
|
|
|
add {
|
2004-03-16 19:43:04 +00:00
|
|
|
if (AfterHandlers["update"] == null)
|
|
|
|
AfterSignals["update"] = new GtkSharp.voidObjectAffineSVPintSignal(this, Handle, "update", value, System.Type.GetType("EventArgs"));
|
|
|
|
AfterHandlers.AddHandler("update", value);
|
2002-08-17 10:38:17 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
remove {
|
2004-03-16 19:43:04 +00:00
|
|
|
AfterHandlers.RemoveHandler ("update", value);
|
|
|
|
if (AfterHandlers ["update"] == null)
|
|
|
|
AfterSignals.Remove ("update");
|
2002-08-17 10:38:17 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public event EventHandler Realize {
|
|
|
|
add {
|
2004-03-16 19:43:04 +00:00
|
|
|
if (AfterHandlers["realize"] == null)
|
|
|
|
AfterSignals["realize"] = new GnomeSharp.voidObjectSignal(this, Handle, "realize", value, System.Type.GetType("EventArgs"), 1);
|
|
|
|
AfterHandlers.AddHandler("realize", value);
|
2002-08-17 10:38:17 +00:00
|
|
|
}
|
|
|
|
remove {
|
2004-03-16 19:43:04 +00:00
|
|
|
AfterHandlers.RemoveHandler("realize", value);
|
|
|
|
if (AfterHandlers["realize"] == null)
|
|
|
|
AfterSignals.Remove("realize");
|
2002-08-17 10:38:17 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public event EventHandler Unrealize {
|
|
|
|
add {
|
2004-03-16 19:43:04 +00:00
|
|
|
if (AfterHandlers["unrealize"] == null)
|
|
|
|
AfterSignals["unrealize"] = new GnomeSharp.voidObjectSignal(this, Handle, "unrealize", value, System.Type.GetType("EventArgs"), 1);
|
|
|
|
AfterHandlers.AddHandler("unrealize", value);
|
2002-08-17 10:38:17 +00:00
|
|
|
}
|
|
|
|
remove {
|
2004-03-16 19:43:04 +00:00
|
|
|
AfterHandlers.RemoveHandler("unrealize", value);
|
|
|
|
if (AfterHandlers["unrealize"] == null)
|
|
|
|
AfterSignals.Remove("unrealize");
|
2002-08-17 10:38:17 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public event EventHandler Map {
|
|
|
|
add {
|
2004-03-16 19:43:04 +00:00
|
|
|
if (AfterHandlers["map"] == null)
|
|
|
|
AfterSignals["map"] = new GnomeSharp.voidObjectSignal(this, Handle, "map", value, System.Type.GetType("EventArgs"), 1);
|
|
|
|
AfterHandlers.AddHandler("map", value);
|
2002-08-17 10:38:17 +00:00
|
|
|
}
|
|
|
|
remove {
|
2004-03-16 19:43:04 +00:00
|
|
|
AfterHandlers.RemoveHandler("map", value);
|
|
|
|
if (AfterHandlers["map"] == null)
|
|
|
|
AfterSignals.Remove("map");
|
2002-08-17 10:38:17 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public event EventHandler Unmap {
|
|
|
|
add {
|
2004-03-16 19:43:04 +00:00
|
|
|
if (AfterHandlers["unmap"] == null)
|
|
|
|
AfterSignals["unmap"] = new GnomeSharp.voidObjectSignal(this, Handle, "unmap", value, System.Type.GetType("EventArgs"), 1);
|
|
|
|
AfterHandlers.AddHandler("unmap", value);
|
2002-08-17 10:38:17 +00:00
|
|
|
}
|
|
|
|
remove {
|
2004-03-16 19:43:04 +00:00
|
|
|
AfterHandlers.RemoveHandler("unmap", value);
|
|
|
|
if (AfterHandlers["unmap"] == null)
|
|
|
|
AfterSignals.Remove("unmap");
|
2002-08-17 10:38:17 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
public event EventHandler Coverage {
|
|
|
|
add {
|
|
|
|
throw new NotImplementedException ();
|
|
|
|
}
|
|
|
|
|
|
|
|
remove {
|
2004-03-16 19:43:04 +00:00
|
|
|
AfterHandlers.RemoveHandler ("coverage", value);
|
|
|
|
if (AfterHandlers ["coverage"] == null)
|
|
|
|
AfterSignals.Remove ("coverage");
|
2002-08-17 10:38:17 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
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 {
|
2004-03-16 19:43:04 +00:00
|
|
|
AfterHandlers.RemoveHandler ("draw", value);
|
|
|
|
if (AfterHandlers ["draw"] == null)
|
|
|
|
AfterSignals.Remove ("draw");
|
2002-08-17 10:38:17 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
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 {
|
2004-03-16 19:43:04 +00:00
|
|
|
AfterHandlers.RemoveHandler ("render", value);
|
|
|
|
if (AfterHandlers ["render"] == null)
|
|
|
|
AfterSignals.Remove ("render");
|
2002-08-17 10:38:17 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
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 {
|
2004-03-16 19:43:04 +00:00
|
|
|
AfterHandlers.RemoveHandler ("point", value);
|
|
|
|
if (AfterHandlers ["point"] == null)
|
|
|
|
AfterSignals.Remove ("point");
|
2002-08-17 10:38:17 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
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 {
|
2004-03-16 19:43:04 +00:00
|
|
|
AfterHandlers.RemoveHandler ("bounds", value);
|
|
|
|
if (AfterHandlers ["bounds"] == null)
|
|
|
|
AfterSignals.Remove ("bounds");
|
2002-08-17 10:38:17 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|