From: minho.sun Date: Mon, 22 May 2017 06:22:21 +0000 (+0900) Subject: Use Handle::GetCurrentProperty instead of Devel API X-Git-Tag: dali_1.2.41~1^2 X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-demo.git;a=commitdiff_plain;h=00d626babc4777951e1b75a6f9ee90e502940c38 Use Handle::GetCurrentProperty instead of Devel API DevelHandle::GetCurrentProperty is moved to public. So, use Handle::GetCurrentProperty instead of devel. Change-Id: I9747e0b068ff907b8488d814f08769cf89f2e84e Signed-off-by: minho.sun --- diff --git a/examples/blocks/blocks-example.cpp b/examples/blocks/blocks-example.cpp index ed7195f..e22260d 100644 --- a/examples/blocks/blocks-example.cpp +++ b/examples/blocks/blocks-example.cpp @@ -25,8 +25,6 @@ #include #include "shared/view.h" -#include - 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;