155
|
1 /*******************************************************************************
|
246
|
2 * Copyright (c) 2000, 2008 IBM Corporation and others.
|
155
|
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 dwt.custom.LineStyleListener;
|
|
14
|
|
15 import dwt.internal.DWTEventListener;
|
|
16 import dwt.custom.LineStyleEvent;
|
|
17
|
246
|
18 /**
|
|
19 * Classes which implement this interface provide a method
|
|
20 * that can provide the style information for a line that
|
|
21 * is to be drawn.
|
|
22 *
|
|
23 * @see LineStyleEvent
|
|
24 * @see <a href="http://www.eclipse.org/swt/">Sample code and further information</a>
|
|
25 */
|
155
|
26 public interface LineStyleListener : DWTEventListener {
|
246
|
27
|
155
|
28 /**
|
|
29 * This method is called when a line is about to be drawn in order to get the
|
|
30 * line's style information.
|
|
31 * <p>
|
|
32 * The following event fields are used:<ul>
|
|
33 * <li>event.lineOffset line start offset (input)</li>
|
|
34 * <li>event.lineText line text (input)</li>
|
|
35 * <li>event.styles array of StyleRanges, need to be in order (output)</li>
|
|
36 * </ul>
|
|
37 *
|
|
38 * @param event the given event
|
|
39 * @see LineStyleEvent
|
|
40 */
|
|
41 public void lineGetStyle(LineStyleEvent event);
|
|
42 }
|