X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=plugins%2Fdali-swig%2Fexamples%2Fhello-world.cs;h=a392996ceced394a755c5c544e9b3a3763804706;hp=324d5ddd8f90497d339ec53ebf73af53b8bb26e4;hb=bc7cb028cf42ff75d7644c278201883ea3426199;hpb=01bb79ad3a163f47b5b98ee2a89cbde8ddca9d3c diff --git a/plugins/dali-swig/examples/hello-world.cs b/plugins/dali-swig/examples/hello-world.cs index 324d5dd..a392996 100755 --- a/plugins/dali-swig/examples/hello-world.cs +++ b/plugins/dali-swig/examples/hello-world.cs @@ -39,7 +39,7 @@ namespace MyCSharpExample Console.WriteLine("Customized Application Initialize event handler"); Stage stage = Stage.Instance; stage.BackgroundColor = Color.White; - stage.TouchEvent += OnStageTouched; + stage.Touch += OnStageTouched; // Add a _text label to the stage _text = new TextLabel("Hello Mono World"); @@ -66,7 +66,7 @@ namespace MyCSharpExample public void OnStageTouched(object sender, Stage.TouchEventArgs e) { // Only animate the _text label when touch down happens - if( e.TouchData.GetState(0) == PointStateType.DOWN ) + if( e.Touch.GetState(0) == PointStateType.DOWN ) { Console.WriteLine("Customized Stage Touch event handler"); // Create a new _animation @@ -81,14 +81,14 @@ namespace MyCSharpExample StartTime = 0, EndTime = 500, TargetProperty = "Orientation", - Destination = new Quaternion( new Radian( new Degree( 180.0f ) ), Vect3.Xaxis) + Destination = new Rotation( new Radian( new Degree( 180.0f ) ), Vect3.Xaxis) }; _animation.AnimateTo(_text); _animation.StartTime = 500; _animation.EndTime = 1000; _animation.TargetProperty = "Orientation"; - _animation.Destination = new Quaternion( new Radian( new Degree( 0.0f ) ), Vect3.Xaxis ); + _animation.Destination = new Rotation( new Radian( new Degree( 0.0f ) ), Vect3.Xaxis ); _animation.AnimateTo(_text); _animation.StartTime = 1000;