Mercurial > projects > dwt2
annotate org.eclipse.swt.gtk.linux.x86/src/org/eclipse/swt/custom/PaintObjectEvent.d @ 49:7a2dd761a8b2
more work until dmd 2.026 linux segfaults.
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Fri, 27 Mar 2009 12:59:54 +0100 |
parents | f713da8bc051 |
children | 536e43f63c81 |
rev | line source |
---|---|
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.PaintObjectEvent; | |
14 | |
15 import java.lang.all; | |
16 | |
17 | |
18 import org.eclipse.swt.events.TypedEvent; | |
19 import org.eclipse.swt.graphics.GC; | |
20 import org.eclipse.swt.custom.StyleRange; | |
21 import org.eclipse.swt.custom.Bullet; | |
22 import org.eclipse.swt.custom.StyledTextEvent; | |
23 | |
24 /** | |
25 * This event is sent when an object needs to be drawn. | |
26 * | |
27 * @see <a href="http://www.eclipse.org/swt/">Sample code and further information</a> | |
28 * | |
29 * @since 3.2 | |
30 */ | |
31 public class PaintObjectEvent : TypedEvent { | |
32 | |
33 /** | |
34 * the GC | |
35 */ | |
36 public GC gc; | |
37 | |
38 /** | |
39 * the x location | |
40 */ | |
41 public int x; | |
42 | |
43 /** | |
44 * the y location | |
45 */ | |
46 public int y; | |
47 | |
48 /** | |
49 * the line ascent | |
50 */ | |
51 public int ascent; | |
52 | |
53 /** | |
54 * the line descent | |
55 */ | |
56 public int descent; | |
57 | |
58 /** | |
59 * the StyleRange | |
60 */ | |
61 public StyleRange style; | |
62 | |
63 /** | |
64 * the Bullet | |
65 */ | |
66 public Bullet bullet; | |
67 | |
68 /** | |
69 * the bullet index | |
70 */ | |
71 public int bulletIndex; | |
72 | |
49
7a2dd761a8b2
more work until dmd 2.026 linux segfaults.
Frank Benoit <benoit@tionex.de>
parents:
25
diff
changeset
|
73 static const long serialVersionUID = 3906081274027192855L; |
25 | 74 |
75 /** | |
76 * Constructs a new instance of this class based on the | |
77 * information in the given event. | |
78 * | |
79 * @param e the event containing the information | |
80 */ | |
81 public this(StyledTextEvent e) { | |
82 super(cast(Object)e); | |
83 gc = e.gc; | |
84 x = e.x; | |
85 y = e.y; | |
86 ascent = e.ascent; | |
87 descent = e.descent; | |
88 style = e.style; | |
89 bullet = e.bullet; | |
90 bulletIndex = e.bulletIndex; | |
91 } | |
92 } |