Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(397)

Side by Side Diff: sky/sdk/example/game/lib/sprite_box.dart

Issue 1210173004: Move examples to //sky/sdk/example (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « sky/sdk/example/game/lib/sprite.dart ('k') | sky/sdk/example/game/lib/sprite_widget.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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 }
OLDNEW
« no previous file with comments | « sky/sdk/example/game/lib/sprite.dart ('k') | sky/sdk/example/game/lib/sprite_widget.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698