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%2Fitem-view%2Fitem-view.cpp;h=12a6baf0c0aafec6657124d0ba8ffdc83554015e;hp=d9f856e8847b5ffca2710f13adce68dee352924f;hb=39fde7191a3d588fef885407f8efb7a35a5f044c;hpb=818994dc0acac601b0b27c0b715259b504ef4ceb diff --git a/dali-toolkit/public-api/controls/scrollable/item-view/item-view.cpp b/dali-toolkit/public-api/controls/scrollable/item-view/item-view.cpp index d9f856e..12a6baf 100644 --- a/dali-toolkit/public-api/controls/scrollable/item-view/item-view.cpp +++ b/dali-toolkit/public-api/controls/scrollable/item-view/item-view.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 @@ -63,11 +64,6 @@ ItemView ItemView::DownCast( BaseHandle handle ) return Control::DownCast(handle); } -ScrollConnector ItemView::GetScrollConnector() const -{ - return GetImpl(*this).GetScrollConnector(); -} - ItemView::~ItemView() { } @@ -112,16 +108,6 @@ void ItemView::DeactivateCurrentLayout() GetImpl(*this).DeactivateCurrentLayout(); } -void ItemView::SetDefaultAlphaFunction(AlphaFunction func) -{ - GetImpl(*this).SetDefaultAlphaFunction(func); -} - -AlphaFunction ItemView::GetDefaultAlphaFunction() const -{ - return GetImpl(*this).GetDefaultAlphaFunction(); -} - void ItemView::SetMinimumSwipeSpeed(float speed) { GetImpl(*this).SetMinimumSwipeSpeed(speed); @@ -142,14 +128,14 @@ float ItemView::GetMinimumSwipeDistance() const return GetImpl(*this).GetMinimumSwipeDistance(); } -void ItemView::SetMouseWheelScrollDistanceStep(float step) +void ItemView::SetWheelScrollDistanceStep(float step) { - GetImpl(*this).SetMouseWheelScrollDistanceStep(step); + GetImpl(*this).SetWheelScrollDistanceStep(step); } -float ItemView::GetMouseWheelScrollDistanceStep() const +float ItemView::GetWheelScrollDistanceStep() const { - return GetImpl(*this).GetMouseWheelScrollDistanceStep(); + return GetImpl(*this).GetWheelScrollDistanceStep(); } void ItemView::SetAnchoring(bool enabled) @@ -187,6 +173,11 @@ float ItemView::GetRefreshInterval() const return GetImpl(*this).GetRefreshInterval(); } +void ItemView::Refresh() +{ + return GetImpl(*this).Refresh(); +} + Actor ItemView::GetItem(unsigned int itemId) const { return GetImpl(*this).GetItem(itemId); @@ -227,6 +218,36 @@ void ItemView::ReplaceItems(const ItemContainer& replacementItems, float duratio GetImpl(*this).ReplaceItems( replacementItems, durationSeconds ); } +void ItemView::SetItemsParentOrigin( const Vector3& parentOrigin ) +{ + GetImpl(*this).SetItemsParentOrigin( parentOrigin ); +} + +Vector3 ItemView::GetItemsParentOrigin() const +{ + return GetImpl(*this).GetItemsParentOrigin(); +} + +void ItemView::SetItemsAnchorPoint( const Vector3& anchorPoint ) +{ + GetImpl(*this).SetItemsAnchorPoint(anchorPoint); +} + +Vector3 ItemView::GetItemsAnchorPoint() const +{ + return GetImpl(*this).GetItemsAnchorPoint(); +} + +void ItemView::GetItemsRange(ItemRange& range) +{ + GetImpl(*this).GetItemsRange(range); +} + +ItemView::LayoutActivatedSignalType& ItemView::LayoutActivatedSignal() +{ + return GetImpl(*this).LayoutActivatedSignal(); +} + } // namespace Toolkit } // namespace Dali