Home
last modified time | relevance | path

Searched refs:nextMargin_ (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.cpp114 nextMargin_ = property->GetCalculatedNextMargin(); in UpdateLayoutInfoBeforeMeasureSwiper()
119 auto nextMargin = NearZero(nextMargin_) ? 0.0f : nextMargin_ + spaceWidth_; in UpdateLayoutInfoBeforeMeasureSwiper()
127 ignoreBlankOffset_ = Positive(nextMargin_) ? nextMargin_ + spaceWidth_ : 0.0f; in UpdateLayoutInfoBeforeMeasureSwiper()
696 … mainAxisSize = (contentMainSize_ - nextMargin_ - prevMargin_ - (displayCount - 1) * spaceWidth_) in GetChildMainAxisSize()
716 auto marginValue = NearZero(nextMargin_) ? 0.0f : nextMargin_ + spaceWidth_; in LayoutForward()
767 auto nextMarginMontage = Positive(nextMargin_) ? nextMargin_ + spaceWidth_ : 0.0f; in LayoutForward()
797 …pos->second.startPos, nextMargin_ != 0.0f ? endMainPos + nextMargin_ + spaceWidth_ : endMainPos)) { in SetInactive()
822 …if (LessNotEqual(startPos, nextMargin_ != 0.0f ? endMainPos_ + nextMargin_ + spaceWidth_ : endMain… in SetInactiveOnBackward()
H A Dswiper_layout_algorithm.h360 float nextMargin_ = 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()
575 double nextMargin_ = 0.0; variable
H A Drender_swiper.cpp285nextMargin_ = swiper_ ? NormalizePercentToPx(swiper_->GetNextMargin(), axis_ == Axis::VERTICAL, tr… in PerformLayout()
292 if (LessOrEqual(nextMargin_, 0.0)) { in PerformLayout()
293 nextMargin_ = 0.0; in PerformLayout()
299 if (GreatOrEqual(nextMargin_, maxLength - prevMargin_)) { in PerformLayout()
300 nextMargin_ = maxLength - prevMargin_; in PerformLayout()
312 …(maxSize.Width() - intervalSpace * (showingCount - 1)) / showingCount - prevMargin_ - nextMargin_); 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.cpp515 swiperLayoutAlgorithm->nextMargin_ = 0.0;
534 swiperLayoutAlgorithm->nextMargin_ = 1.0;
1149 swiperLayoutAlgorithm->nextMargin_ = 0.0f;