From 3b905a607cff7cd07074b50475d064e288c3f3c5 Mon Sep 17 00:00:00 2001 From: Martin Willemoes Hansen Date: Fri, 7 Feb 2003 16:05:20 +0000 Subject: [PATCH] * Added a constructor to gdk/Point.custom svn path=/trunk/gtk-sharp/; revision=11316 --- ChangeLog | 3 +++ gdk/Point.custom | 21 +++++++++++++++++---- 2 files changed, 20 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index 7835178c1..5760fe1be 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,6 @@ +2003-02-07 Martin Willemoes Hansen + * Added a constructor to gdk/Point.custom + 2003-02-06 Duncan Mak * sources/Gtk.metadata: Correct the metadata for the HTMLStream diff --git a/gdk/Point.custom b/gdk/Point.custom index 329e6d0c4..0914dea2a 100644 --- a/gdk/Point.custom +++ b/gdk/Point.custom @@ -1,19 +1,19 @@ // Gdk.Point.custom - Gdk Point class customizations // // Author: Jasper van Putten +// Author: Martin Willemoes Hansen // // (c) 2002 Jasper van Putten +// (c) 2003 Martin Willemoes Hansen // // This code is inserted after the automatically generated code. - /// -/// ToString method +/// ToString method /// /// /// -/// returns a string representation of this point -/// +/// returns a string representation of this point /// public override string ToString () @@ -21,4 +21,17 @@ public override string ToString () return String.Format ("({0},{1})", x, y); } +/// +/// Point Constructor +/// +/// +/// +/// Constructs a new Point with the specified +/// coordinates. +/// +public Point (int x, int y) +{ + this.x = x; + this.y = y; +}