annotate dwt/graphics/GCData.d @ 246:fd9c62a2998e

Updater SWT 3.4M7 to 3.4
author Frank Benoit <benoit@tionex.de>
date Tue, 01 Jul 2008 10:15:59 +0200
parents 36f5cb12e1a2
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
23
f5482da87ed8 Image, ImageData
Frank Benoit <benoit@tionex.de>
parents: 11
diff changeset
1 /*******************************************************************************
246
fd9c62a2998e Updater SWT 3.4M7 to 3.4
Frank Benoit <benoit@tionex.de>
parents: 213
diff changeset
2 * Copyright (c) 2000, 2008 IBM Corporation and others.
11
211c11b9bd6c Drawable, GCData as proto
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
3 * All rights reserved. This program and the accompanying materials
211c11b9bd6c Drawable, GCData as proto
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
4 * are made available under the terms of the Eclipse Public License v1.0
211c11b9bd6c Drawable, GCData as proto
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
5 * which accompanies this distribution, and is available at
211c11b9bd6c Drawable, GCData as proto
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
6 * http://www.eclipse.org/legal/epl-v10.html
211c11b9bd6c Drawable, GCData as proto
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
7 *
211c11b9bd6c Drawable, GCData as proto
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
8 * Contributors:
211c11b9bd6c Drawable, GCData as proto
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
9 * IBM Corporation - initial API and implementation
211c11b9bd6c Drawable, GCData as proto
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
10 * Port to the D programming language:
211c11b9bd6c Drawable, GCData as proto
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
11 * Frank Benoit <benoit@tionex.de>
211c11b9bd6c Drawable, GCData as proto
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
12 *******************************************************************************/
211c11b9bd6c Drawable, GCData as proto
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
13 module dwt.graphics.GCData;
211c11b9bd6c Drawable, GCData as proto
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
14
23
f5482da87ed8 Image, ImageData
Frank Benoit <benoit@tionex.de>
parents: 11
diff changeset
15
11
211c11b9bd6c Drawable, GCData as proto
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
16 import dwt.DWT;
211c11b9bd6c Drawable, GCData as proto
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
17 import dwt.internal.win32.WINTYPES;
24
7b3e88548661 GCData, 1/3 of GC
Frank Benoit <benoit@tionex.de>
parents: 23
diff changeset
18 import dwt.internal.gdip.Gdip;
23
f5482da87ed8 Image, ImageData
Frank Benoit <benoit@tionex.de>
parents: 11
diff changeset
19 import dwt.graphics.Image;
f5482da87ed8 Image, ImageData
Frank Benoit <benoit@tionex.de>
parents: 11
diff changeset
20 import dwt.graphics.Device;
24
7b3e88548661 GCData, 1/3 of GC
Frank Benoit <benoit@tionex.de>
parents: 23
diff changeset
21 import dwt.graphics.Pattern;
213
36f5cb12e1a2 Update to SWT 3.4M7
Frank Benoit <benoit@tionex.de>
parents: 53
diff changeset
22 import dwt.graphics.Font;
11
211c11b9bd6c Drawable, GCData as proto
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
23
211c11b9bd6c Drawable, GCData as proto
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
24 /**
211c11b9bd6c Drawable, GCData as proto
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
25 * Instances of this class are descriptions of GCs in terms
211c11b9bd6c Drawable, GCData as proto
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
26 * of unallocated platform-specific data fields.
211c11b9bd6c Drawable, GCData as proto
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
27 * <p>
211c11b9bd6c Drawable, GCData as proto
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
28 * <b>IMPORTANT:</b> This class is <em>not</em> part of the public
211c11b9bd6c Drawable, GCData as proto
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
29 * API for DWT. It is marked public only so that it can be shared
211c11b9bd6c Drawable, GCData as proto
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
30 * within the packages provided by DWT. It is not available on all
211c11b9bd6c Drawable, GCData as proto
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
31 * platforms, and should never be called from application code.
211c11b9bd6c Drawable, GCData as proto
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
32 * </p>
246
fd9c62a2998e Updater SWT 3.4M7 to 3.4
Frank Benoit <benoit@tionex.de>
parents: 213
diff changeset
33 * @see <a href="http://www.eclipse.org/swt/">Sample code and further information</a>
11
211c11b9bd6c Drawable, GCData as proto
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
34 */
211c11b9bd6c Drawable, GCData as proto
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
35
211c11b9bd6c Drawable, GCData as proto
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
36 public final class GCData {
211c11b9bd6c Drawable, GCData as proto
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
37 public Device device;
211c11b9bd6c Drawable, GCData as proto
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
38 public int style, state = -1;
211c11b9bd6c Drawable, GCData as proto
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
39 public int foreground = -1;
211c11b9bd6c Drawable, GCData as proto
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
40 public int background = -1;
213
36f5cb12e1a2 Update to SWT 3.4M7
Frank Benoit <benoit@tionex.de>
parents: 53
diff changeset
41 public Font font;
11
211c11b9bd6c Drawable, GCData as proto
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
42 public Pattern foregroundPattern;
211c11b9bd6c Drawable, GCData as proto
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
43 public Pattern backgroundPattern;
211c11b9bd6c Drawable, GCData as proto
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
44 public int lineStyle = DWT.LINE_SOLID;
211c11b9bd6c Drawable, GCData as proto
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
45 public float lineWidth;
211c11b9bd6c Drawable, GCData as proto
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
46 public int lineCap = DWT.CAP_FLAT;
211c11b9bd6c Drawable, GCData as proto
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
47 public int lineJoin = DWT.JOIN_MITER;
211c11b9bd6c Drawable, GCData as proto
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
48 public float lineDashesOffset;
211c11b9bd6c Drawable, GCData as proto
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
49 public float[] lineDashes;
211c11b9bd6c Drawable, GCData as proto
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
50 public float lineMiterLimit = 10;
211c11b9bd6c Drawable, GCData as proto
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
51 public int alpha = 0xFF;
211c11b9bd6c Drawable, GCData as proto
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
52
211c11b9bd6c Drawable, GCData as proto
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
53 public Image image;
24
7b3e88548661 GCData, 1/3 of GC
Frank Benoit <benoit@tionex.de>
parents: 23
diff changeset
54 public HPEN hPen, hOldPen;
7b3e88548661 GCData, 1/3 of GC
Frank Benoit <benoit@tionex.de>
parents: 23
diff changeset
55 public HBRUSH hBrush, hOldBrush;
7b3e88548661 GCData, 1/3 of GC
Frank Benoit <benoit@tionex.de>
parents: 23
diff changeset
56 public HBITMAP hNullBitmap;
7b3e88548661 GCData, 1/3 of GC
Frank Benoit <benoit@tionex.de>
parents: 23
diff changeset
57 public HWND hwnd;
7b3e88548661 GCData, 1/3 of GC
Frank Benoit <benoit@tionex.de>
parents: 23
diff changeset
58 public PAINTSTRUCT* ps;
11
211c11b9bd6c Drawable, GCData as proto
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
59 public int layout = -1;
53
0405e18fec7f Gdiplus implemented - test build of dwt.lib successful; updated graphics package as necessary
John Reimer <terminal.node@gmail.com
parents: 24
diff changeset
60 public Gdip.Graphics gdipGraphics;
0405e18fec7f Gdiplus implemented - test build of dwt.lib successful; updated graphics package as necessary
John Reimer <terminal.node@gmail.com
parents: 24
diff changeset
61 public Gdip.Pen gdipPen;
0405e18fec7f Gdiplus implemented - test build of dwt.lib successful; updated graphics package as necessary
John Reimer <terminal.node@gmail.com
parents: 24
diff changeset
62 public Gdip.Brush gdipBrush;
0405e18fec7f Gdiplus implemented - test build of dwt.lib successful; updated graphics package as necessary
John Reimer <terminal.node@gmail.com
parents: 24
diff changeset
63 public Gdip.SolidBrush gdipFgBrush;
0405e18fec7f Gdiplus implemented - test build of dwt.lib successful; updated graphics package as necessary
John Reimer <terminal.node@gmail.com
parents: 24
diff changeset
64 public Gdip.SolidBrush gdipBgBrush;
0405e18fec7f Gdiplus implemented - test build of dwt.lib successful; updated graphics package as necessary
John Reimer <terminal.node@gmail.com
parents: 24
diff changeset
65 public Gdip.Font gdipFont;
11
211c11b9bd6c Drawable, GCData as proto
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
66 public float gdipXOffset, gdipYOffset;
213
36f5cb12e1a2 Update to SWT 3.4M7
Frank Benoit <benoit@tionex.de>
parents: 53
diff changeset
67 public int uiState = 0;
36f5cb12e1a2 Update to SWT 3.4M7
Frank Benoit <benoit@tionex.de>
parents: 53
diff changeset
68 public bool focusDrawn;
11
211c11b9bd6c Drawable, GCData as proto
Frank Benoit <benoit@tionex.de>
parents:
diff changeset
69 }
24
7b3e88548661 GCData, 1/3 of GC
Frank Benoit <benoit@tionex.de>
parents: 23
diff changeset
70