Mercurial > projects > dwt-win
comparison dwt/graphics/Rectangle.d @ 212:ab60f3309436
reverted the char[] to String and use the an alias.
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Mon, 05 May 2008 00:12:38 +0200 |
parents | f906dbcacee5 |
children | fd9c62a2998e |
comparison
equal
deleted
inserted
replaced
211:ff59aeb96cac | 212:ab60f3309436 |
---|---|
16 public import dwt.internal.SerializableCompatibility; | 16 public import dwt.internal.SerializableCompatibility; |
17 | 17 |
18 import dwt.DWT; | 18 import dwt.DWT; |
19 import dwt.DWTError; | 19 import dwt.DWTError; |
20 import tango.text.convert.Format; | 20 import tango.text.convert.Format; |
21 import dwt.dwthelper.utils; | |
21 | 22 |
22 /** | 23 /** |
23 * Instances of this class represent rectangular areas in an | 24 * Instances of this class represent rectangular areas in an |
24 * (x, y) coordinate system. The top left corner of the rectangle | 25 * (x, y) coordinate system. The top left corner of the rectangle |
25 * is specified by its x and y values, and the extent of the | 26 * is specified by its x and y values, and the extent of the |
311 * Returns a string containing a concise, human-readable | 312 * Returns a string containing a concise, human-readable |
312 * description of the receiver. | 313 * description of the receiver. |
313 * | 314 * |
314 * @return a string representation of the rectangle | 315 * @return a string representation of the rectangle |
315 */ | 316 */ |
316 public override char[] toString () { | 317 public override String toString () { |
317 return Format( "Rectangle {{{}, {}, {}, {}}", x, y, width, height ); //$NON-NLS-1$//$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ //$NON-NLS-5$ | 318 return Format( "Rectangle {{{}, {}, {}, {}}", x, y, width, height ); //$NON-NLS-1$//$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ //$NON-NLS-5$ |
318 } | 319 } |
319 | 320 |
320 /** | 321 /** |
321 * Returns a new rectangle which represents the union of | 322 * Returns a new rectangle which represents the union of |