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:
parent
a8b81fb34d
commit
b06ff13450
4 changed files with 39 additions and 3 deletions
|
@ -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>
|
2004-08-20 Mike Kestner <mkestner@ximian.com>
|
||||||
|
|
||||||
* atk/Atk.metadata : mark an array param on Relation ctor.
|
* atk/Atk.metadata : mark an array param on Relation ctor.
|
||||||
|
|
|
@ -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>
|
2004-08-22 Shane Landrum <epicene@pobox.com>
|
||||||
|
|
||||||
* en/Gtk/RowActivatedArgs.xml
|
* en/Gtk/RowActivatedArgs.xml
|
||||||
|
|
|
@ -440,11 +440,11 @@
|
||||||
<Parameter Name="points" Type="Gdk.Point[]" />
|
<Parameter Name="points" Type="Gdk.Point[]" />
|
||||||
</Parameters>
|
</Parameters>
|
||||||
<Docs>
|
<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="gc">a <see cref="T:Gdk.GC" /></param>
|
||||||
<param name="filled">a <see cref="T:System.Int32" /></param>
|
<param name="filled">a <see cref="T:System.Int32" /></param>
|
||||||
<param name="points">a <see cref="T:Gdk.Point[]" /></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>
|
</Docs>
|
||||||
</Member>
|
</Member>
|
||||||
<Member MemberName="DrawRectangle">
|
<Member MemberName="DrawRectangle">
|
||||||
|
@ -800,5 +800,25 @@
|
||||||
<remarks>To be added</remarks>
|
<remarks>To be added</remarks>
|
||||||
</Docs>
|
</Docs>
|
||||||
</Member>
|
</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>
|
</Members>
|
||||||
</Type>
|
</Type>
|
||||||
|
|
|
@ -27,11 +27,17 @@ public void DrawRectangle(Gdk.GC gc, bool filled, Gdk.Rectangle area)
|
||||||
[DllImport("libgdk-win32-2.0-0.dll")]
|
[DllImport("libgdk-win32-2.0-0.dll")]
|
||||||
static extern void gdk_draw_polygon(IntPtr raw, IntPtr gc, int filled, Gdk.Point[] points, int npoints);
|
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)
|
public void DrawPolygon(Gdk.GC gc, int filled, Gdk.Point[] points)
|
||||||
{
|
{
|
||||||
gdk_draw_polygon(Handle, gc.Handle, filled, points, points.Length);
|
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")]
|
[DllImport("libgdk-win32-2.0-0.dll")]
|
||||||
static extern void gdk_draw_lines(IntPtr raw, IntPtr gc, Gdk.Point[] points, int npoints);
|
static extern void gdk_draw_lines(IntPtr raw, IntPtr gc, Gdk.Point[] points, int npoints);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue