OLD | NEW |
(Empty) | |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 import 'dart:sky' as sky; |
| 6 import 'package:sky/framework/fn2.dart'; |
| 7 |
| 8 class ContainerApp extends App { |
| 9 UINode build() { |
| 10 return new EventListenerNode( |
| 11 new Rectangle(0xFF00FFFF), |
| 12 onPointerDown: _handlePointerDown); |
| 13 } |
| 14 |
| 15 void _handlePointerDown(sky.PointerEvent event) { |
| 16 print("_handlePointerDown"); |
| 17 } |
| 18 } |
| 19 |
| 20 void main() { |
| 21 new ContainerApp(); |
| 22 } |
OLD | NEW |