comparison dwt/custom/MovementEvent.d @ 259:c0d810de7093

Update SWT 3.4M7 to 3.4
author Frank Benoit <benoit@tionex.de>
date Sun, 29 Jun 2008 14:33:38 +0200
parents 380bad9f6852
children
comparison
equal deleted inserted replaced
257:cc1d3de0e80b 259:c0d810de7093
1 /******************************************************************************* 1 /*******************************************************************************
2 * Copyright (c) 2000, 2007 IBM Corporation and others. 2 * Copyright (c) 2000, 2008 IBM Corporation and others.
3 * All rights reserved. This program and the accompanying materials 3 * All rights reserved. This program and the accompanying materials
4 * are made available under the terms of the Eclipse Public License v1.0 4 * are made available under the terms of the Eclipse Public License v1.0
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 *
18 import dwt.custom.StyledTextEvent; 18 import dwt.custom.StyledTextEvent;
19 19
20 /** 20 /**
21 * This event is sent when a new offset is required based on the current 21 * This event is sent when a new offset is required based on the current
22 * offset and a movement type. 22 * offset and a movement type.
23 *
24 * @see <a href="http://www.eclipse.org/swt/">Sample code and further information</a>
23 * 25 *
24 * @since 3.3 26 * @since 3.3
25 */ 27 */
26 public class MovementEvent : TypedEvent { 28 public class MovementEvent : TypedEvent {
27 29
56 */ 58 */
57 public int movement; 59 public int movement;
58 60
59 static final long serialVersionUID = 3978765487853324342L; 61 static final long serialVersionUID = 3978765487853324342L;
60 62
63 /**
64 * Constructs a new instance of this class based on the
65 * information in the given event.
66 *
67 * @param e the event containing the information
68 */
61 public this(StyledTextEvent e) { 69 public this(StyledTextEvent e) {
62 super(cast(Object)e); 70 super(cast(Object)e);
63 lineOffset = e.detail; 71 lineOffset = e.detail;
64 lineText = e.text; 72 lineText = e.text;
65 movement = e.count; 73 movement = e.count;