Mercurial > projects > dwt-mac
comparison dwt/widgets/Monitor.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 | 5b53d338c709 |
children | 642f460a0908 |
comparison
equal
deleted
inserted
replaced
34:5123b17c98ef | 35:7d135fe0caf2 |
---|---|
43 * @param object the object to compare with this object | 43 * @param object the object to compare with this object |
44 * @return <code>true</code> if the object is the same as this object and <code>false</code> otherwise | 44 * @return <code>true</code> if the object is the same as this object and <code>false</code> otherwise |
45 * | 45 * |
46 * @see #hashCode() | 46 * @see #hashCode() |
47 */ | 47 */ |
48 public bool opEquals (Object object) { | 48 public int opEquals (Object object) { |
49 if (object is this) return true; | 49 if (object is this) return true; |
50 if (!(cast(dwt.widgets.Monitor.Monitor) object)) return false; | 50 if (!(cast(dwt.widgets.Monitor.Monitor) object)) return false; |
51 dwt.widgets.Monitor.Monitor monitor = cast(dwt.widgets.Monitor.Monitor) object; | 51 dwt.widgets.Monitor.Monitor monitor = cast(dwt.widgets.Monitor.Monitor) object; |
52 return handle is monitor.handle; | 52 return handle is monitor.handle; |
53 } | 53 } |