Remove the dependency between ScrollBar & ItemView
[platform/core/uifw/dali-toolkit.git] / dali-toolkit / public-api / controls / scrollable / item-view / item-view.cpp
index ddafb28..d9f856e 100644 (file)
@@ -63,6 +63,11 @@ ItemView ItemView::DownCast( BaseHandle handle )
   return Control::DownCast<ItemView, Internal::ItemView>(handle);
 }
 
+ScrollConnector ItemView::GetScrollConnector() const
+{
+  return GetImpl(*this).GetScrollConnector();
+}
+
 ItemView::~ItemView()
 {
 }
@@ -107,6 +112,16 @@ 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);
@@ -162,12 +177,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 +197,34 @@ 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 );
 }
 
 } // namespace Toolkit