1 /*******************************************************************************
2  * Copyright (c) 2000, 2008 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  * Port to the D programming language:
11  *     Frank Benoit <benoit@tionex.de>
12  *******************************************************************************/
13 module org.eclipse.swt.graphics.GCData;
14 
15 import java.lang.all;
16 
17 import org.eclipse.swt.internal.gtk.OS;
18 import org.eclipse.swt.SWT;
19 import org.eclipse.swt.graphics.Device;
20 import org.eclipse.swt.graphics.Pattern;
21 import org.eclipse.swt.graphics.Image;
22 import org.eclipse.swt.graphics.Font;
23 
24 /**
25  * Instances of this class are descriptions of GCs in terms
26  * of unallocated platform-specific data fields.
27  * <p>
28  * <b>IMPORTANT:</b> This class is <em>not</em> part of the public
29  * API for SWT. It is marked public only so that it can be shared
30  * within the packages provided by SWT. It is not available on all
31  * platforms, and should never be called from application code.
32  * </p>
33  * @see <a href="http://www.eclipse.org/swt/">Sample code and further information</a>
34  */
35 public final class GCData {
36     public Device device;
37     public int style, state = -1;
38     public GdkColor* foreground;
39     public GdkColor* background;
40     public Font font;
41     public Pattern foregroundPattern;
42     public Pattern backgroundPattern;
43     public GdkRegion* clipRgn;
44     public float lineWidth = 0;
45     public int lineStyle = SWT.LINE_SOLID;
46     public float[] lineDashes;
47     public float lineDashesOffset = 0;
48     public float lineMiterLimit = 10;
49     public int lineCap = SWT.CAP_FLAT;
50     public int lineJoin = SWT.JOIN_MITER;
51     public bool xorMode;
52     public int alpha = 0xFF;
53     public int interpolation = SWT.DEFAULT;
54 
55     public PangoContext* context;
56     public PangoLayout* layout;
57     public GdkRegion* damageRgn;
58     public Image image;
59     public GdkDrawable* drawable;
60     public cairo_t* cairo;
61     public double cairoXoffset = 0, cairoYoffset = 0;
62     public bool disposeCairo;
63     public double[] clippingTransform;
64     public String str;
65     public int stringWidth = -1;
66     public int stringHeight = -1;
67     public int drawFlags;
68     public bool realDrawable;
69     public int width = -1, height = -1;
70 }
71