Mercurial > projects > dwt2
comparison org.eclipse.swt.win32.win32.x86/src/org/eclipse/swt/graphics/FontMetrics.d @ 36:d46287db17ed
rakefile reorg, swt win phobosification
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Tue, 24 Mar 2009 08:48:41 +0100 |
parents | 6dd524f61e62 |
children |
comparison
equal
deleted
inserted
replaced
35:634e4380db78 | 36:d46287db17ed |
---|---|
55 * @param object the object to compare with this object | 55 * @param object the object to compare with this object |
56 * @return <code>true</code> if the object is the same as this object and <code>false</code> otherwise | 56 * @return <code>true</code> if the object is the same as this object and <code>false</code> otherwise |
57 * | 57 * |
58 * @see #hashCode | 58 * @see #hashCode |
59 */ | 59 */ |
60 override public int opEquals (Object object) { | 60 override public equals_t opEquals (Object object) { |
61 if (object is this) return true; | 61 if (object is this) return true; |
62 if( auto metricObj = cast(FontMetrics)object ){ | 62 if( auto metricObj = cast(FontMetrics)object ){ |
63 auto metric = metricObj.handle; | 63 auto metric = metricObj.handle; |
64 return handle.tmHeight is metric.tmHeight && | 64 return handle.tmHeight is metric.tmHeight && |
65 handle.tmAscent is metric.tmAscent && | 65 handle.tmAscent is metric.tmAscent && |