Mercurial > projects > dwt-mac
comparison dwt/graphics/FontData.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 |
---|---|
213 * @param object the object to compare with this object | 213 * @param object the object to compare with this object |
214 * @return <code>true</code> if the object is the same as this object and <code>false</code> otherwise | 214 * @return <code>true</code> if the object is the same as this object and <code>false</code> otherwise |
215 * | 215 * |
216 * @see #hashCode | 216 * @see #hashCode |
217 */ | 217 */ |
218 public bool opEquals (Object object) { | 218 public int opEquals (Object object) { |
219 if (object is this) return true; | 219 if (object is this) return true; |
220 if (!( null !is cast(FontData)object )) return false; | 220 if (!( null !is cast(FontData)object )) return false; |
221 FontData data = cast(FontData)object; | 221 FontData data = cast(FontData)object; |
222 return name.equals(data.name) && height is data.height && style is data.style; | 222 return name.equals(data.name) && height is data.height && style is data.style; |
223 } | 223 } |