Home
last modified time | relevance | path

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

/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/flex/
H A Dflex_layout_algorithm.cpp106 OptionalSizeF GetCalcSizeHelper(float mainAxisSize, float crossAxisSize, FlexDirection direction) in GetCalcSizeHelper() argument
110 size.SetWidth(mainAxisSize); in GetCalcSizeHelper()
113 size.SetHeight(mainAxisSize); in GetCalcSizeHelper()
307 float mainAxisSize = GetChildMainAxisSize(childLayoutWrapper); in UpdateAllocatedSize() local
308 if (GreaterOrEqualToInfinity(mainAxisSize)) { in UpdateAllocatedSize()
309 mainAxisSize = 0.0f; in UpdateAllocatedSize()
312 allocatedSize_ += mainAxisSize; in UpdateAllocatedSize()
564 auto mainAxisSize = 0.0f; in HandleBlankFirstTimeMeasure() local
573 mainAxisSize = std::max(IsHorizontal(direction_) ? size.Width() : size.Height(), 0.0f); in HandleBlankFirstTimeMeasure()
578 …IsHorizontal(direction_) ? SizeF(mainAxisSize, crossAxisSize) : SizeF(crossAxisSize, mainAxisSize)… in HandleBlankFirstTimeMeasure()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/flex/
H A Dflex_component.h84 void SetMainAxisSize(MainAxisSize mainAxisSize) in SetMainAxisSize() argument
86 mainAxisSize_ = mainAxisSize; in SetMainAxisSize()
H A Drender_flex.cpp525 auto mainAxisSize = mainAxisSize_; in PerformLayoutInItemMode() local
536 mainAxisSize = MainAxisSize::MIN; in PerformLayoutInItemMode()
552 mainAxisSize = MainAxisSize::MIN; in PerformLayoutInItemMode()
562 DetermineSelfSize(mainAxisSize, useViewPort); in PerformLayoutInItemMode()
628 void RenderFlex::DetermineSelfSize(MainAxisSize mainAxisSize, bool useViewPort) in DetermineSelfSize() argument
638 Size layoutSize = (mainAxisSize == MainAxisSize::MIN) ? GetConstrainedSize(allocatedSize_) in DetermineSelfSize()
H A Drender_flex.h163 void DetermineSelfSize(MainAxisSize mainAxisSize, bool useViewPort);
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/swiper/
H A Dswiper_layout_algorithm.cpp594 float mainAxisSize = GetChildMainAxisSize(wrapper, swiperLayoutProperty, axis); in LayoutForwardItem() local
595 endPos = startPos + mainAxisSize; in LayoutForwardItem()
636 float mainAxisSize = GetChildMainAxisSize(wrapper, swiperLayoutProperty, axis); in LayoutBackwardItem() local
637 startPos = endPos - mainAxisSize; in LayoutBackwardItem()
682 … float mainAxisSize = GetMainAxisSize(childWrapper->GetGeometryNode()->GetMarginFrameSize(), axis); in GetChildMainAxisSize() local
684 placeItemWidth_ = mainAxisSize; in GetChildMainAxisSize()
689 return mainAxisSize; in GetChildMainAxisSize()
693 CHECK_NULL_RETURN(childProperty, mainAxisSize); in GetChildMainAxisSize()
696mainAxisSize = (contentMainSize_ - nextMargin_ - prevMargin_ - (displayCount - 1) * spaceWidth_) in GetChildMainAxisSize()
700 return mainAxisSize; in GetChildMainAxisSize()