mirror of
https://github.com/Ryujinx/GtkSharp.git
synced 2024-09-09 00:13:20 +02:00
![Mike Kestner](/assets/img/avatar_default.png)
* */Makefile.am : automakify the build * */Makefile.in : kill * *.custom : remove System.Drawing dependencies * *.cs : remove System.Drawing dependencies * *-api.xml : mv to *-api.raw * glue/* : mv to lib specific gluelibs for glib, gdk, gtk, and glade. * gtk/gtk-symbols : alias GtkType to GType * sources/gtk-sharp-sources.xml : create .raw files. They are now transformed to .xml files by the metadata compilation step. svn path=/trunk/gtk-sharp/; revision=23967
29 lines
884 B
Plaintext
29 lines
884 B
Plaintext
// Gdk.Drawble.custom - Gdk Drawble class customizations
|
|
//
|
|
// Author: Pedro Abelleira Seco <pedroabelleira@yahoo.es>
|
|
//
|
|
// This code is inserted after the automatically generated code.
|
|
|
|
|
|
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);
|
|
}
|
|
|
|
[DllImport("libgdk-win32-2.0-0.dll")]
|
|
static extern void gdk_draw_polygon(IntPtr raw, IntPtr gc, int filled, Gdk.Point[] points, int npoints);
|
|
|
|
public void DrawPolygon(Gdk.GC gc, int filled, Gdk.Point[] points)
|
|
{
|
|
gdk_draw_polygon(Handle, gc.Handle, filled, points, points.Length);
|
|
}
|
|
|
|
[DllImport("libgdk-win32-2.0-0.dll")]
|
|
static extern void gdk_draw_lines(IntPtr raw, IntPtr gc, Gdk.Point[] points, int npoints);
|
|
|
|
public void DrawLines(Gdk.GC gc, Gdk.Point[] points)
|
|
{
|
|
gdk_draw_lines(Handle, gc.Handle, points, points.Length);
|
|
}
|
|
|