root/dwt/graphics/GCData.d

Revision 246:fd9c62a2998e, 2.3 kB (checked in by Frank Benoit <benoit@tionex.de>, 6 months ago)

Updater SWT 3.4M7 to 3.4

Line 
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 dwt.graphics.GCData;
14
15
16 import dwt.DWT;
17 import dwt.internal.win32.WINTYPES;
18 import dwt.internal.gdip.Gdip;
19 import dwt.graphics.Image;
20 import dwt.graphics.Device;
21 import dwt.graphics.Pattern;
22 import dwt.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 DWT. It is marked public only so that it can be shared
30  * within the packages provided by DWT. 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
36 public final class GCData {
37     public Device device;
38     public int style, state = -1;
39     public int foreground = -1;
40     public int background = -1;
41     public Font font;
42     public Pattern foregroundPattern;
43     public Pattern backgroundPattern;
44     public int lineStyle = DWT.LINE_SOLID;
45     public float lineWidth;
46     public int lineCap = DWT.CAP_FLAT;
47     public int lineJoin = DWT.JOIN_MITER;
48     public float lineDashesOffset;
49     public float[] lineDashes;
50     public float lineMiterLimit = 10;
51     public int alpha = 0xFF;
52
53     public Image image;
54     public HPEN hPen, hOldPen;
55     public HBRUSH hBrush, hOldBrush;
56     public HBITMAP hNullBitmap;
57     public HWND hwnd;
58     public PAINTSTRUCT* ps;
59     public int layout = -1;
60     public Gdip.Graphics gdipGraphics;
61     public Gdip.Pen gdipPen;
62     public Gdip.Brush gdipBrush;
63     public Gdip.SolidBrush gdipFgBrush;
64     public Gdip.SolidBrush gdipBgBrush;
65     public Gdip.Font gdipFont;
66     public float gdipXOffset, gdipYOffset;
67     public int uiState = 0;
68     public bool focusDrawn;
69 }
Note: See TracBrowser for help on using the browser.