Home
last modified time | relevance | path

Searched refs:swiperWidth (Results 1 – 4 of 4) sorted by relevance

/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/swiper_indicator/indicator_common/
H A Dswiper_indicator_utils.h90 float swiperWidth = 0.0f; in CalcIndicatrFrameOffSet() local
93 swiperWidth = layoutConstraint->parentIdealSize.Width().value_or(0.0f); in CalcIndicatrFrameOffSet()
99 swiperWidth, indicatorWidth, direction), in CalcIndicatrFrameOffSet()
148 float swiperWidth, float indicatorWidth, const Axis& direction) in CalcIndicatrOffSetX() argument
152 auto leftValue = GetValidEdgeLength(swiperWidth, indicatorWidth, left.value()); in CalcIndicatrOffSetX()
155 auto rightValue = GetValidEdgeLength(swiperWidth, indicatorWidth, right.value()); in CalcIndicatrOffSetX()
156 … offsetX = swiperWidth - indicatorWidth - rightValue - swiperPaddingRight - borderWidthRight; in CalcIndicatrOffSetX()
159 offsetX = (swiperWidth - swiperPaddingRight - borderWidthRight + in CalcIndicatrOffSetX()
162 offsetX = swiperWidth - indicatorWidth - swiperPaddingRight - borderWidthRight; in CalcIndicatrOffSetX()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/stepper/
H A Dstepper_layout_algorithm.cpp92 auto swiperWidth = swiperLayoutConstraint.parentIdealSize.Width().value_or(0.0); in MeasureSwiper() local
104 …swiperLayoutProperty->UpdateUserDefinedIdealSize(CalcSize(CalcLength(swiperWidth), CalcLength(swip… in MeasureSwiper()
107 swiperLayoutConstraint.selfIdealSize.SetWidth(swiperWidth); in MeasureSwiper()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/tabs/
H A Dtabs_layout_algorithm.cpp126 auto swiperWidth = swiperWrapper->GetGeometryNode()->GetFrameSize().Width(); in Layout() local
128 …OffsetF((tabsWidth - offsetList[SWIPER_INDEX].GetX() - swiperWidth), offsetList[SWIPER_INDEX].GetY… in Layout()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/swiper/
H A Dswiper_pattern.cpp2850 auto swiperWidth = CalculateVisibleSize(); in ComputeSwipePageNextIndex() local
2851 if (LessOrEqual(swiperWidth, 0)) { in ComputeSwipePageNextIndex()
2866 …auto dragThresholdFlag = dragForward ? dragDistance > swiperWidth / 2 : dragDistance < swiperWidth in ComputeSwipePageNextIndex()
4311 auto swiperWidth = MainSize(); in UpdateIndexOnSwipePageStop() local
4313 if (std::abs(currentOffset) < (swiperWidth / SWIPER_HALF)) { in UpdateIndexOnSwipePageStop()