Home
last modified time | relevance | path

Searched refs:IsStretch (Results 1 – 6 of 6) sorted by relevance

/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/swiper/
H A Dswiper_utils.h40 static bool IsStretch(const RefPtr<SwiperLayoutProperty>& property) in IsStretch() function
44 return property->IsStretch(); in IsStretch()
61 … if ((!getAutoFill && !IsStretch(property)) || NonPositive(static_cast<double>(displayCount))) { in CreateChildConstraint()
H A Dswiper_layout_property.h203 if (!IsStretch() || ignorePrevMarginAndNextMargin_) { in GetCalculatedPrevMargin()
211 if (!IsStretch() || ignorePrevMarginAndNextMargin_) { in GetCalculatedNextMargin()
217 bool IsStretch() const in IsStretch() function
H A Dswiper_layout_algorithm.cpp54 (!property->GetDisplayCount().has_value() && SwiperUtils::IsStretch(property))); in CheckIsSingleCase()
112 if (SwiperUtils::IsStretch(property)) { in UpdateLayoutInfoBeforeMeasureSwiper()
608 …if ((currentIndex - 1 < 0 && !isLoop_) || (SwiperUtils::IsStretch(swiperLayoutProperty) && itemPos… in LayoutBackwardItem()
688 if (!SwiperUtils::IsStretch(swiperProperty) || displayCount == 0) { in GetChildMainAxisSize()
867 …(!SwiperUtils::IsStretch(swiperLayoutProperty) && targetIndex_ && currentIndex > targetIndex_.valu… in LayoutBackward()
H A Dswiper_pattern.cpp280 …bool hasCachedCapture = SwiperUtils::IsStretch(props) && props->GetLoop().value_or(true) && !IsSwi… in InitCapture()
1102 } else if (!itemPosition_.empty() && SwiperUtils::IsStretch(props)) { in OnDirtyLayoutWrapperSwap()
1203 return !SwiperUtils::IsStretch(props); in IsAutoLinear()
2945 if (!childScrolling_ && SwiperUtils::IsStretch(props) && GetDisplayCount() == 1) { in ComputeNextIndexByVelocity()
3927 (TotalDisPlayCount() == TotalCount() && SwiperUtils::IsStretch(props) && in IsLoop()
4833 if (SwiperUtils::IsStretch(props)) { in TotalDisPlayCount()
H A Dswiper_pattern.h917 SwiperUtils::IsStretch(swiperLayoutProperty); in SupportSwiperCustomAnimation()
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/swiper/
H A Dswiper_attr_test_ng.cpp460 EXPECT_TRUE(SwiperUtils::IsStretch(layoutProperty_));
475 EXPECT_FALSE(SwiperUtils::IsStretch(layoutProperty_));