Searched refs:maxMainSize (Results 1 – 8 of 8) sorted by relevance
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/flex/ |
H A D | render_flex.cpp | 275 if (NearEqual(maxMainSize, Size::INFINITE_SIZE)) { in PerformLayoutInWeightMode() 293 maxMainSize -= allocatedSize_; in PerformLayoutInWeightMode() 296 maxMainSize = 0.0; in PerformLayoutInWeightMode() 299 auto spacePerWeight = maxMainSize / totalFlexWeight_; in PerformLayoutInWeightMode() 406 if ((allocatedSize_ - space_) > maxMainSize) { in PerformLayoutInIndexMode() 426 if (NearEqual(allocatedSize_, maxMainSize)) { in PerformLayoutInIndexMode() 440 layoutSize = GetConstrainedSize(maxMainSize); in PerformLayoutInIndexMode() 632 if (NearEqual(maxMainSize, Size::INFINITE_SIZE)) { in DetermineSelfSize() 634 maxMainSize = allocatedSize_; in DetermineSelfSize() 1009 double maxMainSize = 0.0; in GetAvailableMainSize() local [all …]
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_v2/list/ |
H A D | render_list_item.cpp | 100 double maxMainSize = GetMainSize(childSize); in PerfLayoutSwiperMode() local 116 maxMainSize = std::max(maxMainSize, GetMainSize(startSize)); in PerfLayoutSwiperMode() 119 … swiperStart->SetPosition(MakeValue<Offset>((maxMainSize - GetMainSize(startSize)) / 2, startPos)); in PerfLayoutSwiperMode() 136 maxMainSize = std::max(maxMainSize, GetMainSize(endSize)); in PerfLayoutSwiperMode() 139 … swiperEnd->SetPosition(MakeValue<Offset>((maxMainSize - GetMainSize(endSize)) / 2, startPos)); in PerfLayoutSwiperMode() 143 …child_->SetPosition(MakeValue<Offset>((maxMainSize - GetMainSize(childSize)) / 2, curOffset_)); /*… in PerfLayoutSwiperMode() 144 SetLayoutSize(layoutParam.Constrain(MakeValue<Size>(maxMainSize, GetCrossSize(childSize)))); in PerfLayoutSwiperMode()
|
H A D | render_list.cpp | 1297 auto maxMainSize = GetMainSize(maxLayoutSize); in ApplyLayoutParam() local 1304 if (NearEqual(maxMainSize, Size::INFINITE_SIZE)) { in ApplyLayoutParam() 1315 startMainPos_ = (1.0 - VIEW_PORT_SCALE) / 2 * maxMainSize; in ApplyLayoutParam() 1316 endMainPos_ = startMainPos_ + (maxMainSize * VIEW_PORT_SCALE); in ApplyLayoutParam() 1317 … fixedMainSizeByLayoutParam_ = NearEqual(maxMainSize, GetMainSize(GetLayoutParam().GetMinSize())); in ApplyLayoutParam() 1318 SizeChangeOffset(maxMainSize); in ApplyLayoutParam() 1326 mainSize_ = maxMainSize; in ApplyLayoutParam() 1327 return maxMainSize; in ApplyLayoutParam() 2367 double maxMainSize = GetMainSize(GetLayoutSize()); in OnSelectedItemMove() local 2369 if (GreatOrEqual(selectedItemMainAxis_ + mainSize, maxMainSize)) { in OnSelectedItemMove() [all …]
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/split_container/ |
H A D | render_split_container.cpp | 111 auto maxMainSize = splitType_ == SplitType::ROW_SPLIT ? maxSize.Width() : maxSize.Height(); in UpdateDisplayNode() local 112 maxMainSize -= totalMainSize; in UpdateDisplayNode() 121 if ((allocatedSize - DEFAULT_SPLIT_HEIGHT) > maxMainSize) { in UpdateDisplayNode() 135 if (NearEqual(allocatedSize, maxMainSize)) { in UpdateDisplayNode()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_v2/water_flow/ |
H A D | render_water_flow.cpp | 342 size.maxMainSize = std::max(NormalizePercentToPx(component_->GetMaxHeight(), true), in CallItemConstraintSize() 352 size.maxMainSize = std::max(NormalizePercentToPx(component_->GetMaxWidth(), false), in CallItemConstraintSize() 362 itemConstraintSize_.maxMainSize = std::max(size.maxMainSize, size.minMainSize); in CallItemConstraintSize() 363 itemConstraintSize_.minMainSize = std::min(size.maxMainSize, size.minMainSize); in CallItemConstraintSize() 366 if (GreatOrEqual(itemConstraintSize_.maxMainSize, mainMaxConstraintSize_)) { in CallItemConstraintSize() 367 itemConstraintSize_.maxMainSize = mainMaxConstraintSize_; in CallItemConstraintSize() 373 if (LessOrEqual(itemConstraintSize_.maxMainSize, 0.0)) { in CallItemConstraintSize() 374 itemConstraintSize_.maxMainSize = mainMaxConstraintSize_; in CallItemConstraintSize() 1134 if (GreatNotEqual(result.mainSize, itemConstraintSize_.maxMainSize)) { in ConstraintItemSize() 1135 result.mainSize = itemConstraintSize_.maxMainSize; in ConstraintItemSize()
|
H A D | render_water_flow.h | 58 double maxMainSize = 0.0; // max cross Size member
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_v2/inspector/ |
H A D | water_flow_composed_element.cpp | 145 jsonStr->Put("maxHeight", std::to_string(constraintSize.maxMainSize).c_str()); in GetItemConstraintSize()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_v2/grid/ |
H A D | render_grid_scroll.cpp | 611 auto maxMainSize = GetSize(GetLayoutParam().GetMaxSize()); in MakeInnerLayoutParam() local 612 mainLen += Size::IsValueInfinite(maxMainSize) ? GetSize(viewPort_) : maxMainSize; in MakeInnerLayoutParam()
|