25
|
1 /*******************************************************************************
|
|
2 * Copyright (c) 2000, 2003 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 * Port to the D programming language:
|
|
11 * Frank Benoit <benoit@tionex.de>
|
|
12 *******************************************************************************/
|
|
13 module org.eclipse.swt.events.MouseTrackListener;
|
|
14
|
|
15 import java.lang.all;
|
|
16
|
|
17
|
|
18 public import org.eclipse.swt.internal.SWTEventListener;
|
|
19 public import org.eclipse.swt.events.MouseEvent;
|
|
20
|
|
21 /**
|
|
22 * Classes which implement this interface provide methods
|
|
23 * that deal with the events that are generated as the mouse
|
|
24 * pointer passes (or hovers) over controls.
|
|
25 * <p>
|
|
26 * After creating an instance of a class that :
|
|
27 * this interface it can be added to a control using the
|
|
28 * <code>addMouseTrackListener</code> method and removed using
|
|
29 * the <code>removeMouseTrackListener</code> method. When the
|
|
30 * mouse pointer passes into or out of the area of the screen
|
|
31 * covered by a control or pauses while over a control, the
|
|
32 * appropriate method will be invoked.
|
|
33 * </p>
|
|
34 *
|
|
35 * @see MouseTrackAdapter
|
|
36 * @see MouseEvent
|
|
37 */
|
|
38 public interface MouseTrackListener : SWTEventListener {
|
|
39
|
|
40 /**
|
|
41 * Sent when the mouse pointer passes into the area of
|
|
42 * the screen covered by a control.
|
|
43 *
|
|
44 * @param e an event containing information about the mouse enter
|
|
45 */
|
|
46 public void mouseEnter(MouseEvent e);
|
|
47
|
|
48 /**
|
|
49 * Sent when the mouse pointer passes out of the area of
|
|
50 * the screen covered by a control.
|
|
51 *
|
|
52 * @param e an event containing information about the mouse exit
|
|
53 */
|
|
54 public void mouseExit(MouseEvent e);
|
|
55
|
|
56 /**
|
|
57 * Sent when the mouse pointer hovers (that is, stops moving
|
|
58 * for an (operating system specified) period of time) over
|
|
59 * a control.
|
|
60 *
|
|
61 * @param e an event containing information about the hover
|
|
62 */
|
|
63 public void mouseHover(MouseEvent e);
|
|
64 }
|