Home
last modified time | relevance | path

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 Dswiper_utils.h123 static int32_t ComputePageIndex(int32_t index, int32_t displayCount) in ComputePageIndex() function
H A Dswiper_pattern.cpp267 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 Dswiper_pattern.h848 int32_t ComputePageIndex(int32_t index) const;
H A Dswiper_layout_algorithm.cpp815 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 Dswiper_indicator_pattern.cpp167 …auto clickPageIndex = SwiperUtils::ComputePageIndex(mouseClickIndex_.value(), swiperPattern->GetDi… in HandleMouseClick()
485 … currentIndex = SwiperUtils::ComputePageIndex(currentIndex, swiperPattern->GetDisplayCount()); in GetCurrentIndex()