Apply a modified version of a patch from Artemis <artemis@yandex.ru>, to fix and clean DrawPolygon and DrawLines in Gdk.Drawable.
svn path=/trunk/gtk-sharp/; revision=13133
This commit is contained in:
parent
03ebb1fcb3
commit
591c9eca8f
4 changed files with 69 additions and 6 deletions
|
@ -1,3 +1,11 @@
|
|||
2003-04-04 Lee Mallabone <gnome@fonicmonkey.net>
|
||||
|
||||
* gdk/Drawable.custom:
|
||||
* sources/Gdk.metadata:
|
||||
* api/gdk-api.xml: Apply a modified version of a patch from
|
||||
Artemis <artemis@yandex.ru>, to fix and clean DrawPolygon and
|
||||
DrawLines in Gdk.Drawable.
|
||||
|
||||
2003-04-02 Charles Iliya Krempeaux <charles@reptile.ca>
|
||||
* generator/SignalHandler.cs : Added Patch submitted by
|
||||
Mark Crichton <crichton@gimp.org>, to get GtkMozEmbed
|
||||
|
|
|
@ -757,11 +757,11 @@
|
|||
<parameter type="gint" name="y2"/>
|
||||
</parameters>
|
||||
</method>
|
||||
<method name="DrawLines" cname="gdk_draw_lines">
|
||||
<method name="DrawLines" cname="gdk_draw_lines" hidden="1">
|
||||
<return-type type="void"/>
|
||||
<parameters>
|
||||
<parameter type="GdkGC*" name="gc"/>
|
||||
<parameter type="GdkPoint*" name="points"/>
|
||||
<parameter type="GdkPoint*" name="points" array="1"/>
|
||||
<parameter type="gint" name="npoints"/>
|
||||
</parameters>
|
||||
</method>
|
||||
|
@ -781,12 +781,12 @@
|
|||
<parameter type="gint" name="npoints"/>
|
||||
</parameters>
|
||||
</method>
|
||||
<method name="DrawPolygon" cname="gdk_draw_polygon">
|
||||
<method name="DrawPolygon" cname="gdk_draw_polygon" hidden="1">
|
||||
<return-type type="void"/>
|
||||
<parameters>
|
||||
<parameter type="GdkGC*" name="gc"/>
|
||||
<parameter type="gint" name="filled"/>
|
||||
<parameter type="GdkPoint*" name="points"/>
|
||||
<parameter type="GdkPoint*" name="points" array="1"/>
|
||||
<parameter type="gint" name="npoints"/>
|
||||
</parameters>
|
||||
</method>
|
||||
|
@ -1502,8 +1502,8 @@
|
|||
<callback cname="child_func">
|
||||
<return-type type="gboolean"/>
|
||||
<parameters>
|
||||
<parameter type=" gboolean " name="child_func"/>
|
||||
<parameter type=" gboolean " name="child_func"/>
|
||||
<parameter type="" name=""/>
|
||||
<parameter type="" name=""/>
|
||||
</parameters>
|
||||
</callback>
|
||||
<parameter type="gpointer" name="user_data"/>
|
||||
|
|
|
@ -19,3 +19,20 @@ public void DrawRectangle(Gdk.GC gc, int 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);
|
||||
}
|
||||
|
||||
|
|
|
@ -28,6 +28,32 @@
|
|||
</data>
|
||||
</rule>
|
||||
|
||||
<rule>
|
||||
<class name="GdkDrawable">
|
||||
<method>DrawPolygon</method>
|
||||
</class>
|
||||
<data>
|
||||
<attribute target="param">
|
||||
<filter level="type">GdkPoint*</filter>
|
||||
<name>array</name>
|
||||
<value>1</value>
|
||||
</attribute>
|
||||
</data>
|
||||
</rule>
|
||||
|
||||
<rule>
|
||||
<class name="GdkDrawable">
|
||||
<method>DrawLines</method>
|
||||
</class>
|
||||
<data>
|
||||
<attribute target="param">
|
||||
<filter level="type">GdkPoint*</filter>
|
||||
<name>array</name>
|
||||
<value>1</value>
|
||||
</attribute>
|
||||
</data>
|
||||
</rule>
|
||||
|
||||
<!-- null args -->
|
||||
<rule>
|
||||
<class name="GdkPixmap">
|
||||
|
@ -145,6 +171,18 @@
|
|||
</rule>
|
||||
|
||||
<!-- hides -->
|
||||
<rule>
|
||||
<class name="GdkDrawable">
|
||||
<method>DrawPolygon</method>
|
||||
<method>DrawLines</method>
|
||||
</class>
|
||||
<data>
|
||||
<attribute target="method">
|
||||
<name>hidden</name>
|
||||
<value>1</value>
|
||||
</attribute>
|
||||
</data>
|
||||
</rule>
|
||||
<rule>
|
||||
<class name="GdkPixbuf">
|
||||
<method>AddAlpha</method>
|
||||
|
|
Loading…
Add table
Reference in a new issue