Mercurial > projects > dwt-mac
comparison dwt/graphics/GCData.d @ 34:5123b17c98ef
Ported dwt.events.*, dwt.graphics.GC, Region, dwt.internal.image.*
author | Jacob Carlborg <doob@me.com> <jacob.carlborg@gmail.com> |
---|---|
date | Sun, 14 Sep 2008 01:45:57 +0200 |
parents | b9226997409c |
children | db5a898b2119 |
comparison
equal
deleted
inserted
replaced
33:965ac0a77267 | 34:5123b17c98ef |
---|---|
24 import dwt.dwthelper.utils; | 24 import dwt.dwthelper.utils; |
25 import dwt.graphics.Device; | 25 import dwt.graphics.Device; |
26 import dwt.graphics.Pattern; | 26 import dwt.graphics.Pattern; |
27 import dwt.graphics.Image; | 27 import dwt.graphics.Image; |
28 import dwt.graphics.Font; | 28 import dwt.graphics.Font; |
29 import dwt.internal.cocoa.CGFloat; | |
29 | 30 |
30 /** | 31 /** |
31 * Instances of this class are descriptions of GCs in terms | 32 * Instances of this class are descriptions of GCs in terms |
32 * of unallocated platform-specific data fields. | 33 * of unallocated platform-specific data fields. |
33 * <p> | 34 * <p> |
38 * </p> | 39 * </p> |
39 */ | 40 */ |
40 public final class GCData { | 41 public final class GCData { |
41 public Device device; | 42 public Device device; |
42 public int style, state = -1; | 43 public int style, state = -1; |
43 public float[] foreground; | 44 public CGFloat[] foreground; |
44 public float[] background; | 45 public CGFloat[] background; |
45 public Pattern foregroundPattern; | 46 public Pattern foregroundPattern; |
46 public Pattern backgroundPattern; | 47 public Pattern backgroundPattern; |
47 public Font font; | 48 public Font font; |
48 public int alpha = 0xFF; | 49 public int alpha = 0xFF; |
49 public float lineWidth; | 50 public CGFloat lineWidth; |
50 public int lineStyle = DWT.LINE_SOLID; | 51 public int lineStyle = DWT.LINE_SOLID; |
51 public int lineCap = DWT.CAP_FLAT; | 52 public int lineCap = DWT.CAP_FLAT; |
52 public int lineJoin = DWT.JOIN_MITER; | 53 public int lineJoin = DWT.JOIN_MITER; |
53 public float lineDashesOffset; | 54 public CGFloat lineDashesOffset; |
54 public float[] lineDashes; | 55 public CGFloat[] lineDashes; |
55 public float lineMiterLimit = 10; | 56 public CGFloat lineMiterLimit = 10; |
56 public bool xorMode; | 57 public bool xorMode; |
57 public int antialias = DWT.DEFAULT; | 58 public int antialias = DWT.DEFAULT; |
58 public int textAntialias = DWT.DEFAULT; | 59 public int textAntialias = DWT.DEFAULT; |
59 public int fillRule = DWT.FILL_EVEN_ODD; | 60 public int fillRule = DWT.FILL_EVEN_ODD; |
60 public ubyte* bitmapDataAddress; | 61 public ubyte* bitmapDataAddress; |
61 | 62 |
62 public Image image; | 63 public Image image; |
63 | 64 |
64 public float drawXOffset, drawYOffset; | 65 public CGFloat drawXOffset, drawYOffset; |
65 public NSRect paintRect; | 66 public NSRect paintRect; |
66 public NSBezierPath path; | 67 public NSBezierPath path; |
67 public NSAffineTransform transform, inverseTransform; | 68 public NSAffineTransform transform, inverseTransform; |
68 public NSBezierPath clipPath; | 69 public NSBezierPath clipPath; |
69 public NSView view; | 70 public NSView view; |