X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=dali-toolkit%2Fpublic-api%2Fcontrols%2Fscrollable%2Fscroll-connector.cpp;h=ac15652ddd3ba75e76d0260be7bc0305264ec082;hp=97721b25dc1368a9f1649962f5914edcbf6171d6;hb=61be2f8d3c96e01da8e6ade2a76a192ff6ab6945;hpb=7c48d81eb1f49aab3c852ab83c9f688cfdfadd0d diff --git a/dali-toolkit/public-api/controls/scrollable/scroll-connector.cpp b/dali-toolkit/public-api/controls/scrollable/scroll-connector.cpp index 97721b2..ac15652 100644 --- a/dali-toolkit/public-api/controls/scrollable/scroll-connector.cpp +++ b/dali-toolkit/public-api/controls/scrollable/scroll-connector.cpp @@ -1,18 +1,19 @@ -// -// Copyright (c) 2014 Samsung Electronics Co., Ltd. -// -// Licensed under the Flora License, Version 1.0 (the License); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://floralicense.org/license/ -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an AS IS BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. -// +/* + * Copyright (c) 2015 Samsung Electronics Co., Ltd. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ #include #include @@ -31,8 +32,6 @@ const char* const ScrollConnector::OVERSHOOT_PROPERTY_NAME = "overshoot"; const Property::Index ScrollConnector::SCROLL_POSITION = Internal::ScrollConnector::SCROLL_POSITION; const Property::Index ScrollConnector::OVERSHOOT = Internal::ScrollConnector::OVERSHOOT; -const char* const ScrollConnector::LIMITS_CHANGED_SIGNAL_NAME = "limits-changed"; - ScrollConnector ScrollConnector::New() { return ScrollConnector( Internal::ScrollConnector::New() ); @@ -56,9 +55,9 @@ ScrollConnector ScrollConnector::DownCast( BaseHandle handle ) return ScrollConnector( dynamic_cast(handle.GetObjectPtr()) ); } -void ScrollConnector::SetLimits( float min, float max ) +void ScrollConnector::SetScrollDomain( float min, float max, float length ) { - GetImpl(*this).SetLimits( min, max ); + GetImpl(*this).SetScrollDomain( min, max, length ); } float ScrollConnector::GetMinLimit() const @@ -71,14 +70,34 @@ float ScrollConnector::GetMaxLimit() const return GetImpl(*this).GetMaxLimit(); } -Constrainable ScrollConnector::GetScrollPositionObject() const +float ScrollConnector::GetContentLength() const +{ + return GetImpl(*this).GetContentLength(); +} + +Handle ScrollConnector::GetScrollPositionObject() const { return GetImpl(*this).GetScrollPositionObject(); } -ScrollConnector::LimitsChangedSignalType& ScrollConnector::LimitsChangedSignal() +void ScrollConnector::SetScrollPosition( float position ) +{ + GetImpl(*this).SetScrollPosition( position ); +} + +float ScrollConnector::GetScrollPosition() const +{ + return GetImpl(*this).GetScrollPosition(); +} + +ScrollConnector::ScrollPositionChangedSignalType& ScrollConnector::ScrollPositionChangedSignal() +{ + return GetImpl(*this).ScrollPositionChangedSignal(); +} + +ScrollConnector::DomainChangedSignalType& ScrollConnector::DomainChangedSignal() { - return GetImpl(*this).LimitsChangedSignal(); + return GetImpl(*this).DomainChangedSignal(); } ScrollConnector::ScrollConnector( Internal::ScrollConnector* impl )