comparison dwt/graphics/Point.d @ 35:7d135fe0caf2

Ported dwt.graphics.Cursor and dwt.widgets.MenuItem
author Jacob Carlborg <doob@me.com> <jacob.carlborg@gmail.com>
date Sun, 14 Sep 2008 23:32:29 +0200
parents 965ac0a77267
children d8635bb48c7c
comparison
equal deleted inserted replaced
34:5123b17c98ef 35:7d135fe0caf2
76 * @param object the object to compare with this object 76 * @param object the object to compare with this object
77 * @return <code>true</code> if the object is the same as this object and <code>false</code> otherwise 77 * @return <code>true</code> if the object is the same as this object and <code>false</code> otherwise
78 * 78 *
79 * @see #hashCode() 79 * @see #hashCode()
80 */ 80 */
81 public bool opEquals (Object object) { 81 public int opEquals (Object object) {
82 if (object is this) return true; 82 if (object is this) return true;
83 if (!( null !is cast(Point)object )) return false; 83 if (!( null !is cast(Point)object )) return false;
84 Point p = cast(Point)object; 84 Point p = cast(Point)object;
85 return (p.x is this.x) && (p.y is this.y); 85 return (p.x is this.x) && (p.y is this.y);
86 } 86 }