2003-10-27 Moritz Balz <verteiler@mbalz.de>

* gdk/Drawable.custom : add a S.D.Rectangle overload for DrawRect.

svn path=/trunk/gtk-sharp/; revision=19425
This commit is contained in:
Mike Kestner 2003-10-27 20:00:15 +00:00
parent 737717e5a5
commit e65f1814c0
2 changed files with 9 additions and 0 deletions

View file

@ -1,3 +1,7 @@
2003-10-27 Moritz Balz <verteiler@mbalz.de>
* gdk/Drawable.custom : add a S.D.Rectangle overload for DrawRect.
2003-10-26 Martin Willemoes Hansen <mwh@sysrq.dk>
* gtk/Gtk.metadata: Added the rest of sources/Gtk.metadata

View file

@ -20,6 +20,11 @@ public void DrawRectangle(Gdk.GC gc, bool filled, Gdk.Rectangle area)
gdk_draw_rectangle(Handle, gc.Handle, filled, area.x, area.y, area.width, area.height);
}
public void DrawRectangle(Gdk.GC gc, bool filled, System.Drawing.Rectangle area)
{
gdk_draw_rectangle(Handle, gc.Handle, filled, area.X, area.Y, area.Width, area.Height);
}
[DllImport("libgdk-win32-2.0-0.dll")]
static extern void gdk_draw_polygon(IntPtr raw, IntPtr gc, int filled, Gdk.Point[] points, int npoints);