Lines Matching refs:to

151 	// NOTE: According to BeBook, BListView does not free the items itself.
283 // and doesn't want us to be messing with flags.
642 // instead of every class having to reimplement it, once some sane
741 // If where is above top, scroll to the first item,
742 // else if where is below bottom scroll to the last item.
758 // scroll to item under mouse while button is pressed
917 // No need to adapt selection, as this item is the last in the list
1391 // Hook method to be implemented by subclasses
1422 BListView::MoveItem(int32 from, int32 to)
1427 data.move.to = to;
1569 return _MoveItem(data->move.from, data->move.to);
1640 // also scrolls ListView to the top
1752 Selects the items between \a from and \a to, and returns \c true in
1757 BListView::_Select(int32 from, int32 to, bool extend)
1759 if (to < from)
1769 changed = _DeselectAll(from, to);
1773 fLastSelected = to;
1777 if (to > fLastSelected)
1778 fLastSelected = to;
1781 for (int32 i = from; i <= to; ++i) {
1938 // nothing to do, but success nevertheless
1968 // NOTE: window looper is assumed to be locked!
1984 BListView::_MoveItem(int32 from, int32 to)
1988 BRect frameTo = ItemFrame(to);
1990 if (!fList.MoveItem(from, to))
1995 fAnchorIndex = to;
1998 if (ItemAt(to)->IsSelected()) {
1999 _RescanSelection(from, to);
2005 _RecalcItemTops((to > from) ? from : to);
2009 // NOTE: window looper is assumed to be locked!
2048 // NOTE: window looper is assumed to be locked!
2063 BListView::_RescanSelection(int32 from, int32 to)
2065 if (from > to) {
2067 from = to;
2068 to = tmp;
2072 to = std::min(to, CountItems() - 1);
2076 fAnchorIndex = to;
2077 else if (fAnchorIndex == to)
2081 for (int32 i = from; i <= to; i++) {
2092 for (int32 i = from; i <= to; i++) {
2138 // except from the first selected index to item index