mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2024-12-25 16:45:34 +00:00
d58e384ec1
* 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
58 lines
859 B
C#
58 lines
859 B
C#
//
|
|
// GtkSharp.DrawHandler.cs
|
|
//
|
|
// Author: Duncan Mak (duncan@ximian.com)
|
|
//
|
|
// 2002 (C) Copyright, Ximian, Inc.
|
|
//
|
|
|
|
namespace GtkSharp {
|
|
|
|
using System;
|
|
|
|
/// <summary> DrawHandler Delegate </summary>
|
|
/// <remarks>
|
|
/// Delegate signature for Draw Event handlers
|
|
/// </remarks>
|
|
|
|
public delegate void DrawHandler(object o, DrawArgs args);
|
|
|
|
/// <summary> DrawArgs Class </summary>
|
|
/// <remarks>
|
|
/// Arguments for Draw Event handlers
|
|
/// </remarks>
|
|
|
|
public class DrawArgs : GtkSharp.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];
|
|
}
|
|
}
|
|
}
|
|
}
|