[Tizen] Use Handle::GetCurrentProperty instead of Devel API 89/130389/1 accepted/tizen/unified/20170523.050803 submit/tizen/20170522.141510 tizen_4.0.m1_release
authorminho.sun <minho.sun@samsung.com>
Mon, 22 May 2017 06:22:21 +0000 (15:22 +0900)
committerminho.sun <minho.sun@samsung.com>
Mon, 22 May 2017 07:17:24 +0000 (16:17 +0900)
DevelHandle::GetCurrentProperty is moved to public.
So, use Handle::GetCurrentProperty instead of devel.

Change-Id: Id9058646e3502b756c81a1117872cd5fd08a8d51
Signed-off-by: minho.sun <minho.sun@samsung.com>
examples/blocks/blocks-example.cpp

index ed7195f..e22260d 100644 (file)
@@ -25,8 +25,6 @@
 #include <dali-toolkit/dali-toolkit.h>
 #include "shared/view.h"
 
-#include <dali/devel-api/object/handle-devel.h>
-
 using namespace Dali;
 using namespace Dali::Toolkit;
 using namespace DemoHelper;
@@ -744,7 +742,7 @@ private:
   void OnHitPaddle(PropertyNotification& source)
   {
     Actor delegate = Actor::DownCast(source.GetTarget());
-    Vector3 collisionVector = DevelHandle::GetCurrentProperty< Vector3 >( delegate, source.GetTargetProperty() );
+    Vector3 collisionVector = delegate.GetCurrentProperty< Vector3 >( source.GetTargetProperty() );
     Vector3 ballRelativePosition(mBall.GetCurrentPosition() - mPaddle.GetCurrentPosition());
     ballRelativePosition.Normalize();
 
@@ -779,7 +777,7 @@ private:
   void OnHitBrick(PropertyNotification& source)
   {
     Actor brick = Actor::DownCast(source.GetTarget());
-    Vector3 collisionVector = DevelHandle::GetCurrentProperty< Vector3 >( brick, source.GetTargetProperty() );
+    Vector3 collisionVector = brick.GetCurrentProperty< Vector3 >( source.GetTargetProperty() );
 
     const float normalVelocity = fabsf(mBallVelocity.Dot(collisionVector));
     mBallVelocity += collisionVector * normalVelocity * 2.0f;