X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=dali-toolkit%2Finternal%2Fcontrols%2Fscrollable%2Fscroll-view%2Fscroll-overshoot-indicator-impl.cpp;h=c02c7ec6f00c64433c635fe93695ec818bca38dd;hp=6bd7c3bf27e9cae77c4b277ff41807fe5fc82422;hb=405f6216e6bb0c6c5e88a809452f5ecf490ea1ba;hpb=8dd298d8917641dcc284fceef820410451fb81cb diff --git a/dali-toolkit/internal/controls/scrollable/scroll-view/scroll-overshoot-indicator-impl.cpp b/dali-toolkit/internal/controls/scrollable/scroll-view/scroll-overshoot-indicator-impl.cpp index 6bd7c3b..c02c7ec 100644 --- a/dali-toolkit/internal/controls/scrollable/scroll-view/scroll-overshoot-indicator-impl.cpp +++ b/dali-toolkit/internal/controls/scrollable/scroll-view/scroll-overshoot-indicator-impl.cpp @@ -147,7 +147,7 @@ void ScrollOvershootEffectRipple::Apply() // make sure height is set, since we only create a constraint for image width mOvershootSize = mAttachedScrollView.GetOvershootSize(); - mOvershootOverlay.SetSize( mOvershootSize ); + mOvershootOverlay.SetProperty( Actor::Property::SIZE, mOvershootSize ); mAttachedScrollView.AddOverlay(mOvershootOverlay); @@ -197,7 +197,7 @@ void ScrollOvershootEffectRipple::UpdatePropertyNotifications() increaseStep = MAX_OVERSHOOT_NOTIFY_AMOUNT; } mOvershootIncreaseNotification = self.AddPropertyNotification( mOvershootProperty, OutsideCondition(-increaseStep, increaseStep) ); - mOvershootIncreaseNotification.SetNotifyMode(PropertyNotification::NotifyOnTrue); + mOvershootIncreaseNotification.SetNotifyMode(PropertyNotification::NOTIFY_ON_TRUE); mOvershootIncreaseNotification.NotifySignal().Connect(this, &ScrollOvershootEffectRipple::OnOvershootNotification); } @@ -215,7 +215,7 @@ void ScrollOvershootEffectRipple::UpdatePropertyNotifications() reduceStep = MIN_OVERSHOOT_NOTIFY_AMOUNT; } mOvershootDecreaseNotification = self.AddPropertyNotification( mOvershootProperty, InsideCondition(-reduceStep, reduceStep) ); - mOvershootDecreaseNotification.SetNotifyMode(PropertyNotification::NotifyOnTrue); + mOvershootDecreaseNotification.SetNotifyMode(PropertyNotification::NOTIFY_ON_TRUE); mOvershootDecreaseNotification.NotifySignal().Connect(this, &ScrollOvershootEffectRipple::OnOvershootNotification); } } @@ -244,15 +244,15 @@ void ScrollOvershootEffectRipple::UpdateVisibility( bool visible ) if(IsVertical()) { mOvershootOverlay.SetProperty( Actor::Property::ORIENTATION, Quaternion( Quaternion( Radian( 0.0f ), Vector3::ZAXIS ) ) ); - mOvershootOverlay.SetSize(parentSize.width, GetBounceActorHeight(parentSize.width, mOvershootSize.height), size.depth); + mOvershootOverlay.SetProperty( Actor::Property::SIZE, Vector3( parentSize.width, GetBounceActorHeight(parentSize.width, mOvershootSize.height), size.depth ) ); } else { mOvershootOverlay.SetProperty( Actor::Property::ORIENTATION, Quaternion( Quaternion( Radian( 1.5f * Math::PI ), Vector3::ZAXIS ) ) ); - mOvershootOverlay.SetSize(parentSize.height, GetBounceActorHeight(parentSize.height, mOvershootSize.height), size.depth); + mOvershootOverlay.SetProperty( Actor::Property::SIZE, Vector3( parentSize.height, GetBounceActorHeight(parentSize.height, mOvershootSize.height), size.depth ) ); relativeOffset = Vector3(0.0f, 1.0f, 0.0f); } - mOvershootOverlay.SetPosition(relativeOffset * parentSize); + mOvershootOverlay.SetProperty( Actor::Property::POSITION, relativeOffset * parentSize ); } else { @@ -263,16 +263,16 @@ void ScrollOvershootEffectRipple::UpdateVisibility( bool visible ) if(IsVertical()) { mOvershootOverlay.SetProperty( Actor::Property::ORIENTATION, Quaternion( Quaternion( Radian( Math::PI ), Vector3::ZAXIS ) ) ); - mOvershootOverlay.SetSize(parentSize.width, GetBounceActorHeight(parentSize.width, mOvershootSize.height), size.depth); + mOvershootOverlay.SetProperty( Actor::Property::SIZE, Vector3( parentSize.width, GetBounceActorHeight(parentSize.width, mOvershootSize.height), size.depth ) ); relativeOffset = Vector3(1.0f, 1.0f, 0.0f); } else { mOvershootOverlay.SetProperty( Actor::Property::ORIENTATION, Quaternion( Quaternion( Radian( 0.5f * Math::PI ), Vector3::ZAXIS ) ) ); - mOvershootOverlay.SetSize(parentSize.height, GetBounceActorHeight(parentSize.height, mOvershootSize.height), size.depth); + mOvershootOverlay.SetProperty( Actor::Property::SIZE, Vector3( parentSize.height, GetBounceActorHeight(parentSize.height, mOvershootSize.height), size.depth ) ); relativeOffset = Vector3(1.0f, 0.0f, 0.0f); } - mOvershootOverlay.SetPosition(relativeOffset * parentSize); + mOvershootOverlay.SetProperty( Actor::Property::POSITION, relativeOffset * parentSize ); } } }