Mercurial > projects > dwt-win
annotate dwt/custom/LineBackgroundEvent.d @ 246:fd9c62a2998e
Updater SWT 3.4M7 to 3.4
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Tue, 01 Jul 2008 10:15:59 +0200 |
parents | 36f5cb12e1a2 |
children | 349b8c12e243 |
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 /******************************************************************************* |
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.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. | |
246 | 23 * |
24 * @see <a href="http://www.eclipse.org/swt/">Sample code and further information</a> | |
155 | 25 */ |
26 public class LineBackgroundEvent : TypedEvent { | |
27 | |
28 /** | |
29 * line start offset | |
30 */ | |
31 public int lineOffset; | |
32 | |
33 /** | |
34 * line text | |
35 */ | |
212
ab60f3309436
reverted the char[] to String and use the an alias.
Frank Benoit <benoit@tionex.de>
parents:
155
diff
changeset
|
36 public String lineText; |
155 | 37 |
38 /** | |
39 * line background color | |
40 */ | |
41 public Color lineBackground; | |
42 | |
43 static final long serialVersionUID = 3978711687853324342L; | |
44 | |
246 | 45 /** |
46 * Constructs a new instance of this class based on the | |
47 * information in the given event. | |
48 * | |
49 * @param e the event containing the information | |
50 */ | |
155 | 51 public this(StyledTextEvent e) { |
52 super(cast(Object)e); | |
53 lineOffset = e.detail; | |
54 lineText = e.text; | |
213 | 55 lineBackground = e.lineBackground; |
155 | 56 } |
57 } | |
58 | |
59 |