]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.eclipse.swt.win32.win32.x86_64/src/org/eclipse/swt/custom/PaintObjectEvent.java
Remove invalid SHA-256-Digests
[simantics/platform.git] / bundles / org.eclipse.swt.win32.win32.x86_64 / src / org / eclipse / swt / custom / PaintObjectEvent.java
1 /*******************************************************************************
2  * Copyright (c) 2000, 2008 IBM Corporation and others.
3  *
4  * This program and the accompanying materials
5  * are made available under the terms of the Eclipse Public License 2.0
6  * which accompanies this distribution, and is available at
7  * https://www.eclipse.org/legal/epl-2.0/
8  *
9  * SPDX-License-Identifier: EPL-2.0
10  *
11  * Contributors:
12  *     IBM Corporation - initial API and implementation
13  *******************************************************************************/
14 package org.eclipse.swt.custom;
15
16 import org.eclipse.swt.events.*;
17 import org.eclipse.swt.graphics.*;
18
19 /**
20  * This event is sent when an object needs to be drawn.
21  *
22  * @see <a href="http://www.eclipse.org/swt/">Sample code and further information</a>
23  *
24  * @since 3.2
25  */
26 public class PaintObjectEvent extends TypedEvent {
27
28         /**
29          * the GC
30          */
31         public GC gc;
32
33         /**
34          * the x location
35          */
36         public int x;
37
38         /**
39          * the y location
40          */
41         public int y;
42
43         /**
44          * the line ascent
45          */
46         public int ascent;
47
48         /**
49          * the line descent
50          */
51         public int descent;
52
53         /**
54          * the StyleRange
55          */
56         public StyleRange style;
57
58         /**
59          * the Bullet
60          */
61         public Bullet bullet;
62
63         /**
64          * the bullet index
65          */
66         public int bulletIndex;
67
68         static final long serialVersionUID = 3906081274027192855L;
69
70 /**
71  * Constructs a new instance of this class based on the
72  * information in the given event.
73  *
74  * @param e the event containing the information
75  */
76 public PaintObjectEvent(StyledTextEvent e) {
77         super(e);
78         gc = e.gc;
79         x = e.x;
80         y = e.y;
81         ascent = e.ascent;
82         descent = e.descent;
83         style = e.style;
84         bullet = e.bullet;
85         bulletIndex = e.bulletIndex;
86 }
87 }