comparison org.eclipse.swt.gtk.linux.x86/src/org/eclipse/swt/events/ControlAdapter.d @ 25:f713da8bc051

Added SWT Linux GTK
author Frank Benoit <benoit@tionex.de>
date Fri, 20 Mar 2009 23:03:58 +0100
parents
children 536e43f63c81
comparison
equal deleted inserted replaced
24:b7a1d02a0e1f 25:f713da8bc051
1 /*******************************************************************************
2 * Copyright (c) 2000, 2008 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.ControlAdapter;
14
15 import java.lang.all;
16
17 import org.eclipse.swt.events.ControlListener;
18 /**
19 * This adapter class provides default implementations for the
20 * methods described by the <code>ControlListener</code> interface.
21 * <p>
22 * Classes that wish to deal with <code>ControlEvent</code>s can
23 * extend this class and override only the methods which they are
24 * interested in.
25 * </p>
26 *
27 * @see ControlListener
28 * @see ControlEvent
29 * @see <a href="http://www.eclipse.org/swt/">Sample code and further information</a>
30 */
31 public abstract class ControlAdapter : ControlListener {
32
33 /**
34 * Sent when the location (x, y) of a control changes relative
35 * to its parent (or relative to the display, for <code>Shell</code>s).
36 * The default behavior is to do nothing.
37 *
38 * @param e an event containing information about the move
39 */
40 public void controlMoved(ControlEvent e) {
41 }
42
43 /**
44 * Sent when the size (width, height) of a control changes.
45 * The default behavior is to do nothing.
46 *
47 * @param e an event containing information about the resize
48 */
49 public void controlResized(ControlEvent e) {
50 }
51 }