KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > eclipse > swt > graphics > GCData


1 /*******************************************************************************
2  * Copyright (c) 2000, 2007 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  *******************************************************************************/

11 package org.eclipse.swt.graphics;
12
13  
14 import org.eclipse.swt.*;
15 import org.eclipse.swt.internal.win32.*;
16
17 /**
18  * Instances of this class are descriptions of GCs in terms
19  * of unallocated platform-specific data fields.
20  * <p>
21  * <b>IMPORTANT:</b> This class is <em>not</em> part of the public
22  * API for SWT. It is marked public only so that it can be shared
23  * within the packages provided by SWT. It is not available on all
24  * platforms, and should never be called from application code.
25  * </p>
26  */

27
28 public final class GCData {
29     public Device device;
30     public int style, state = -1;
31     public int foreground = -1;
32     public int background = -1;
33     public int hFont;
34     public Pattern foregroundPattern;
35     public Pattern backgroundPattern;
36     public int lineStyle = SWT.LINE_SOLID;
37     public float lineWidth;
38     public int lineCap = SWT.CAP_FLAT;
39     public int lineJoin = SWT.JOIN_MITER;
40     public float lineDashesOffset;
41     public float[] lineDashes;
42     public float lineMiterLimit = 10;
43     public int alpha = 0xFF;
44     public int uiState = 0;
45
46     public Image image;
47     public int hPen, hOldPen;
48     public int hBrush, hOldBrush;
49     public int hNullBitmap;
50     public int hwnd;
51     public PAINTSTRUCT ps;
52     public int layout = -1;
53     public int gdipGraphics;
54     public int gdipPen;
55     public int gdipBrush;
56     public int gdipFgBrush;
57     public int gdipBgBrush;
58     public int gdipFont;
59     public float gdipXOffset, gdipYOffset;
60 }
61
Popular Tags