Mercurial > projects > dwt2
comparison org.eclipse.swt.gtk.linux.x86/src/org/eclipse/swt/graphics/Image.d @ 48:ddbfe84d86df
[swt lin] versioned imports
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Fri, 27 Mar 2009 12:05:20 +0100 |
parents | f589fc20a5f9 |
children | 7a2dd761a8b2 |
comparison
equal
deleted
inserted
replaced
47:65761bc28ab2 | 48:ddbfe84d86df |
---|---|
29 import org.eclipse.swt.graphics.Resource; | 29 import org.eclipse.swt.graphics.Resource; |
30 | 30 |
31 import java.io.InputStream; | 31 import java.io.InputStream; |
32 import java.lang.all; | 32 import java.lang.all; |
33 | 33 |
34 version(Tango){ | |
34 import tango.stdc.string; | 35 import tango.stdc.string; |
36 } else { // Phobos | |
37 } | |
35 | 38 |
36 /** | 39 /** |
37 * Instances of this class are graphics which have been prepared | 40 * Instances of this class are graphics which have been prepared |
38 * for display on a specific device. That is, they are ready | 41 * for display on a specific device. That is, they are ready |
39 * to paint using methods such as <code>GC.drawImage()</code> | 42 * to paint using methods such as <code>GC.drawImage()</code> |
1170 } | 1173 } |
1171 | 1174 |
1172 /** | 1175 /** |
1173 * Returns a string containing a concise, human-readable | 1176 * Returns a string containing a concise, human-readable |
1174 * description of the receiver. | 1177 * description of the receiver. |
1178 import tango.core.Exception; | |
1175 * | 1179 * |
1176 * @return a string representation of the receiver | 1180 * @return a string representation of the receiver |
1177 */ | 1181 */ |
1178 public override String toString () { | 1182 public override String toString () { |
1179 if (isDisposed()) return "Image {*DISPOSED*}"; | 1183 if (isDisposed()) return "Image {*DISPOSED*}"; |