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=c951b0c332c229de79907424d9688873d55f0ca2;hb=39fde7191a3d588fef885407f8efb7a35a5f044c;hpb=9e1677a45c8648371f0274d9697748800a656095 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 c951b0c..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() { } @@ -132,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) @@ -167,16 +163,21 @@ 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(); } +void ItemView::Refresh() +{ + return GetImpl(*this).Refresh(); +} + Actor ItemView::GetItem(unsigned int itemId) const { return GetImpl(*this).GetItem(itemId); @@ -187,9 +188,64 @@ 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); +} + +ItemView::LayoutActivatedSignalType& ItemView::LayoutActivatedSignal() +{ + return GetImpl(*this).LayoutActivatedSignal(); } } // namespace Toolkit