[prev in list] [next in list] [prev in thread] [next in thread]
List: mono-gtk-sharp-list
Subject: [Gtk-sharp-list] [Patch] Gdk.metadata + gdk/Drawable.custom
From: "Artemis" <artemis () yandex ! ru>
Date: 2003-03-31 7:15:13
Message-ID: 3E87EB01.000003.13479 () camay ! yandex ! ru
[Download RAW message or body]
These patches fix methods Drawable.DrawPolygon & Drawable.DrawLines
I'm not sure whether array hint should be 'array="1"' or 'array="true"'.
It looks like both ways work.
["Drawable.custom.diff" (Drawable.custom.diff)]
--- Drawable.custom~ 2003-02-28 10:54:01 +0600
+++ Drawable.custom 2003-03-20 12:19:15 +0600
@@ -19,3 +19,13 @@
{
gdk_draw_rectangle(Handle, gc.Handle, filled, area.x, area.y, area.width, area.height);
}
+
+public void DrawPolygon(Gdk.GC gc, int filled, Gdk.Point[] points)
+{
+ gdk_draw_polygon(Handle, gc.Handle, filled, points, points.Length);
+}
+
+public void DrawLines(Gdk.GC gc, Gdk.Point[] points)
+{
+ gdk_draw_lines(Handle, gc.Handle, points, points.Length);
+}
["Gdk.metadata.diff" (Gdk.metadata.diff)]
--- Gdk.metadata~ 2003-03-16 11:52:58 +0600
+++ Gdk.metadata 2003-03-31 12:30:02 +0700
@@ -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">
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic