Mercurial > projects > dwt2
comparison org.eclipse.swt.gtk.linux.x86/src/org/eclipse/swt/graphics/Image.d @ 26:f589fc20a5f9
work on linux phobos
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Sat, 21 Mar 2009 11:22:55 +0100 |
parents | f713da8bc051 |
children | ddbfe84d86df |
comparison
equal
deleted
inserted
replaced
25:f713da8bc051 | 26:f589fc20a5f9 |
---|---|
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 import tango.text.convert.Format; | |
35 import tango.stdc.string; | 34 import tango.stdc.string; |
36 | 35 |
37 /** | 36 /** |
38 * Instances of this class are graphics which have been prepared | 37 * Instances of this class are graphics which have been prepared |
39 * for display on a specific device. That is, they are ready | 38 * for display on a specific device. That is, they are ready |
782 * @param object the object to compare with this object | 781 * @param object the object to compare with this object |
783 * @return <code>true</code> if the object is the same as this object and <code>false</code> otherwise | 782 * @return <code>true</code> if the object is the same as this object and <code>false</code> otherwise |
784 * | 783 * |
785 * @see #hashCode | 784 * @see #hashCode |
786 */ | 785 */ |
787 public override int opEquals (Object object) { | 786 public override equals_t opEquals (Object object) { |
788 if (object is this) return true; | 787 if (object is this) return true; |
789 if ( auto image = cast(Image)object ){ | 788 if ( auto image = cast(Image)object ){ |
790 return device is image.device && pixmap is image.pixmap; | 789 return device is image.device && pixmap is image.pixmap; |
791 } | 790 } |
792 return false; | 791 return false; |