2002-08-17 10:38:17 +00:00
|
|
|
//
|
2004-02-26 19:00:18 +00:00
|
|
|
// Gnome.DrawHandler.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 DrawHandler(object o, DrawArgs args);
|
|
|
|
|
2004-05-05 18:24:04 +00:00
|
|
|
public class DrawArgs : GLib.SignalArgs {
|
2002-08-17 10:38:17 +00:00
|
|
|
|
|
|
|
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];
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|