Mercurial > projects > dwt-win
comparison dwt/custom/MovementEvent.d @ 246:fd9c62a2998e
Updater SWT 3.4M7 to 3.4
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Tue, 01 Jul 2008 10:15:59 +0200 |
parents | ab60f3309436 |
children | 349b8c12e243 |
comparison
equal
deleted
inserted
replaced
245:d8c3d4a4f2b0 | 246:fd9c62a2998e |
---|---|
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 * |
17 import dwt.dwthelper.utils; | 17 import dwt.dwthelper.utils; |
18 | 18 |
19 /** | 19 /** |
20 * This event is sent when a new offset is required based on the current | 20 * This event is sent when a new offset is required based on the current |
21 * offset and a movement type. | 21 * offset and a movement type. |
22 * | |
23 * @see <a href="http://www.eclipse.org/swt/">Sample code and further information</a> | |
22 * | 24 * |
23 * @since 3.3 | 25 * @since 3.3 |
24 */ | 26 */ |
25 public class MovementEvent : TypedEvent { | 27 public class MovementEvent : TypedEvent { |
26 | 28 |
55 */ | 57 */ |
56 public int movement; | 58 public int movement; |
57 | 59 |
58 static final long serialVersionUID = 3978765487853324342L; | 60 static final long serialVersionUID = 3978765487853324342L; |
59 | 61 |
62 /** | |
63 * Constructs a new instance of this class based on the | |
64 * information in the given event. | |
65 * | |
66 * @param e the event containing the information | |
67 */ | |
60 public this(StyledTextEvent e) { | 68 public this(StyledTextEvent e) { |
61 super(cast(Object)e); | 69 super(cast(Object)e); |
62 lineOffset = e.detail; | 70 lineOffset = e.detail; |
63 lineText = e.text; | 71 lineText = e.text; |
64 movement = e.count; | 72 movement = e.count; |