comparison org.eclipse.swt.gtk.linux.x86/src/org/eclipse/swt/graphics/Cursor.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
22 import org.eclipse.swt.graphics.RGB; 22 import org.eclipse.swt.graphics.RGB;
23 import org.eclipse.swt.graphics.PaletteData; 23 import org.eclipse.swt.graphics.PaletteData;
24 24
25 import org.eclipse.swt.internal.gtk.OS; 25 import org.eclipse.swt.internal.gtk.OS;
26 26
27 import tango.text.convert.Format;
28 import tango.stdc.string; 27 import tango.stdc.string;
29 28
30 /** 29 /**
31 * Instances of this class manage operating system resources that 30 * Instances of this class manage operating system resources that
32 * specify the appearance of the on-screen pointer. To create a 31 * specify the appearance of the on-screen pointer. To create a
468 * @param object the object to compare with this object 467 * @param object the object to compare with this object
469 * @return <code>true</code> if the object is the same as this object and <code>false</code> otherwise 468 * @return <code>true</code> if the object is the same as this object and <code>false</code> otherwise
470 * 469 *
471 * @see #hashCode 470 * @see #hashCode
472 */ 471 */
473 public override int opEquals(Object object) { 472 public override equals_t opEquals(Object object) {
474 if (object is this) return true; 473 if (object is this) return true;
475 if ( auto cursor = cast(Cursor)object ){ 474 if ( auto cursor = cast(Cursor)object ){
476 return device is cursor.device && handle is cursor.handle; 475 return device is cursor.device && handle is cursor.handle;
477 } 476 }
478 return false; 477 return false;