Mercurial > projects > dwt-mac
comparison dwt/graphics/Image.d @ 35:7d135fe0caf2
Ported dwt.graphics.Cursor and dwt.widgets.MenuItem
author | Jacob Carlborg <doob@me.com> <jacob.carlborg@gmail.com> |
---|---|
date | Sun, 14 Sep 2008 23:32:29 +0200 |
parents | b9226997409c |
children | db5a898b2119 |
comparison
equal
deleted
inserted
replaced
34:5123b17c98ef | 35:7d135fe0caf2 |
---|---|
560 * @param object the object to compare with this object | 560 * @param object the object to compare with this object |
561 * @return <code>true</code> if the object is the same as this object and <code>false</code> otherwise | 561 * @return <code>true</code> if the object is the same as this object and <code>false</code> otherwise |
562 * | 562 * |
563 * @see #hashCode | 563 * @see #hashCode |
564 */ | 564 */ |
565 public bool opEquals (Object object) { | 565 public int opEquals (Object object) { |
566 if (object is this) return true; | 566 if (object is this) return true; |
567 if (!( null !is cast(Image)object )) return false; | 567 if (!( null !is cast(Image)object )) return false; |
568 Image image = cast(Image)object; | 568 Image image = cast(Image)object; |
569 return device is image.device && handle is image.handle && | 569 return device is image.device && handle is image.handle && |
570 transparentPixel is image.transparentPixel; | 570 transparentPixel is image.transparentPixel; |