01: /*******************************************************************************
02: * Copyright (c) 2000, 2007 IBM Corporation and others.
03: * All rights reserved. This program and the accompanying materials
04: * are made available under the terms of the Eclipse Public License v1.0
05: * which accompanies this distribution, and is available at
06: * http://www.eclipse.org/legal/epl-v10.html
07: *
08: * Contributors:
09: * IBM Corporation - initial API and implementation
10: *******************************************************************************/package org.eclipse.swt.graphics;
11:
12: import org.eclipse.swt.*;
13: import org.eclipse.swt.internal.carbon.Rect;
14:
15: /**
16: * Instances of this class are descriptions of GCs in terms
17: * of unallocated platform-specific data fields.
18: * <p>
19: * <b>IMPORTANT:</b> This class is <em>not</em> part of the public
20: * API for SWT. It is marked public only so that it can be shared
21: * within the packages provided by SWT. It is not available on all
22: * platforms, and should never be called from application code.
23: * </p>
24: */
25: public final class GCData {
26: public Device device;
27: public int style, state = -1;
28: public float[] foreground;
29: public float[] background;
30: public Pattern foregroundPattern;
31: public Pattern backgroundPattern;
32: public Font font;
33: public int alpha = 0xFF;
34: public float[] transform;
35: public float[] inverseTransform;
36: public float[] clippingTransform;
37: public int clipRgn;
38: public float lineWidth;
39: public int lineStyle = SWT.LINE_SOLID;
40: public int lineCap = SWT.CAP_FLAT;
41: public int lineJoin = SWT.JOIN_MITER;
42: public float lineDashesOffset;
43: public float[] lineDashes;
44: public float lineMiterLimit = 10;
45: public boolean xorMode;
46: public int antialias = SWT.DEFAULT;
47: public int textAntialias = SWT.DEFAULT;
48: public int fillRule = SWT.FILL_EVEN_ODD;
49:
50: public float drawXOffset, drawYOffset;
51: public int forePattern;
52: public int backPattern;
53: public Image image;
54: public int fontAscent;
55: public int fontDescent;
56: public int layout;
57: public int atsuiStyle;
58: public int tabs;
59: public String string;
60: public int stringLength;
61: public int stringWidth = -1;
62: public int stringHeight = -1;
63: public int drawFlags;
64: public int stringPtr;
65: public Thread thread;
66: public int window;
67: public int paintEvent;
68: public int visibleRgn;
69: public int control;
70: public int port;
71: public Rect portRect;
72: public Rect controlRect;
73: public Rect insetRect;
74: public boolean updateClip;
75: }
|