Mercurial > projects > dwt2
comparison org.eclipse.swt.gtk.linux.x86/src/org/eclipse/swt/custom/LineStyleListener.d @ 25:f713da8bc051
Added SWT Linux GTK
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Fri, 20 Mar 2009 23:03:58 +0100 |
parents | |
children | 536e43f63c81 |
comparison
equal
deleted
inserted
replaced
24:b7a1d02a0e1f | 25:f713da8bc051 |
---|---|
1 /******************************************************************************* | |
2 * Copyright (c) 2000, 2008 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.LineStyleListener; | |
14 | |
15 import java.lang.all; | |
16 | |
17 import org.eclipse.swt.internal.SWTEventListener; | |
18 import org.eclipse.swt.custom.LineStyleEvent; | |
19 | |
20 /** | |
21 * Classes which implement this interface provide a method | |
22 * that can provide the style information for a line that | |
23 * is to be drawn. | |
24 * | |
25 * @see LineStyleEvent | |
26 * @see <a href="http://www.eclipse.org/swt/">Sample code and further information</a> | |
27 */ | |
28 public interface LineStyleListener : SWTEventListener { | |
29 | |
30 /** | |
31 * This method is called when a line is about to be drawn in order to get the | |
32 * line's style information. | |
33 * <p> | |
34 * The following event fields are used:<ul> | |
35 * <li>event.lineOffset line start offset (input)</li> | |
36 * <li>event.lineText line text (input)</li> | |
37 * <li>event.styles array of StyleRanges, need to be in order (output)</li> | |
38 * </ul> | |
39 * | |
40 * @param event the given event | |
41 * @see LineStyleEvent | |
42 */ | |
43 public void lineGetStyle(LineStyleEvent event); | |
44 } |