comparison dwt/graphics/GCData.d @ 0:380af2bdd8e5

Upload of whole dwt tree
author Jacob Carlborg <doob@me.com> <jacob.carlborg@gmail.com>
date Sat, 09 Aug 2008 17:00:02 +0200
parents
children 93b13b15f0b1
comparison
equal deleted inserted replaced
-1:000000000000 0:380af2bdd8e5
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 module dwt.graphics.GCData;
12
13 import dwt.dwthelper.utils;
14
15
16 import dwt.DWT;
17 import dwt.internal.cocoa.NSAffineTransform;
18 import dwt.internal.cocoa.NSBezierPath;
19 import dwt.internal.cocoa.NSRect;
20 import dwt.internal.cocoa.NSSize;
21 import dwt.internal.cocoa.NSView;
22
23 /**
24 * Instances of this class are descriptions of GCs in terms
25 * of unallocated platform-specific data fields.
26 * <p>
27 * <b>IMPORTANT:</b> This class is <em>not</em> part of the public
28 * API for DWT. It is marked public only so that it can be shared
29 * within the packages provided by DWT. It is not available on all
30 * platforms, and should never be called from application code.
31 * </p>
32 */
33 public final class GCData {
34 public Device device;
35 public int style, state = -1;
36 public float[] foreground;
37 public float[] background;
38 public Pattern foregroundPattern;
39 public Pattern backgroundPattern;
40 public Font font;
41 public int alpha = 0xFF;
42 public float lineWidth;
43 public int lineStyle = DWT.LINE_SOLID;
44 public int lineCap = DWT.CAP_FLAT;
45 public int lineJoin = DWT.JOIN_MITER;
46 public float lineDashesOffset;
47 public float[] lineDashes;
48 public float lineMiterLimit = 10;
49 public bool xorMode;
50 public int antialias = DWT.DEFAULT;
51 public int textAntialias = DWT.DEFAULT;
52 public int fillRule = DWT.FILL_EVEN_ODD;
53 public int bitmapDataAddress;
54
55 public Image image;
56
57 public float drawXOffset, drawYOffset;
58 public NSRect paintRect;
59 public NSBezierPath path;
60 public NSAffineTransform transform, inverseTransform;
61 public NSBezierPath clipPath;
62 public NSView view;
63 public NSSize size;
64 }