comparison dwt/custom/MovementListener.d @ 41:6337764516f1

Sync dwt/custom with dwt-linux (took copy of complete folder)
author Frank Benoit <benoit@tionex.de>
date Tue, 07 Oct 2008 16:29:55 +0200
parents 380af2bdd8e5
children
comparison
equal deleted inserted replaced
40:fbe68c33eeee 41:6337764516f1
1 /******************************************************************************* 1 /*******************************************************************************
2 * Copyright (c) 2000, 2007 IBM Corporation and others. 2 * Copyright (c) 2000, 2007 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 *
8 * Contributors: 8 * Contributors:
9 * IBM Corporation - initial API and implementation 9 * IBM Corporation - initial API and implementation
10 * Port to the D programming language:
11 * Frank Benoit <benoit@tionex.de>
10 *******************************************************************************/ 12 *******************************************************************************/
11 module dwt.custom; 13 module dwt.custom.MovementListener;
12 14
13 import dwt.internal.DWTEventListener; 15 import dwt.internal.DWTEventListener;
16 import dwt.custom.MovementEvent;
14 17
15 /** 18 /**
16 * This listener is invoked when a new offset is required based on the current 19 * This listener is invoked when a new offset is required based on the current
17 * offset and a movement type. 20 * offset and a movement type.
18 * 21 *
19 * @see dwt.DWT#MOVEMENT_WORD 22 * @see dwt.DWT#MOVEMENT_WORD
20 * @see dwt.DWT#MOVEMENT_WORD_END 23 * @see dwt.DWT#MOVEMENT_WORD_END
21 * @see dwt.DWT#MOVEMENT_WORD_START 24 * @see dwt.DWT#MOVEMENT_WORD_START
22 * @see dwt.DWT#MOVEMENT_CHAR 25 * @see dwt.DWT#MOVEMENT_CHAR
23 * @see dwt.DWT#MOVEMENT_CLUSTER 26 * @see dwt.DWT#MOVEMENT_CLUSTER
24 * 27 *
25 * @since 3.3 28 * @since 3.3
26 */ 29 */
27 public interface MovementListener : DWTEventListener { 30 public interface MovementListener : DWTEventListener {
28 /** 31 /**
29 * This method is called when a new offset is required based on the current 32 * This method is called when a new offset is required based on the current
30 * offset and a movement type. 33 * offset and a movement type.
31 * 34 *
32 * <p> 35 * <p>
33 * The following event fields are used:<ul> 36 * The following event fields are used:<ul>
34 * <li>event.lineOffset line start offset (input)</li> 37 * <li>event.lineOffset line start offset (input)</li>
35 * <li>event.lineText line text (input)</li> 38 * <li>event.lineText line text (input)</li>
36 * <li>event.movement the movement type (input)</li> 39 * <li>event.movement the movement type (input)</li>
37 * <li>event.offset the current offset (input)</li> 40 * <li>event.offset the current offset (input)</li>
38 * <li>event.newOffset the new offset (input, output)</li> 41 * <li>event.newOffset the new offset (input, output)</li>
39 * </ul> 42 * </ul>
40 * 43 *
41 * @param event the event 44 * @param event the event
42 * 45 *
43 * @see MovementEvent 46 * @see MovementEvent
44 * @see StyledText#addWordMovementListener(MovementListener) 47 * @see StyledText#addWordMovementListener(MovementListener)
45 */ 48 */
46 public void getNextOffset (MovementEvent event); 49 public void getNextOffset (MovementEvent event);
47 /** 50 /**
48 * This method is called when a new offset is required based on the current 51 * This method is called when a new offset is required based on the current
49 * offset and a movement type. 52 * offset and a movement type.
50 * 53 *
51 * <p> 54 * <p>
52 * The following event fields are used:<ul> 55 * The following event fields are used:<ul>
53 * <li>event.lineOffset line start offset (input)</li> 56 * <li>event.lineOffset line start offset (input)</li>
54 * <li>event.lineText line text (input)</li> 57 * <li>event.lineText line text (input)</li>
55 * <li>event.movement the movement type (input)</li> 58 * <li>event.movement the movement type (input)</li>
56 * <li>event.offset the current offset (input)</li> 59 * <li>event.offset the current offset (input)</li>
57 * <li>event.newOffset the new offset (input, output)</li> 60 * <li>event.newOffset the new offset (input, output)</li>
58 * </ul> 61 * </ul>
59 * 62 *
60 * @param event the event 63 * @param event the event
61 * 64 *
62 * @see MovementEvent 65 * @see MovementEvent
63 * @see StyledText#addWordMovementListener(MovementListener) 66 * @see StyledText#addWordMovementListener(MovementListener)
64 */ 67 */
65 public void getPreviousOffset (MovementEvent event); 68 public void getPreviousOffset (MovementEvent event);
66 69