Home
last modified time | relevance | path

Searched refs:prevMargin_ (Results 1 – 5 of 5) sorted by relevance

/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/swiper/
H A Dswiper_layout_algorithm.cpp118 auto prevMargin = NearZero(prevMargin_) ? 0.0f : prevMargin_ + spaceWidth_; in UpdateLayoutInfoBeforeMeasureSwiper()
124 ignoreBlankOffset_ = Positive(prevMargin_) ? -(prevMargin_ + spaceWidth_) : 0.0f; in UpdateLayoutInfoBeforeMeasureSwiper()
450 …float endPos = Positive(prevMargin_) ? item.second.endPos + prevMargin_ + spaceWidth_ : item.secon… in MeasureSwiper()
481 auto prevMarginMontage = Positive(prevMargin_) ? prevMargin_ + spaceWidth_ : 0.0f; in MeasureSwiper()
493 … auto pos = Positive(prevMargin_) ? it->second.startPos + prevMargin_ : it->second.startPos; in MeasureSwiper()
661 …if (GreatNotEqual(endPos, prevMargin_ != 0.0f ? startMainPos_ - prevMargin_ - spaceWidth_ : startM… in SetInactiveOnForward()
766 auto prevMarginMontage = Positive(prevMargin_) ? prevMargin_ + spaceWidth_ : 0.0f; in LayoutForward()
795 …pos->second.endPos, prevMargin_ != 0.0f ? startMainPos - prevMargin_ - spaceWidth_ : startMainPos)… in SetInactive()
864 … adjustStartMainPos = startMainPos - (Positive(prevMargin_) ? prevMargin_ + spaceWidth_ : 0.0f) - in LayoutBackward()
1002 if (!NearZero(prevMargin_)) { in LayoutItem()
[all …]
H A Dswiper_layout_algorithm.h359 float prevMargin_ = 0.0f; variable
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/swiper/
H A Drender_swiper.h504 double margin = (needReverse_ ? nextMargin_ : prevMargin_); in GetMainAxisOffset()
507 margin = needReverse_ ? nextMargin_ + prevMargin_ : 0; in GetMainAxisOffset()
509 margin = needReverse_ ? 0 : nextMargin_ + prevMargin_; in GetMainAxisOffset()
574 double prevMargin_ = 0.0; variable
H A Drender_swiper.cpp289 if (LessOrEqual(prevMargin_, 0.0)) { in PerformLayout()
290 prevMargin_ = 0.0; in PerformLayout()
296 if (GreatOrEqual(prevMargin_, maxLength)) { in PerformLayout()
297 prevMargin_ = maxLength; in PerformLayout()
299 if (GreatOrEqual(nextMargin_, maxLength - prevMargin_)) { in PerformLayout()
300 nextMargin_ = maxLength - prevMargin_; in PerformLayout()
390 ? (needReverse_ ? swiperWidth_ - prevMargin_ - nextMargin_ in PerformLayout()
391 : -swiperWidth_ + prevMargin_ + nextMargin_) in PerformLayout()
392 : -swiperHeight_ + prevMargin_ + nextMargin_; in PerformLayout()
1072 minOffset = MIN_SCROLL_OFFSET * (swiperHeight_ - prevMargin_ - nextMargin_); in MoveItems()
[all …]
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/swiper/
H A Dswiper_layout_test_ng.cpp514 swiperLayoutAlgorithm->prevMargin_ = 0.0;
526 swiperLayoutAlgorithm->prevMargin_ = 1.0;
844 swiperLayoutAlgorithm->prevMargin_ = 1.0f;
899 swiperLayoutAlgorithm->prevMargin_ = -1.0f;
912 swiperLayoutAlgorithm->prevMargin_ = 1.0f;
1071 swiperLayoutAlgorithm->prevMargin_ = -1.0f;
1445 swiperLayoutAlgorithm->prevMargin_ = 0.0f;