[Gtk-sharp-list] Point.custom patch

Martin Willemoes Hansen mwh@sysrq.dk
06 Feb 2003 09:28:38 +0100


--=-2swc6IuZOxlBsrY1DO2c
Content-Type: text/plain
Content-Transfer-Encoding: 7bit

I have updated my patch, adding documentation for it as well.

A constructor is added to Point, I have tested it this time and it
works.
-- 
Martin Willemoes Hansen

--------------------------------------------------------
E-Mail	mwh@sysrq.dk	Website	mwh.sysrq.dk
IRC     MWH, freenode.net	
--------------------------------------------------------               

--=-2swc6IuZOxlBsrY1DO2c
Content-Disposition: attachment; filename=Point.custom.diff
Content-Type: text/plain; name=Point.custom.diff; charset=ANSI_X3.4-1968
Content-Transfer-Encoding: 7bit

--- Point.custom	2003-02-06 09:25:39.000000000 +0100
+++ Point.custom.new	2003-02-06 09:04:13.000000000 +0100
@@ -1,19 +1,19 @@
 // Gdk.Point.custom - Gdk Point class customizations
 //
 // Author: Jasper van Putten <Jaspervp@gmx.net>
+// Author: Martin Willemoes Hansen <mwh@sysrq.dk>
 //
 // (c) 2002 Jasper van Putten
+// (c) 2003 Martin Willemoes Hansen
 //
 // This code is inserted after the automatically generated code.
 
-
 /// <summary>
-/// ToString method
+///    ToString method
 /// </summary>
 ///
 /// <remarks>
-/// returns a string representation of this point
-///
+///    returns a string representation of this point
 /// </remarks>
 
 public override string ToString ()
@@ -21,4 +21,17 @@
 	return String.Format ("({0},{1})", x, y);
 }
 
+/// <summary>
+///     Point Constructor
+/// </summary>
+/// 
+/// <remarks>
+///     Constructs a new Point with the specified
+///     coordinates.
+/// </remarks>
 
+public Point (int x, int y)
+{
+       this.x = x;
+       this.y = y;
+}

--=-2swc6IuZOxlBsrY1DO2c--