Searched refs:ComputePageIndex (Results 1 – 5 of 5) sorted by relevance
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/swiper/ |
H A D | swiper_utils.h | 123 static int32_t ComputePageIndex(int32_t index, int32_t displayCount) in ComputePageIndex() function
|
H A D | swiper_pattern.cpp | 267 auto adjustIndex = SwiperUtils::ComputePageIndex(index, GetDisplayCount()); in AdjustCurrentIndexOnSwipePage() 1363 … auto pageStartIndex = swipeByGroup ? SwiperUtils::ComputePageIndex(index, displayCount) : index; in CalcVisibleIndex() 1377 …pageStartIndex = swipeByGroup ? SwiperUtils::ComputePageIndex(index - 1, displayCount) : index - 1; in CalcVisibleIndex() 1414 … auto pageStartIndex = swipeByGroup ? SwiperUtils::ComputePageIndex(index, displayCount) : index; in CalculateAndUpdateItemInfo() 1428 …pageStartIndex = swipeByGroup ? SwiperUtils::ComputePageIndex(index - 1, displayCount) : index - 1; in CalculateAndUpdateItemInfo() 1833 …targetIndex = IsSwipeByGroup() ? SwiperUtils::ComputePageIndex(targetIndex, displayCount) : target… in ChangeIndex()
|
H A D | swiper_pattern.h | 848 int32_t ComputePageIndex(int32_t index) const;
|
H A D | swiper_layout_algorithm.cpp | 815 auto startPageIndex = SwiperUtils::ComputePageIndex(index, displayCount); in SetInactiveOnBackward()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/swiper_indicator/indicator_common/ |
H A D | swiper_indicator_pattern.cpp | 167 …auto clickPageIndex = SwiperUtils::ComputePageIndex(mouseClickIndex_.value(), swiperPattern->GetDi… in HandleMouseClick() 485 … currentIndex = SwiperUtils::ComputePageIndex(currentIndex, swiperPattern->GetDisplayCount()); in GetCurrentIndex()
|