comparison org.eclipse.swt.win32.win32.x86/src/org/eclipse/swt/graphics/GlyphMetrics.d @ 36:d46287db17ed

rakefile reorg, swt win phobosification
author Frank Benoit <benoit@tionex.de>
date Tue, 24 Mar 2009 08:48:41 +0100
parents 6bf2837c50fe
children
comparison
equal deleted inserted replaced
35:634e4380db78 36:d46287db17ed
81 * @param object the object to compare with this object 81 * @param object the object to compare with this object
82 * @return <code>true</code> if the object is the same as this object and <code>false</code> otherwise 82 * @return <code>true</code> if the object is the same as this object and <code>false</code> otherwise
83 * 83 *
84 * @see #hashCode() 84 * @see #hashCode()
85 */ 85 */
86 public override int opEquals (Object object) { 86 public override equals_t opEquals (Object object) {
87 if (object is this) return true; 87 if (object is this) return true;
88 if (auto metrics = cast(GlyphMetrics)object ){ 88 if (auto metrics = cast(GlyphMetrics)object ){
89 return metrics.ascent == ascent && metrics.descent == descent && metrics.width == width; 89 return metrics.ascent == ascent && metrics.descent == descent && metrics.width == width;
90 } 90 }
91 return false; 91 return false;