Mercurial > projects > dwt-linux
comparison dwt/graphics/RGB.d @ 238:380bad9f6852
reverted char[] to String
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Mon, 05 May 2008 00:42:55 +0200 |
parents | df23b11d0b70 |
children | c0d810de7093 |
comparison
equal
deleted
inserted
replaced
237:98b80b00af79 | 238:380bad9f6852 |
---|---|
9 * IBM Corporation - initial API and implementation | 9 * IBM Corporation - initial API and implementation |
10 * Port to the D programming language: | 10 * Port to the D programming language: |
11 * Frank Benoit <benoit@tionex.de> | 11 * Frank Benoit <benoit@tionex.de> |
12 *******************************************************************************/ | 12 *******************************************************************************/ |
13 module dwt.graphics.RGB; | 13 module dwt.graphics.RGB; |
14 | |
15 import dwt.dwthelper.utils; | |
14 | 16 |
15 public import dwt.internal.SerializableCompatibility; | 17 public import dwt.internal.SerializableCompatibility; |
16 | 18 |
17 import dwt.DWT; | 19 import dwt.DWT; |
18 import Math = tango.math.Math : min, max; | 20 import Math = tango.math.Math : min, max; |
221 * Returns a String containing a concise, human-readable | 223 * Returns a String containing a concise, human-readable |
222 * description of the receiver. | 224 * description of the receiver. |
223 * | 225 * |
224 * @return a String representation of the <code>RGB</code> | 226 * @return a String representation of the <code>RGB</code> |
225 */ | 227 */ |
226 public override char[] toString() { | 228 public override String toString() { |
227 return Format( "RGB {{{}, {}, {}}", red, green, blue ); //$NON-NLS-1$//$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ | 229 return Format( "RGB {{{}, {}, {}}", red, green, blue ); //$NON-NLS-1$//$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ |
228 } | 230 } |
229 | 231 |
230 } | 232 } |