Searched refs:startIndexInVisibleWindow (Results 1 – 2 of 2) sorted by relevance
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/swiper/ |
H A D | swiper_layout_algorithm.cpp | 430 startIndexInVisibleWindow = startIndex; in AdjustStartInfoOnSwipeByGroup() 444 int32_t startIndexInVisibleWindow = 0; in MeasureSwiper() local 452 startIndexInVisibleWindow = item.first; in MeasureSwiper() 460 …startIndexInVisibleWindow = std::min(GetLoopIndex(startIndexInVisibleWindow), totalItemCount_ - 1); in MeasureSwiper() 501 if ((targetIndex_.has_value() && targetIndex_.value() >= startIndexInVisibleWindow) in MeasureSwiper() 503 … LayoutForward(layoutWrapper, layoutConstraint, axis, startIndexInVisibleWindow, startPos); in MeasureSwiper() 515 if (LessNotEqual(startIndexInVisibleWindow, targetIndex_.value())) { in MeasureSwiper() 521 … LayoutForward(layoutWrapper, layoutConstraint, axis, startIndexInVisibleWindow, startPos); in MeasureSwiper() 525 } else if (GreatNotEqual(startIndexInVisibleWindow, targetIndex_.value())) { in MeasureSwiper() 537 … LayoutForward(layoutWrapper, layoutConstraint, axis, startIndexInVisibleWindow, startPos); in MeasureSwiper() [all …]
|
H A D | swiper_layout_algorithm.h | 343 …int32_t startIndex, const PositionMap& itemPosition, int32_t& startIndexInVisibleWindow, float& st…
|