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=0bb8842a606ef321a36bdc266fff34f56709d8a6;hp=ddafb283356aa204061a8cf2ace03e58d2bbc22f;hb=2ddfbb9e23a7c3fc30e604236c41e0ef6d2ed6a2;hpb=e2eda444afbe82e9591fe198eef339227f90a616 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 ddafb28..0bb8842 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) 2014 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,6 +64,11 @@ ItemView ItemView::DownCast( BaseHandle handle ) return Control::DownCast(handle); } +ScrollConnector ItemView::GetScrollConnector() const +{ + return GetImpl(*this).GetScrollConnector(); +} + ItemView::~ItemView() { } @@ -162,12 +168,12 @@ void ItemView::ScrollToItem(unsigned int itemId, float durationSeconds) GetImpl(*this).ScrollToItem(itemId, durationSeconds); } -void ItemView::SetRefreshInterval(unsigned int intervalMilliseconds) +void ItemView::SetRefreshInterval(float intervalLayoutPositions) { - GetImpl(*this).SetRefreshInterval(intervalMilliseconds); + GetImpl(*this).SetRefreshInterval(intervalLayoutPositions); } -unsigned int ItemView::GetRefreshInterval() const +float ItemView::GetRefreshInterval() const { return GetImpl(*this).GetRefreshInterval(); } @@ -182,9 +188,59 @@ unsigned int ItemView::GetItemId(Actor actor) const return GetImpl(*this).GetItemId(actor); } +void ItemView::InsertItem(Item newItem, float durationSeconds) +{ + GetImpl(*this).InsertItem( newItem, durationSeconds ); +} + +void ItemView::InsertItems(const ItemContainer& newItems, float durationSeconds) +{ + GetImpl(*this).InsertItems( newItems, durationSeconds ); +} + void ItemView::RemoveItem(unsigned int itemId, float durationSeconds) { - GetImpl(*this).RemoveItem(itemId, durationSeconds); + GetImpl(*this).RemoveItem( itemId, durationSeconds ); +} + +void ItemView::RemoveItems(const ItemIdContainer& itemIds, float durationSeconds) +{ + GetImpl(*this).RemoveItems( itemIds, durationSeconds ); +} + +void ItemView::ReplaceItem(Item replacementItem, float durationSeconds) +{ + GetImpl(*this).ReplaceItem( replacementItem, durationSeconds ); +} + +void ItemView::ReplaceItems(const ItemContainer& replacementItems, float durationSeconds) +{ + 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); } } // namespace Toolkit