1 /******************************************************************************* 2 * Copyright (c) 2000, 2005 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.custom.BidiSegmentListener; 14 15 import org.eclipse.swt.internal.SWTEventListener; 16 import org.eclipse.swt.custom.BidiSegmentEvent; 17 18 /** 19 * This listener interface may be implemented in order to receive 20 * BidiSegmentEvents. 21 * @see BidiSegmentEvent 22 */ 23 public interface BidiSegmentListener : SWTEventListener { 24 25 /** 26 * This method is called when a line needs to be reordered for 27 * measuring or rendering in a bidi locale. 28 * <p> 29 * The following event fields are used:<ul> 30 * <li>event.lineOffset line start offset (input)</li> 31 * <li>event.lineText line text (input)</li> 32 * <li>event.segments text segments that should be reordered 33 * separately. (output)</li> 34 * </ul> 35 * 36 * @param event the given event 37 * separately. (output) 38 * @see BidiSegmentEvent 39 */ 40 public void lineGetSegments(BidiSegmentEvent event); 41 42 } 43