2002-08-17 10:38:17 +00:00
|
|
|
//
|
2004-02-26 19:00:18 +00:00
|
|
|
// Gnome.PointHandler.cs
|
2002-08-17 10:38:17 +00:00
|
|
|
//
|
|
|
|
// Author: Duncan Mak (duncan@ximian.com)
|
|
|
|
//
|
|
|
|
// 2002 (C) Copyright, Ximian, Inc.
|
|
|
|
//
|
|
|
|
|
2004-02-26 19:00:18 +00:00
|
|
|
namespace Gnome {
|
2002-08-17 10:38:17 +00:00
|
|
|
|
|
|
|
using System;
|
|
|
|
|
|
|
|
public delegate void PointHandler(object o, PointArgs args);
|
|
|
|
|
2004-05-05 18:24:04 +00:00
|
|
|
public class PointArgs : GLib.SignalArgs {
|
2002-08-17 10:38:17 +00:00
|
|
|
|
|
|
|
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];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|