Mercurial > projects > dwt-mac
comparison dwt/events/MouseListener.d @ 34:5123b17c98ef
Ported dwt.events.*, dwt.graphics.GC, Region, dwt.internal.image.*
author | Jacob Carlborg <doob@me.com> <jacob.carlborg@gmail.com> |
---|---|
date | Sun, 14 Sep 2008 01:45:57 +0200 |
parents | 649b8e223d5a |
children | d8635bb48c7c |
comparison
equal
deleted
inserted
replaced
33:965ac0a77267 | 34:5123b17c98ef |
---|---|
5 * which accompanies this distribution, and is available at | 5 * which accompanies this distribution, and is available at |
6 * http://www.eclipse.org/legal/epl-v10.html | 6 * http://www.eclipse.org/legal/epl-v10.html |
7 * | 7 * |
8 * Contributors: | 8 * Contributors: |
9 * IBM Corporation - initial API and implementation | 9 * IBM Corporation - initial API and implementation |
10 * Port to the D programming language: | |
11 * Frank Benoit <benoit@tionex.de> | |
10 *******************************************************************************/ | 12 *******************************************************************************/ |
11 module dwt.events.MouseListener; | 13 module dwt.events.MouseListener; |
12 | 14 |
13 import dwt.dwthelper.utils; | |
14 | 15 |
15 import dwt.internal.DWTEventListener; | 16 public import dwt.internal.DWTEventListener; |
17 public import dwt.events.MouseEvent; | |
16 | 18 |
17 /** | 19 /** |
18 * Classes which implement this interface provide methods | 20 * Classes which implement this interface provide methods |
19 * that deal with the events that are generated as mouse buttons | 21 * that deal with the events that are generated as mouse buttons |
20 * are pressed. | 22 * are pressed. |
21 * <p> | 23 * <p> |
22 * After creating an instance of a class that implements | 24 * After creating an instance of a class that : |
23 * this interface it can be added to a control using the | 25 * this interface it can be added to a control using the |
24 * <code>addMouseListener</code> method and removed using | 26 * <code>addMouseListener</code> method and removed using |
25 * the <code>removeMouseListener</code> method. When a | 27 * the <code>removeMouseListener</code> method. When a |
26 * mouse button is pressed or released, the appropriate method | 28 * mouse button is pressed or released, the appropriate method |
27 * will be invoked. | 29 * will be invoked. |
31 * @see MouseEvent | 33 * @see MouseEvent |
32 */ | 34 */ |
33 public interface MouseListener : DWTEventListener { | 35 public interface MouseListener : DWTEventListener { |
34 | 36 |
35 /** | 37 /** |
36 * Sent when a mouse button is pressed twice within the | 38 * Sent when a mouse button is pressed twice within the |
37 * (operating system specified) double click period. | 39 * (operating system specified) double click period. |
38 * | 40 * |
39 * @param e an event containing information about the mouse double click | 41 * @param e an event containing information about the mouse double click |
40 * | 42 * |
41 * @see dwt.widgets.Display#getDoubleClickTime() | 43 * @see dwt.widgets.Display#getDoubleClickTime() |