comparison dwt/graphics/FontData.d @ 7:e831403a80a9

Add 'cast' to casts
author Frank Benoit <benoit@tionex.de>
date Wed, 27 Aug 2008 14:30:35 +0200
parents 1a8b3cb347e0
children a9ab4c738ed8
comparison
equal deleted inserted replaced
6:b903c16b6f48 7:e831403a80a9
213 * @see #hashCode 213 * @see #hashCode
214 */ 214 */
215 public bool equals (Object object) { 215 public bool equals (Object object) {
216 if (object is this) return true; 216 if (object is this) return true;
217 if (!(object instanceof FontData)) return false; 217 if (!(object instanceof FontData)) return false;
218 FontData data = (FontData)object; 218 FontData data = cast(FontData)object;
219 return name.equals(data.name) && height is data.height && style is data.style; 219 return name.equals(data.name) && height is data.height && style is data.style;
220 } 220 }
221 221
222 /** 222 /**
223 * Returns the height of the receiver in points. 223 * Returns the height of the receiver in points.
225 * @return the height of this FontData 225 * @return the height of this FontData
226 * 226 *
227 * @see #setHeight(int) 227 * @see #setHeight(int)
228 */ 228 */
229 public int getHeight() { 229 public int getHeight() {
230 return (int)height; 230 return cast(int)height;
231 } 231 }
232 232
233 /*public*/ float getHeightF() { 233 /*public*/ float getHeightF() {
234 return height; 234 return height;
235 } 235 }