| OLD | NEW |
| 1 part of sprites; | 1 part of sprites; |
| 2 | 2 |
| 3 /// Options for setting up a [SpriteBox]. | 3 /// Options for setting up a [SpriteBox]. |
| 4 /// | 4 /// |
| 5 /// * [nativePoints], use the same points as the parent [Widget]. | 5 /// * [nativePoints], use the same points as the parent [Widget]. |
| 6 /// * [letterbox], use the size of the root node for the coordinate system, con
strain the aspect ratio and trim off | 6 /// * [letterbox], use the size of the root node for the coordinate system, con
strain the aspect ratio and trim off |
| 7 /// areas that end up outside the screen. | 7 /// areas that end up outside the screen. |
| 8 /// * [stretch], use the size of the root node for the coordinate system, scale
it to fit the size of the box. | 8 /// * [stretch], use the size of the root node for the coordinate system, scale
it to fit the size of the box. |
| 9 /// * [scaleToFit], similar to the letterbox option, but instead of trimming ar
eas the sprite system will be scaled | 9 /// * [scaleToFit], similar to the letterbox option, but instead of trimming ar
eas the sprite system will be scaled |
| 10 /// down to fit the box. | 10 /// down to fit the box. |
| (...skipping 361 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 372 /// if (event.pointer == firstPointerId) { | 372 /// if (event.pointer == firstPointerId) { |
| 373 /// // Do something | 373 /// // Do something |
| 374 /// } | 374 /// } |
| 375 final int pointer; | 375 final int pointer; |
| 376 | 376 |
| 377 /// Creates a new SpriteBoxEvent, typically this is done internally inside the
SpriteBox. | 377 /// Creates a new SpriteBoxEvent, typically this is done internally inside the
SpriteBox. |
| 378 /// | 378 /// |
| 379 /// var event = new SpriteBoxEvent(new Point(50.0, 50.0), 'pointerdown', 0
); | 379 /// var event = new SpriteBoxEvent(new Point(50.0, 50.0), 'pointerdown', 0
); |
| 380 SpriteBoxEvent(this.boxPosition, this.type, this.pointer); | 380 SpriteBoxEvent(this.boxPosition, this.type, this.pointer); |
| 381 } | 381 } |
| OLD | NEW |