comparison dwtx/draw2d/MouseMotionListener.d @ 98:95307ad235d9

Added Draw2d code, still work in progress
author Frank Benoit <benoit@tionex.de>
date Sun, 03 Aug 2008 00:52:14 +0200
parents
children
comparison
equal deleted inserted replaced
96:b492ba44e44d 98:95307ad235d9
1 /*******************************************************************************
2 * Copyright (c) 2000, 2005 IBM Corporation and others.
3 * All rights reserved. This program and the accompanying materials
4 * are made available under the terms of the Eclipse Public License v1.0
5 * which accompanies this distribution, and is available at
6 * http://www.eclipse.org/legal/epl-v10.html
7 *
8 * Contributors:
9 * IBM Corporation - initial API and implementation
10 *******************************************************************************/
11 module dwtx.draw2d.MouseMotionListener;
12
13 import dwt.dwthelper.utils;
14 import dwtx.draw2d.MouseEvent;
15 /**
16 * A listener interface for receiving mouse motion events.
17 */
18 public interface MouseMotionListener {
19
20 /**
21 * Called when the mouse has moved over the listened to object while a button was pressed.
22 * @param me The MouseEvent object
23 */
24 void mouseDragged(MouseEvent me);
25
26 /**
27 * Called when the mouse has entered the listened to object.
28 * @param me The MouseEvent object
29 */
30 void mouseEntered(MouseEvent me);
31
32 /**
33 * Called when the mouse has exited the listened to object.
34 * @param me The MouseEvent object
35 */
36 void mouseExited(MouseEvent me);
37
38 /**
39 * Called when the mouse hovers over the listened to object.
40 * @param me The MouseEvent object
41 */
42 void mouseHover(MouseEvent me);
43
44 /**
45 * Called when the mouse has moved over the listened to object.
46 * @param me The MouseEvent object
47 */
48 void mouseMoved(MouseEvent me);
49
50 /**
51 * An empty implementation of MouseMotionListener for convenience.
52 */
53 static public class Stub
54 : MouseMotionListener
55 {
56 /**
57 * @see dwtx.draw2d.MouseMotionListener#mouseDragged(MouseEvent)
58 */
59 public void mouseDragged(MouseEvent me) { }
60 /**
61 * @see dwtx.draw2d.MouseMotionListener#mouseEntered(MouseEvent)
62 */
63 public void mouseEntered(MouseEvent me) { }
64 /**
65 * @see dwtx.draw2d.MouseMotionListener#mouseExited(MouseEvent)
66 */
67 public void mouseExited(MouseEvent me) { }
68 /**
69 * @see dwtx.draw2d.MouseMotionListener#mouseMoved(MouseEvent)
70 */
71 public void mouseMoved(MouseEvent me) { }
72 /**
73 * @see dwtx.draw2d.MouseMotionListener#mouseHover(MouseEvent)
74 */
75 public void mouseHover(MouseEvent me) { }
76 }
77
78 }
79
80