]> gerrit.simantics Code Review - simantics/platform.git/blob - bundles/org.eclipse.swt.win32.win32.x86_64/src/org/eclipse/swt/graphics/GCData.java
Work around SWT 4.13 - 4.18 Win32 DnD bug 567422
[simantics/platform.git] / bundles / org.eclipse.swt.win32.win32.x86_64 / src / org / eclipse / swt / graphics / GCData.java
1 /*******************************************************************************
2  * Copyright (c) 2000, 2009 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.graphics;
15
16
17 import org.eclipse.swt.*;
18 import org.eclipse.swt.internal.win32.*;
19
20 /**
21  * Instances of this class are descriptions of GCs in terms
22  * of unallocated platform-specific data fields.
23  * <p>
24  * <b>IMPORTANT:</b> This class is <em>not</em> part of the public
25  * API for SWT. It is marked public only so that it can be shared
26  * within the packages provided by SWT. It is not available on all
27  * platforms, and should never be called from application code.
28  * </p>
29  * @see <a href="http://www.eclipse.org/swt/">Sample code and further information</a>
30  * @noreference This class is not intended to be referenced by clients
31  */
32 public final class GCData {
33         public Device device;
34         public int style, state = -1;
35         public int foreground = -1;
36         public int background = -1;
37         public Font font;
38         public Pattern foregroundPattern;
39         public Pattern backgroundPattern;
40         public int lineStyle = SWT.LINE_SOLID;
41         public float lineWidth;
42         public int lineCap = SWT.CAP_FLAT;
43         public int lineJoin = SWT.JOIN_MITER;
44         public float lineDashesOffset;
45         public float[] lineDashes;
46         public float lineMiterLimit = 10;
47         public int alpha = 0xFF;
48
49         public Image image;
50         public PAINTSTRUCT ps;
51         public int layout = -1;
52         public long hPen, hOldPen, hBrush, hOldBrush, hNullBitmap,
53                 hwnd, gdipGraphics, gdipPen, gdipBrush, gdipFgBrush, gdipBgBrush,
54                 gdipFont, hGDIFont;
55         public float gdipXOffset, gdipYOffset;
56         public int uiState = 0;
57         public boolean focusDrawn;
58 }