25
|
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.LineBackgroundListener;
|
|
14
|
|
15 import java.lang.all;
|
|
16
|
|
17 import org.eclipse.swt.internal.SWTEventListener;
|
|
18 import org.eclipse.swt.custom.LineBackgroundEvent;
|
|
19
|
|
20 /**
|
|
21 * Classes which implement this interface provide a method
|
|
22 * that can provide the background color for a line that
|
|
23 * is to be drawn.
|
|
24 *
|
|
25 * @see LineBackgroundEvent
|
|
26 * @see <a href="http://www.eclipse.org/swt/">Sample code and further information</a>
|
|
27 */
|
|
28 public interface LineBackgroundListener : SWTEventListener {
|
|
29
|
|
30 /**
|
|
31 * This method is called when a line is about to be drawn in order to get its
|
|
32 * background color.
|
|
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.lineBackground line background color (output)</li>
|
|
38 * </ul>
|
|
39 *
|
|
40 * @param event the given event
|
|
41 * @see LineBackgroundEvent
|
|
42 */
|
|
43 public void lineGetBackground(LineBackgroundEvent event);
|
|
44 }
|