Mercurial > projects > dwt-mac
comparison dwt/dnd/DropTargetEvent.d @ 122:2e671fa40eec
Ported dwt.dnd, dwt.opengl, dwt.printing and dwt.program
author | Jacob Carlborg <doob@me.com> |
---|---|
date | Wed, 31 Dec 2008 21:01:13 +0100 |
parents | 1c12673c65ca |
children | 535243e6d16a |
comparison
equal
deleted
inserted
replaced
121:e1c48e37e0f5 | 122:2e671fa40eec |
---|---|
18 import dwt.events.TypedEvent; | 18 import dwt.events.TypedEvent; |
19 import dwt.widgets.Widget; | 19 import dwt.widgets.Widget; |
20 | 20 |
21 import dwt.dnd.DNDEvent; | 21 import dwt.dnd.DNDEvent; |
22 import dwt.dnd.TransferData; | 22 import dwt.dnd.TransferData; |
23 import dwt.widgets.Event; | |
23 | 24 |
24 /** | 25 /** |
25 * The DropTargetEvent contains the event information passed in the methods of the DropTargetListener. | 26 * The DropTargetEvent contains the event information passed in the methods of the DropTargetListener. |
26 * | 27 * |
27 * @see <a href="http://www.eclipse.org/swt/">Sample code and further information</a> | 28 * @see <a href="http://www.eclipse.org/swt/">Sample code and further information</a> |
96 * information in the given untyped event. | 97 * information in the given untyped event. |
97 * | 98 * |
98 * @param e the untyped event containing the information | 99 * @param e the untyped event containing the information |
99 */ | 100 */ |
100 public this(DNDEvent e) { | 101 public this(DNDEvent e) { |
101 super(e); | 102 super(cast(Event) e); |
102 this.data = e.data; | 103 this.data = e.data; |
103 this.x = e.x; | 104 this.x = e.x; |
104 this.y = e.y; | 105 this.y = e.y; |
105 this.detail = e.detail; | 106 this.detail = e.detail; |
106 this.currentDataType = e.dataType; | 107 this.currentDataType = e.dataType; |