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-view-impl.cpp;h=fa65e959346fbe131b280a1e24c0962fe2af7c61;hp=2473439853027fd315ace94cfe2f458d1b117c54;hb=refs%2Fchanges%2F42%2F265542%2F2;hpb=a4b76a758b1cfce0564a018946a1e9575d08120f diff --git a/dali-toolkit/internal/controls/scrollable/scroll-view/scroll-view-impl.cpp b/dali-toolkit/internal/controls/scrollable/scroll-view/scroll-view-impl.cpp index 2473439..fa65e95 100644 --- a/dali-toolkit/internal/controls/scrollable/scroll-view/scroll-view-impl.cpp +++ b/dali-toolkit/internal/controls/scrollable/scroll-view/scroll-view-impl.cpp @@ -718,46 +718,6 @@ ScrollView::~ScrollView() DALI_LOG_SCROLL_STATE("[0x%X]", this); } -AlphaFunction ScrollView::GetScrollSnapAlphaFunction() const -{ - return mSnapAlphaFunction; -} - -void ScrollView::SetScrollSnapAlphaFunction(AlphaFunction alpha) -{ - mSnapAlphaFunction = alpha; -} - -AlphaFunction ScrollView::GetScrollFlickAlphaFunction() const -{ - return mFlickAlphaFunction; -} - -void ScrollView::SetScrollFlickAlphaFunction(AlphaFunction alpha) -{ - mFlickAlphaFunction = alpha; -} - -float ScrollView::GetScrollSnapDuration() const -{ - return mSnapDuration; -} - -void ScrollView::SetScrollSnapDuration(float time) -{ - mSnapDuration = time; -} - -float ScrollView::GetScrollFlickDuration() const -{ - return mFlickDuration; -} - -void ScrollView::SetScrollFlickDuration(float time) -{ - mFlickDuration = time; -} - void ScrollView::ApplyEffect(Toolkit::ScrollViewEffect effect) { Dali::Toolkit::ScrollView self = Dali::Toolkit::ScrollView::DownCast(Self()); @@ -830,16 +790,6 @@ void ScrollView::RemoveConstraintsFromChildren() RemoveConstraintsFromBoundActors(); } -const RulerPtr ScrollView::GetRulerX() const -{ - return mRulerX; -} - -const RulerPtr ScrollView::GetRulerY() const -{ - return mRulerY; -} - void ScrollView::SetRulerX(RulerPtr ruler) { mRulerX = ruler; @@ -953,11 +903,6 @@ void ScrollView::UpdatePropertyDomain() } } -bool ScrollView::GetScrollSensitive() -{ - return mSensitive; -} - void ScrollView::SetScrollSensitive(bool sensitive) { Actor self = Self(); @@ -998,74 +943,29 @@ void ScrollView::SetMaxOvershoot(float overshootX, float overshootY) mConstraints.UpdateMainInternalConstraint(*this); } -void ScrollView::SetSnapOvershootAlphaFunction(AlphaFunction alpha) -{ - mSnapOvershootAlphaFunction = alpha; -} - -float ScrollView::GetSnapOvershootDuration() -{ - return mSnapOvershootDuration; -} - -void ScrollView::SetSnapOvershootDuration(float duration) -{ - mSnapOvershootDuration = duration; -} - bool ScrollView::GetActorAutoSnap() { return mActorAutoSnapEnabled; } -void ScrollView::SetActorAutoSnap(bool enable) -{ - mActorAutoSnapEnabled = enable; -} - void ScrollView::SetAutoResize(bool enable) { mAutoResizeContainerEnabled = enable; // TODO: This needs a lot of issues to be addressed before working. } -bool ScrollView::GetWrapMode() const -{ - return mWrapMode; -} - void ScrollView::SetWrapMode(bool enable) { mWrapMode = enable; Self().SetProperty(Toolkit::ScrollView::Property::WRAP, enable); } -int ScrollView::GetScrollUpdateDistance() const -{ - return mScrollUpdateDistance; -} - -void ScrollView::SetScrollUpdateDistance(int distance) -{ - mScrollUpdateDistance = distance; -} - -bool ScrollView::GetAxisAutoLock() const -{ - return mAxisAutoLock; -} - void ScrollView::SetAxisAutoLock(bool enable) { mAxisAutoLock = enable; mConstraints.UpdateMainInternalConstraint(*this); } -float ScrollView::GetAxisAutoLockGradient() const -{ - return mAxisAutoLockGradient; -} - void ScrollView::SetAxisAutoLockGradient(float gradient) { DALI_ASSERT_DEBUG(gradient >= 0.0f && gradient <= 1.0f); @@ -1073,67 +973,12 @@ void ScrollView::SetAxisAutoLockGradient(float gradient) mConstraints.UpdateMainInternalConstraint(*this); } -float ScrollView::GetFrictionCoefficient() const -{ - return mFrictionCoefficient; -} - void ScrollView::SetFrictionCoefficient(float friction) { DALI_ASSERT_DEBUG(friction > 0.0f); mFrictionCoefficient = friction; } -float ScrollView::GetFlickSpeedCoefficient() const -{ - return mFlickSpeedCoefficient; -} - -void ScrollView::SetFlickSpeedCoefficient(float speed) -{ - mFlickSpeedCoefficient = speed; -} - -Vector2 ScrollView::GetMinimumDistanceForFlick() const -{ - return mMinFlickDistance; -} - -void ScrollView::SetMinimumDistanceForFlick(const Vector2& distance) -{ - mMinFlickDistance = distance; -} - -float ScrollView::GetMinimumSpeedForFlick() const -{ - return mFlickSpeedThreshold; -} - -void ScrollView::SetMinimumSpeedForFlick(float speed) -{ - mFlickSpeedThreshold = speed; -} - -float ScrollView::GetMaxFlickSpeed() const -{ - return mMaxFlickSpeed; -} - -void ScrollView::SetMaxFlickSpeed(float speed) -{ - mMaxFlickSpeed = speed; -} - -void ScrollView::SetWheelScrollDistanceStep(Vector2 step) -{ - mWheelScrollDistanceStep = step; -} - -Vector2 ScrollView::GetWheelScrollDistanceStep() const -{ - return mWheelScrollDistanceStep; -} - unsigned int ScrollView::GetCurrentPage() const { // in case animation is currently taking place.