comparison org.eclipse.swt.gtk.linux.x86/src/org/eclipse/swt/graphics/GC.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
41 import org.eclipse.swt.internal.cairo.Cairo; 41 import org.eclipse.swt.internal.cairo.Cairo;
42 import org.eclipse.swt.internal.Converter; 42 import org.eclipse.swt.internal.Converter;
43 import org.eclipse.swt.internal.Compatibility; 43 import org.eclipse.swt.internal.Compatibility;
44 import java.lang.all; 44 import java.lang.all;
45 45
46 import tango.text.convert.Format; 46 version(Tango){
47 import tango.stdc.string; 47 import tango.stdc.string;
48 } else {
49 import std.c.string;
50 }
48 51
49 52
50 /** 53 /**
51 * Class <code>GC</code> is where all of the drawing capabilities that are 54 * Class <code>GC</code> is where all of the drawing capabilities that are
52 * supported by SWT are located. Instances are used to draw on either an 55 * supported by SWT are located. Instances are used to draw on either an
1709 * @param object the object to compare with this object 1712 * @param object the object to compare with this object
1710 * @return <code>true</code> if the object is the same as this object and <code>false</code> otherwise 1713 * @return <code>true</code> if the object is the same as this object and <code>false</code> otherwise
1711 * 1714 *
1712 * @see #hashCode 1715 * @see #hashCode
1713 */ 1716 */
1714 public override int opEquals(Object object) { 1717 public override equals_t opEquals(Object object) {
1715 if (object is this) return true; 1718 if (object is this) return true;
1716 if ( auto gc = cast(GC)object){ 1719 if ( auto gc = cast(GC)object){
1717 return handle is gc.handle; 1720 return handle is gc.handle;
1718 } 1721 }
1719 return false; 1722 return false;