Mercurial > projects > dwt-mac
comparison dwt/graphics/ImageLoaderEvent.d @ 32:b9226997409c
Ported dwt.graphics.Image*
author | Jacob Carlborg <doob@me.com> <jacob.carlborg@gmail.com> |
---|---|
date | Fri, 12 Sep 2008 13:44:30 +0200 |
parents | 1a8b3cb347e0 |
children | d8635bb48c7c |
comparison
equal
deleted
inserted
replaced
31:9a3047e87f1d | 32:b9226997409c |
---|---|
5 * which accompanies this distribution, and is available at | 5 * which accompanies this distribution, and is available at |
6 * http://www.eclipse.org/legal/epl-v10.html | 6 * http://www.eclipse.org/legal/epl-v10.html |
7 * | 7 * |
8 * Contributors: | 8 * Contributors: |
9 * IBM Corporation - initial API and implementation | 9 * IBM Corporation - initial API and implementation |
10 * | |
11 * Port to the D programming language: | |
12 * Jacob Carlborg <jacob.carlborg@gmail.com> | |
10 *******************************************************************************/ | 13 *******************************************************************************/ |
11 module dwt.graphics.ImageLoaderEvent; | 14 module dwt.graphics.ImageLoaderEvent; |
12 | 15 |
13 import dwt.dwthelper.utils; | |
14 | 16 |
15 import dwt.internal.DWTEventObject; | 17 import dwt.internal.DWTEventObject; |
18 | |
19 import tango.text.convert.Format; | |
20 | |
21 import dwt.dwthelper.utils; | |
22 import dwt.graphics.ImageData; | |
23 import dwt.graphics.ImageLoader; | |
16 | 24 |
17 /** | 25 /** |
18 * Instances of this class are sent as a result of the incremental | 26 * Instances of this class are sent as a result of the incremental |
19 * loading of image data. | 27 * loading of image data. |
20 * <p> | 28 * <p> |
54 * loaded, and further ImageLoader events will occur unless an | 62 * loaded, and further ImageLoader events will occur unless an |
55 * exception is thrown | 63 * exception is thrown |
56 */ | 64 */ |
57 public bool endOfImage; | 65 public bool endOfImage; |
58 | 66 |
59 static final long serialVersionUID = 3257284738325558065L; | 67 static const long serialVersionUID = 3257284738325558065L; |
60 | 68 |
61 /** | 69 /** |
62 * Constructs a new instance of this class given the event source and | 70 * Constructs a new instance of this class given the event source and |
63 * the values to store in its fields. | 71 * the values to store in its fields. |
64 * | 72 * |
79 * description of the receiver. | 87 * description of the receiver. |
80 * | 88 * |
81 * @return a string representation of the event | 89 * @return a string representation of the event |
82 */ | 90 */ |
83 public String toString () { | 91 public String toString () { |
84 return "ImageLoaderEvent {source=" + source + " imageData=" + imageData + " incrementCount=" + incrementCount + " endOfImage=" + endOfImage + "}"; //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ //$NON-NLS-5$ | 92 return Format("ImageLoaderEvent {source={}{}{}{}{}{}{}{}" , source , " imageData=" , imageData , " incrementCount=" , incrementCount , " endOfImage=" , endOfImage , "}"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ //$NON-NLS-5$ |
85 } | 93 } |
86 | 94 |
87 } | 95 } |