Home
last modified time | relevance | path

Searched refs:firstItemInfo_ (Results 1 – 3 of 3) sorted by relevance

/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/list/
H A Dlist_lanes_layout_algorithm.cpp125 if (firstItemInfo_ && firstItemInfo_.value().first == currentIndex + 1) { in LayoutALineForward()
127 endPos = firstItemInfo_.value().second.endPos; in LayoutALineForward()
128 SetItemInfo(currentIndex, std::move(firstItemInfo_.value().second)); in LayoutALineForward()
130 firstItemInfo_.reset(); in LayoutALineForward()
132 } else if (firstItemInfo_) { in LayoutALineForward()
133 firstItemInfo_.reset(); in LayoutALineForward()
175 if (firstItemInfo_ && firstItemInfo_.value().first == currentIndex - 1) { in LayoutALineBackward()
177 startPos = firstItemInfo_.value().second.startPos; in LayoutALineBackward()
180 firstItemInfo_.reset(); in LayoutALineBackward()
182 } else if (firstItemInfo_) { in LayoutALineBackward()
[all …]
H A Dlist_layout_algorithm.cpp730 firstItemInfo_ = std::make_pair(startIndex, itemInfo); in CheckAndMeasureStartItem()
961 if (!firstItemInfo_ || firstItemInfo_.value().first != currentIndex + 1) { in LayoutALineForward()
985 itemPosition_[currentIndex] = firstItemInfo_.value().second; in LayoutALineForward()
988 if (firstItemInfo_) { in LayoutALineForward()
989 firstItemInfo_.reset(); in LayoutALineForward()
1001 if (!firstItemInfo_ || firstItemInfo_.value().first != currentIndex - 1) { in LayoutALineBackward()
1022 itemPosition_[currentIndex] = firstItemInfo_.value().second; in LayoutALineBackward()
1025 if (firstItemInfo_) { in LayoutALineBackward()
1026 firstItemInfo_.reset(); in LayoutALineBackward()
H A Dlist_layout_algorithm.h475 std::optional<std::pair<int32_t, ListItemInfo>> firstItemInfo_; variable