comparison dwt/graphics/GlyphMetrics.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 b9226997409c
children d8635bb48c7c
comparison
equal deleted inserted replaced
34:5123b17c98ef 35:7d135fe0caf2
80 * @param object the object to compare with this object 80 * @param object the object to compare with this object
81 * @return <code>true</code> if the object is the same as this object and <code>false</code> otherwise 81 * @return <code>true</code> if the object is the same as this object and <code>false</code> otherwise
82 * 82 *
83 * @see #hashCode() 83 * @see #hashCode()
84 */ 84 */
85 public bool opEquals (Object object) { 85 public int opEquals (Object object) {
86 if (object is this) return true; 86 if (object is this) return true;
87 if (!( null !is cast(GlyphMetrics)object )) return false; 87 if (!( null !is cast(GlyphMetrics)object )) return false;
88 GlyphMetrics metrics = cast(GlyphMetrics)object; 88 GlyphMetrics metrics = cast(GlyphMetrics)object;
89 return metrics.ascent is ascent && metrics.descent is descent && metrics.width is width; 89 return metrics.ascent is ascent && metrics.descent is descent && metrics.width is width;
90 } 90 }