mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2024-12-25 01:55:39 +00:00
96ab93e0f6
* gnome/GtkSharp.* : move to Gnome namespace * gnome/CanvasProxy.cs : update event handler namespaces * gnome/voidObject*.cs : internalize svn path=/trunk/gtk-sharp/; revision=23496
58 lines
882 B
C#
58 lines
882 B
C#
//
|
|
// Gnome.PointHandler.cs
|
|
//
|
|
// Author: Duncan Mak (duncan@ximian.com)
|
|
//
|
|
// 2002 (C) Copyright, Ximian, Inc.
|
|
//
|
|
|
|
namespace Gnome {
|
|
|
|
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];
|
|
}
|
|
}
|
|
}
|
|
}
|