root/dwt/events/ControlListener.d

Revision 86:bef1ed4ebc50, 1.7 kB (checked in by Frank Benoit <benoit@tionex.de>, 10 months ago)

again copied events from dwt-linux

Line 
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 dwt.events.ControlListener;
14
15 public import dwt.internal.DWTEventListener;
16 public import dwt.events.ControlEvent;
17
18 /**
19  * Classes which implement this interface provide methods
20  * that deal with the events that are generated by moving
21  * and resizing controls.
22  * <p>
23  * After creating an instance of a class that :
24  * this interface it can be added to a control using the
25  * <code>addControlListener</code> method and removed using
26  * the <code>removeControlListener</code> method. When a
27  * control is moved or resized, the appropriate method will
28  * be invoked.
29  * </p>
30  *
31  * @see ControlAdapter
32  * @see ControlEvent
33  */
34 public interface ControlListener : DWTEventListener {
35
36 /**
37  * Sent when the location (x, y) of a control changes relative
38  * to its parent (or relative to the display, for <code>Shell</code>s).
39  *
40  * @param e an event containing information about the move
41  */
42 public void controlMoved(ControlEvent e);
43
44 /**
45  * Sent when the size (width, height) of a control changes.
46  *
47  * @param e an event containing information about the resize
48  */
49 public void controlResized(ControlEvent e);
50 }
Note: See TracBrowser for help on using the browser.