GtkSharp/gnome/GtkSharp.DrawHandler.cs
Mike Kestner 01acd7f576 2004-05-05 Mike Kestner <mkestner@ximian.com>
* generator/Signal.cs : rmv Handle param to SignalCallback ctor calls.
	s/GtkSharp.Signal*/GLib.Signal*.
	* generator/SignalHandler.cs : rmv Handle param to ctors as it's
	redundant.  s/GtkSharp.Signal*/GLib.Signal*. Use new Connect/Disconnect
	instead of generating DllImports into libgobject directly.
	* glib/SignalArgs.cs : move the the GLib namespace.
	* glib/SignalCallback.cs : expose Connect and Disconnect methods to
	hide some pinvokes that were previously generated. Also move to the
	GLib namespace.
	gnome/*Handler.cs : update to new SignalHandler API.
	gnome/CanvasProxy.cs : ditto
	gnome/void*Signal.cs : ditto

svn path=/trunk/gtk-sharp/; revision=26778
2004-05-05 18:24:04 +00:00

48 lines
610 B
C#

//
// Gnome.DrawHandler.cs
//
// Author: Duncan Mak (duncan@ximian.com)
//
// 2002 (C) Copyright, Ximian, Inc.
//
namespace Gnome {
using System;
public delegate void DrawHandler(object o, DrawArgs args);
public class DrawArgs : GLib.SignalArgs {
public Gdk.Drawable Drawable {
get {
return (Gdk.Drawable) Args [0];
}
}
public int X {
get {
return (int) Args [1];
}
}
public int Y {
get {
return (int) Args [2];
}
}
public int Width {
get {
return (int) Args [3];
}
}
public int Height {
get {
return (int) Args [4];
}
}
}
}