Mercurial > projects > dwt-mac
comparison dwt/graphics/Rectangle.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 | 93b13b15f0b1 |
children | db5a898b2119 |
comparison
equal
deleted
inserted
replaced
34:5123b17c98ef | 35:7d135fe0caf2 |
---|---|
153 * @param object the object to compare with this object | 153 * @param object the object to compare with this object |
154 * @return <code>true</code> if the object is the same as this object and <code>false</code> otherwise | 154 * @return <code>true</code> if the object is the same as this object and <code>false</code> otherwise |
155 * | 155 * |
156 * @see #hashCode() | 156 * @see #hashCode() |
157 */ | 157 */ |
158 public bool opEquals (Object object) { | 158 public int opEquals (Object object) { |
159 if (object is this) return true; | 159 if (object is this) return true; |
160 if (!( null !is cast(Rectangle)object )) return false; | 160 if (!( null !is cast(Rectangle)object )) return false; |
161 Rectangle r = cast(Rectangle)object; | 161 Rectangle r = cast(Rectangle)object; |
162 return (r.x is this.x) && (r.y is this.y) && (r.width is this.width) && (r.height is this.height); | 162 return (r.x is this.x) && (r.y is this.y) && (r.width is this.width) && (r.height is this.height); |
163 } | 163 } |