Mercurial > projects > dwt2
comparison org.eclipse.swt.gtk.linux.x86/src/org/eclipse/swt/graphics/FontMetrics.d @ 26:f589fc20a5f9
work on linux phobos
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Sat, 21 Mar 2009 11:22:55 +0100 |
parents | f713da8bc051 |
children |
comparison
equal
deleted
inserted
replaced
25:f713da8bc051 | 26:f589fc20a5f9 |
---|---|
39 * @param object the object to compare with this object | 39 * @param object the object to compare with this object |
40 * @return <code>true</code> if the object is the same as this object and <code>false</code> otherwise | 40 * @return <code>true</code> if the object is the same as this object and <code>false</code> otherwise |
41 * | 41 * |
42 * @see #hashCode | 42 * @see #hashCode |
43 */ | 43 */ |
44 public override int opEquals (Object object) { | 44 public override equals_t opEquals (Object object) { |
45 if (object is this) return true; | 45 if (object is this) return true; |
46 if( auto metrics = cast(FontMetrics)object ){ | 46 if( auto metrics = cast(FontMetrics)object ){ |
47 return ascent is metrics.ascent && descent is metrics.descent && | 47 return ascent is metrics.ascent && descent is metrics.descent && |
48 averageCharWidth is metrics.averageCharWidth && leading is metrics.leading && | 48 averageCharWidth is metrics.averageCharWidth && leading is metrics.leading && |
49 height is metrics.height; | 49 height is metrics.height; |