2004-08-24 Mike Kestner <mkestner@ximian.com>

* gdk/Drawable.custom : add a DrawPolygon overload with bool filled
	and mark the old int filled overload Obsolete.
	[Fixes #60702]

svn path=/trunk/gtk-sharp/; revision=32779
This commit is contained in:
Mike Kestner 2004-08-24 18:52:47 +00:00
parent a8b81fb34d
commit b06ff13450
4 changed files with 39 additions and 3 deletions

View File

@ -1,3 +1,9 @@
2004-08-24 Mike Kestner <mkestner@ximian.com>
* gdk/Drawable.custom : add a DrawPolygon overload with bool filled
and mark the old int filled overload Obsolete.
[Fixes #60702]
2004-08-20 Mike Kestner <mkestner@ximian.com>
* atk/Atk.metadata : mark an array param on Relation ctor.

View File

@ -1,3 +1,7 @@
2004-08-24 Mike Kestner <mkestner@ximian.com>
* en/Gdk/Drawable.xml : add DrawPolygon overload and doc both.
2004-08-22 Shane Landrum <epicene@pobox.com>
* en/Gtk/RowActivatedArgs.xml

View File

@ -440,11 +440,11 @@
<Parameter Name="points" Type="Gdk.Point[]" />
</Parameters>
<Docs>
<summary>To be added</summary>
<summary>Draws a Polygon connecting a set of points.</summary>
<param name="gc">a <see cref="T:Gdk.GC" /></param>
<param name="filled">a <see cref="T:System.Int32" /></param>
<param name="points">a <see cref="T:Gdk.Point[]" /></param>
<remarks>To be added</remarks>
<remarks>This method is obsolete. Use the overload which takes a <see cref="T:System.Boolean" /> for <paramref name='filled'/></remarks>
</Docs>
</Member>
<Member MemberName="DrawRectangle">
@ -800,5 +800,25 @@
<remarks>To be added</remarks>
</Docs>
</Member>
<Member MemberName="DrawPolygon">
<MemberSignature Language="C#" Value="public void DrawPolygon (Gdk.GC gc, bool filled, Gdk.Point[] points);" />
<MemberType>Method</MemberType>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="gc" Type="Gdk.GC" />
<Parameter Name="filled" Type="System.Boolean" />
<Parameter Name="points" Type="Gdk.Point[]" />
</Parameters>
<Docs>
<summary>Draws a Polygon connecting a set of points.</summary>
<param name="gc">a <see cref="T:Gdk.GC" /></param>
<param name="filled">a <see cref="T:System.Boolean" /></param>
<param name="points">a <see cref="T:Gdk.Point" /></param>
<remarks>
</remarks>
</Docs>
</Member>
</Members>
</Type>
</Type>

View File

@ -27,11 +27,17 @@ public void DrawRectangle(Gdk.GC gc, bool filled, Gdk.Rectangle area)
[DllImport("libgdk-win32-2.0-0.dll")]
static extern void gdk_draw_polygon(IntPtr raw, IntPtr gc, int filled, Gdk.Point[] points, int npoints);
[Obsolete]
public void DrawPolygon(Gdk.GC gc, int filled, Gdk.Point[] points)
{
gdk_draw_polygon(Handle, gc.Handle, filled, points, points.Length);
}
public void DrawPolygon(Gdk.GC gc, bool filled, Gdk.Point[] points)
{
gdk_draw_polygon(Handle, gc.Handle, filled ? 1 : 0, 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);