155
|
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 dwt.custom.LineBackgroundEvent;
|
|
14
|
|
15
|
|
16 import dwt.events.TypedEvent;
|
|
17 import dwt.graphics.Color;
|
|
18 import dwt.custom.StyledTextEvent;
|
|
19
|
|
20 /**
|
|
21 * This event is sent when a line is about to be drawn.
|
|
22 */
|
|
23 public class LineBackgroundEvent : TypedEvent {
|
|
24
|
|
25 /**
|
|
26 * line start offset
|
|
27 */
|
|
28 public int lineOffset;
|
|
29
|
|
30 /**
|
|
31 * line text
|
|
32 */
|
|
33 public char[] lineText;
|
|
34
|
|
35 /**
|
|
36 * line background color
|
|
37 */
|
|
38 public Color lineBackground;
|
|
39
|
|
40 static final long serialVersionUID = 3978711687853324342L;
|
|
41
|
|
42 public this(StyledTextEvent e) {
|
|
43 super(cast(Object)e);
|
|
44 lineOffset = e.detail;
|
|
45 lineText = e.text;
|
|
46 }
|
|
47 }
|
|
48
|
|
49
|