Mercurial > projects > dwt-win
annotate dwt/custom/LineBackgroundEvent.d @ 213:36f5cb12e1a2
Update to SWT 3.4M7
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Sat, 17 May 2008 17:34:28 +0200 |
parents | ab60f3309436 |
children | fd9c62a2998e |
rev | line source |
---|---|
212
ab60f3309436
reverted the char[] to String and use the an alias.
Frank Benoit <benoit@tionex.de>
parents:
155
diff
changeset
|
1 /******************************************************************************* |
155 | 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; | |
212
ab60f3309436
reverted the char[] to String and use the an alias.
Frank Benoit <benoit@tionex.de>
parents:
155
diff
changeset
|
19 import dwt.dwthelper.utils; |
155 | 20 |
21 /** | |
22 * This event is sent when a line is about to be drawn. | |
23 */ | |
24 public class LineBackgroundEvent : TypedEvent { | |
25 | |
26 /** | |
27 * line start offset | |
28 */ | |
29 public int lineOffset; | |
30 | |
31 /** | |
32 * line text | |
33 */ | |
212
ab60f3309436
reverted the char[] to String and use the an alias.
Frank Benoit <benoit@tionex.de>
parents:
155
diff
changeset
|
34 public String lineText; |
155 | 35 |
36 /** | |
37 * line background color | |
38 */ | |
39 public Color lineBackground; | |
40 | |
41 static final long serialVersionUID = 3978711687853324342L; | |
42 | |
43 public this(StyledTextEvent e) { | |
44 super(cast(Object)e); | |
45 lineOffset = e.detail; | |
46 lineText = e.text; | |
213 | 47 lineBackground = e.lineBackground; |
155 | 48 } |
49 } | |
50 | |
51 |