Home
last modified time | relevance | path

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

/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/swiper/
H A Dswiper_layout_algorithm.h243 placeItemWidth_ = placeItemWidth; in SetPlaceItemWidth()
400 std::optional<float> placeItemWidth_; variable
H A Dswiper_layout_algorithm.cpp472 if (!placeItemWidth_ && !prevItemPosition_.empty()) { in MeasureSwiper()
473placeItemWidth_ = prevItemPosition_.begin()->second.endPos - prevItemPosition_.begin()->second.sta… in MeasureSwiper()
578 endPos = startPos + placeItemWidth_.value_or(0.0f); in LayoutForwardItem()
623 startPos = endPos - placeItemWidth_.value_or(0.0f); in LayoutBackwardItem()
683 if (!placeItemWidth_.has_value()) { in GetChildMainAxisSize()
684 placeItemWidth_ = mainAxisSize; in GetChildMainAxisSize()
H A Dswiper_pattern.h1056 std::optional<float> placeItemWidth_; variable
H A Dswiper_pattern.cpp196 algo->SetPlaceItemWidth(placeItemWidth_); in CreateLayoutAlgorithm()
422 placeItemWidth_.reset(); in OnModifyDone()
680 swiper->placeItemWidth_.reset(); in InitSurfaceChangedCallback()
988 placeItemWidth_ = translateLength; in OnDirtyLayoutWrapperSwap()
1105 … (targetIndexValue - firstItem.first) * (placeItemWidth_.value() + GetItemSpace()); in OnDirtyLayoutWrapperSwap()