1 /*******************************************************************************
2 * Copyright (c) 2000, 2009 IBM Corporation and others.
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/
9 * SPDX-License-Identifier: EPL-2.0
12 * IBM Corporation - initial API and implementation
13 *******************************************************************************/
14 package org.eclipse.swt.graphics;
17 import org.eclipse.swt.*;
18 import org.eclipse.swt.internal.win32.*;
21 * Instances of this class are descriptions of GCs in terms
22 * of unallocated platform-specific data fields.
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.
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
32 public final class GCData {
34 public int style, state = -1;
35 public int foreground = -1;
36 public int background = -1;
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;
50 public PAINTSTRUCT ps;
51 public int layout = -1;
52 public long hPen, hOldPen, hBrush, hOldBrush, hNullBitmap,
53 hwnd, gdipGraphics, gdipPen, gdipBrush, gdipFgBrush, gdipBgBrush,
55 public float gdipXOffset, gdipYOffset;
56 public int uiState = 0;
57 public boolean focusDrawn;