GtkSharp/gnome/GtkSharp.PointHandler.cs
Duncan Mak d58e384ec1 2002-08-17 Duncan Mak <duncan@ximian.com>
* gnome/CanvasProxy.cs:
	* gnome/GtkSharp.BoundsHandler.cs:
	* gnome/GtkSharp.DrawHandler.cs:
	* gnome/GtkSharp.PointHandler.cs:
	* gnome/GtkSharp.RenderHandler.cs:
	* gnome/GtkSharp.UpdateHandler.cs: C# glue for subclassing CanvasItems.

	* glue/canvas-proxy-marshal.c:
	* glue/canvas-proxy-marshal.h:
	* glue/canvas-proxy-marshal.list:
	* glue/canvas-proxy.c: Added the coverage signal.

svn path=/trunk/gtk-sharp/; revision=6708
2002-08-17 10:38:17 +00:00

57 lines
888 B
C#

//
// GtkSharp.PointHandler.cs
//
// Author: Duncan Mak (duncan@ximian.com)
//
// 2002 (C) Copyright, Ximian, Inc.
//
namespace GtkSharp {
using System;
/// <summary> PointHandler Delegate </summary>
/// <remarks>
/// Delegate signature for Point Event handlers
/// </remarks>
public delegate void PointHandler(object o, PointArgs args);
/// <summary> PointArgs Class </summary>
/// <remarks>
/// Arguments for Point Event handlers
/// </remarks>
public class PointArgs : GtkSharp.SignalArgs {
public double X {
get {
return (double) Args [0];
}
}
public double Y {
get {
return (double) Args [1];
}
}
public int CX {
get {
return (int) Args [2];
}
}
public int CY {
get {
return (int) Args [3];
}
}
public Gnome.CanvasItem [] ActualItem {
get {
return (Gnome.CanvasItem []) Args [4];
}
}
}
}