OLD | NEW |
1 | 1 |
2 class CanvasRenderingContext2D extends CanvasRenderingContext native "*CanvasRen
deringContext2D" { | 2 class CanvasRenderingContext2D extends CanvasRenderingContext native "*CanvasRen
deringContext2D" { |
3 | 3 |
4 Dynamic fillStyle; | 4 Dynamic get fillStyle() native "return this.fillStyle;"; |
5 | 5 |
6 String font; | 6 void set fillStyle(Dynamic value) native "this.fillStyle = value;"; |
7 | 7 |
8 num globalAlpha; | 8 String get font() native "return this.font;"; |
9 | 9 |
10 String globalCompositeOperation; | 10 void set font(String value) native "this.font = value;"; |
11 | 11 |
12 String lineCap; | 12 num get globalAlpha() native "return this.globalAlpha;"; |
13 | 13 |
14 String lineJoin; | 14 void set globalAlpha(num value) native "this.globalAlpha = value;"; |
15 | 15 |
16 num lineWidth; | 16 String get globalCompositeOperation() native "return this.globalCompositeOpera
tion;"; |
17 | 17 |
18 num miterLimit; | 18 void set globalCompositeOperation(String value) native "this.globalCompositeOp
eration = value;"; |
19 | 19 |
20 num shadowBlur; | 20 String get lineCap() native "return this.lineCap;"; |
21 | 21 |
22 String shadowColor; | 22 void set lineCap(String value) native "this.lineCap = value;"; |
23 | 23 |
24 num shadowOffsetX; | 24 String get lineJoin() native "return this.lineJoin;"; |
25 | 25 |
26 num shadowOffsetY; | 26 void set lineJoin(String value) native "this.lineJoin = value;"; |
27 | 27 |
28 Dynamic strokeStyle; | 28 num get lineWidth() native "return this.lineWidth;"; |
29 | 29 |
30 String textAlign; | 30 void set lineWidth(num value) native "this.lineWidth = value;"; |
31 | 31 |
32 String textBaseline; | 32 num get miterLimit() native "return this.miterLimit;"; |
33 | 33 |
34 List webkitLineDash; | 34 void set miterLimit(num value) native "this.miterLimit = value;"; |
35 | 35 |
36 num webkitLineDashOffset; | 36 num get shadowBlur() native "return this.shadowBlur;"; |
| 37 |
| 38 void set shadowBlur(num value) native "this.shadowBlur = value;"; |
| 39 |
| 40 String get shadowColor() native "return this.shadowColor;"; |
| 41 |
| 42 void set shadowColor(String value) native "this.shadowColor = value;"; |
| 43 |
| 44 num get shadowOffsetX() native "return this.shadowOffsetX;"; |
| 45 |
| 46 void set shadowOffsetX(num value) native "this.shadowOffsetX = value;"; |
| 47 |
| 48 num get shadowOffsetY() native "return this.shadowOffsetY;"; |
| 49 |
| 50 void set shadowOffsetY(num value) native "this.shadowOffsetY = value;"; |
| 51 |
| 52 Dynamic get strokeStyle() native "return this.strokeStyle;"; |
| 53 |
| 54 void set strokeStyle(Dynamic value) native "this.strokeStyle = value;"; |
| 55 |
| 56 String get textAlign() native "return this.textAlign;"; |
| 57 |
| 58 void set textAlign(String value) native "this.textAlign = value;"; |
| 59 |
| 60 String get textBaseline() native "return this.textBaseline;"; |
| 61 |
| 62 void set textBaseline(String value) native "this.textBaseline = value;"; |
| 63 |
| 64 List get webkitLineDash() native "return this.webkitLineDash;"; |
| 65 |
| 66 void set webkitLineDash(List value) native "this.webkitLineDash = value;"; |
| 67 |
| 68 num get webkitLineDashOffset() native "return this.webkitLineDashOffset;"; |
| 69 |
| 70 void set webkitLineDashOffset(num value) native "this.webkitLineDashOffset = v
alue;"; |
37 | 71 |
38 void arc(num x, num y, num radius, num startAngle, num endAngle, bool anticloc
kwise) native; | 72 void arc(num x, num y, num radius, num startAngle, num endAngle, bool anticloc
kwise) native; |
39 | 73 |
40 void arcTo(num x1, num y1, num x2, num y2, num radius) native; | 74 void arcTo(num x1, num y1, num x2, num y2, num radius) native; |
41 | 75 |
42 void beginPath() native; | 76 void beginPath() native; |
43 | 77 |
44 void bezierCurveTo(num cp1x, num cp1y, num cp2x, num cp2y, num x, num y) nativ
e; | 78 void bezierCurveTo(num cp1x, num cp1y, num cp2x, num cp2y, num x, num y) nativ
e; |
45 | 79 |
46 void clearRect(num x, num y, num width, num height) native; | 80 void clearRect(num x, num y, num width, num height) native; |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
116 void stroke() native; | 150 void stroke() native; |
117 | 151 |
118 void strokeRect(num x, num y, num width, num height, [num lineWidth = null]) n
ative; | 152 void strokeRect(num x, num y, num width, num height, [num lineWidth = null]) n
ative; |
119 | 153 |
120 void strokeText(String text, num x, num y, [num maxWidth = null]) native; | 154 void strokeText(String text, num x, num y, [num maxWidth = null]) native; |
121 | 155 |
122 void transform(num m11, num m12, num m21, num m22, num dx, num dy) native; | 156 void transform(num m11, num m12, num m21, num m22, num dx, num dy) native; |
123 | 157 |
124 void translate(num tx, num ty) native; | 158 void translate(num tx, num ty) native; |
125 } | 159 } |
OLD | NEW |