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

Side by Side Diff: sky/sdk/example/game/lib/sprite_widget.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_box.dart ('k') | sky/sdk/example/game/lib/sprites.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 /// A widget that uses a [SpriteBox] to render a sprite node tree to the screen. 3 /// A widget that uses a [SpriteBox] to render a sprite node tree to the screen.
4 class SpriteWidget extends OneChildRenderObjectWrapper { 4 class SpriteWidget extends OneChildRenderObjectWrapper {
5 5
6 /// The rootNode of the sprite node tree. 6 /// The rootNode of the sprite node tree.
7 /// 7 ///
8 /// var node = mySpriteWidget.rootNode; 8 /// var node = mySpriteWidget.rootNode;
9 final NodeWithSize rootNode; 9 final NodeWithSize rootNode;
10 10
(...skipping 18 matching lines...) Expand all
29 SpriteBox createNode() => new SpriteBox(rootNode, transformMode); 29 SpriteBox createNode() => new SpriteBox(rootNode, transformMode);
30 30
31 void syncRenderObject(SpriteWidget old) { 31 void syncRenderObject(SpriteWidget old) {
32 super.syncRenderObject(old); 32 super.syncRenderObject(old);
33 33
34 // SpriteBox doesn't allow mutation of these properties 34 // SpriteBox doesn't allow mutation of these properties
35 assert(rootNode == root.rootNode); 35 assert(rootNode == root.rootNode);
36 assert(transformMode == root._transformMode); 36 assert(transformMode == root._transformMode);
37 } 37 }
38 } 38 }
OLDNEW
« no previous file with comments | « sky/sdk/example/game/lib/sprite_box.dart ('k') | sky/sdk/example/game/lib/sprites.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698