Change-Id: I559963ec022f6bd2d4c607da6c2a0ce19190aacf
Signed-off-by: Adeel Kazmi <adeel.kazmi@samsung.com>
return mItemsAnchorPoint;
}
+void ItemView::GetItemsRange(ItemRange& range)
+{
+ range.begin = mItemPool.begin()->first;
+ range.end = mItemPool.rbegin()->first + 1;
+}
+
} // namespace Internal
} // namespace Toolkit
*/
Vector3 GetItemsAnchorPoint() const;
+ /**
+ * @copydoc Toolkit::ItemView::GetItemsRange
+ */
+ void GetItemsRange(ItemRange& range);
+
private:
/**
return GetImpl(*this).GetItemsAnchorPoint();
}
+void ItemView::GetItemsRange(ItemRange& range)
+{
+ GetImpl(*this).GetItemsRange(range);
+}
+
} // namespace Toolkit
} // namespace Dali
class ScrollConnector;
class ItemFactory;
class ItemLayout;
+struct ItemRange;
typedef IntrusivePtr<ItemLayout> ItemLayoutPtr;
*/
Vector3 GetItemsAnchorPoint() const;
+ /**
+ * @brief Get the range of items that are currently in ItemView.
+ *
+ * @param[out] range The range of items.
+ */
+ void GetItemsRange(ItemRange& range);
+
public: // Not intended for application developers
/**