Home
last modified time | relevance | path

Searched refs:mainSize (Results 1 - 25 of 87) sorted by relevance

1234

/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/grid/grid_scroll/
H A Dgrid_scroll_layout_algorithm.h77 void SkipForwardLines(float mainSize, LayoutWrapper* layoutWrapper);
78 void SkipBackwardLines(float mainSize, LayoutWrapper* layoutWrapper);
83 void FillGridViewportAndMeasureChildren(float mainSize, float crossSize, LayoutWrapper* layoutWrapper);
84 void ReloadToStartIndex(float mainSize, float crossSize, LayoutWrapper* layoutWrapper);
86 float mainSize, float crossSize, int32_t updateLineIndex, LayoutWrapper* layoutWrapper);
87 float MeasureRecordedItems(float mainSize, float crossSize, LayoutWrapper* layoutWrapper);
88 bool UseCurrentLines(float mainSize, float crossSize, LayoutWrapper* layoutWrapper, float& mainLength);
89 virtual void SkipLargeOffset(float mainSize, LayoutWrapper* layoutWrapper);
92 bool FillBlankAtStart(float mainSize, float crossSize, LayoutWrapper* layoutWrapper);
93 float FillNewLineForward(float crossSize, float mainSize, LayoutWrappe
[all...]
H A Dgrid_scroll_layout_algorithm.cpp69 float mainSize = GetMainAxisSize(idealSize, axis); in Measure() local
71 if (!NearEqual(mainSize, gridLayoutInfo_.lastMainSize_)) { in Measure()
72 UpdateOffsetOnVirtualKeyboardHeightChange(layoutWrapper, mainSize); in Measure()
73 UpdateOffsetOnHeightChangeDuringAnimation(layoutWrapper, mainSize); in Measure()
76 FillGridViewportAndMeasureChildren(mainSize, crossSize, layoutWrapper); in Measure()
86 gridLayoutInfo_.lastMainSize_ = mainSize; in Measure()
88 AdaptToChildMainSize(layoutWrapper, gridLayoutProperty, mainSize, idealSize, matchChildren); in Measure()
98 SyncPreload(layoutWrapper, gridLayoutProperty->GetCachedCountValue(1), crossSize, mainSize); in Measure()
102 FillCacheLineAtEnd(mainSize, crossSize, layoutWrapper); in Measure()
117 void GridScrollLayoutAlgorithm::UpdateOffsetOnVirtualKeyboardHeightChange(LayoutWrapper* layoutWrapper, float mainSize) in UpdateOffsetOnVirtualKeyboardHeightChange() argument
157 AdaptToChildMainSize(LayoutWrapper* layoutWrapper, RefPtr<GridLayoutProperty>& gridLayoutProperty, float mainSize, SizeF idealSize, bool matchChildren) AdaptToChildMainSize() argument
187 UpdateOffsetOnHeightChangeDuringAnimation(LayoutWrapper* layoutWrapper, float mainSize) UpdateOffsetOnHeightChangeDuringAnimation() argument
358 FillGridViewportAndMeasureChildren( float mainSize, float crossSize, LayoutWrapper* layoutWrapper) FillGridViewportAndMeasureChildren() argument
434 ReloadToStartIndex(float mainSize, float crossSize, LayoutWrapper* layoutWrapper) ReloadToStartIndex() argument
464 ReloadFromUpdateIdxToStartIndex( float mainSize, float crossSize, int32_t updateLineIndex, LayoutWrapper* layoutWrapper) ReloadFromUpdateIdxToStartIndex() argument
493 FillBlankAtStart(float mainSize, float crossSize, LayoutWrapper* layoutWrapper) FillBlankAtStart() argument
522 FillOneLineForwardWithoutUpdatingStartIndex( float crossSize, float mainSize, LayoutWrapper* layoutWrapper) FillOneLineForwardWithoutUpdatingStartIndex() argument
552 ModifyCurrentOffsetWhenReachEnd(float mainSize, LayoutWrapper* layoutWrapper) ModifyCurrentOffsetWhenReachEnd() argument
608 FillBlankAtEnd( float mainSize, float crossSize, LayoutWrapper* layoutWrapper, float& mainLength) FillBlankAtEnd() argument
844 UpdateGridLayoutInfo(LayoutWrapper* layoutWrapper, float mainSize) UpdateGridLayoutInfo() argument
883 ScrollToIndexAuto(LayoutWrapper* layoutWrapper, float mainSize, int32_t targetIndex) ScrollToIndexAuto() argument
969 UpdateCurrentOffsetForJumpTo(float mainSize) UpdateCurrentOffsetForJumpTo() argument
994 MeasureRecordedItems(float mainSize, float crossSize, LayoutWrapper* layoutWrapper) MeasureRecordedItems() argument
1013 UseCurrentLines( float mainSize, float crossSize, LayoutWrapper* layoutWrapper, float& mainLength) UseCurrentLines() argument
1100 SkipLargeOffset(float mainSize, LayoutWrapper* layoutWrapper) SkipLargeOffset() argument
1110 SkipForwardLines(float mainSize, LayoutWrapper* layoutWrapper) SkipForwardLines() argument
1145 SkipBackwardLines(float mainSize, LayoutWrapper* layoutWrapper) SkipBackwardLines() argument
1222 FillNewLineForward(float crossSize, float mainSize, LayoutWrapper* layoutWrapper) FillNewLineForward() argument
1295 AddForwardLines( int32_t currentIndex, float crossSize, float mainSize, LayoutWrapper* layoutWrapper) AddForwardLines() argument
1364 FillNewLineBackward( float crossSize, float mainSize, LayoutWrapper* layoutWrapper, bool reverse) FillNewLineBackward() argument
1519 CreateChildConstraint(float mainSize, float crossSize, const RefPtr<GridLayoutProperty>& gridLayoutProperty, int32_t crossStart, int32_t crossSpan) const CreateChildConstraint() argument
1681 auto mainSize = GetMainAxisSize(frameSize, gridLayoutInfo_.axis_); MeasureChild() local
1814 SupplyAllData2ZeroIndex(float mainSize, float crossSize, LayoutWrapper* layoutWrapper) SupplyAllData2ZeroIndex() argument
1871 FillCacheLineAtEnd(float mainSize, float crossSize, LayoutWrapper* layoutWrapper) FillCacheLineAtEnd() argument
1898 FillNewCacheLineBackward( float crossSize, float mainSize, LayoutWrapper* layoutWrapper, int32_t currentLine) FillNewCacheLineBackward() argument
2121 SyncPreload( LayoutWrapper* wrapper, int32_t cacheLineCnt, float crossSize, float mainSize) SyncPreload() argument
2172 CreateCachedChildConstraint( LayoutWrapper* layoutWrapper, float mainSize, float crossSize) CreateCachedChildConstraint() argument
2203 CheckReset(float mainSize, float crossSize, LayoutWrapper* layoutWrapper) CheckReset() argument
2303 SkipLargeLineHeightLines(float mainSize) SkipLargeLineHeightLines() argument
[all...]
/foundation/arkui/ace_engine/interfaces/native/node/
H A Dlist_option.cpp216 option->mainSize.resize(std::max(totalSize, 0), -1.0f); in OH_ArkUI_ListChildrenMainSizeOption_Resize()
223 if (index < 0 || deleteCount < 0 || addCount < 0 || static_cast<int32_t>(option->mainSize.size()) - 1 < index) { in OH_ArkUI_ListChildrenMainSizeOption_Splice()
227 if (static_cast<size_t>(index) < option->mainSize.size()) { in OH_ArkUI_ListChildrenMainSizeOption_Splice()
228 option->mainSize.erase(option->mainSize.begin() + index); in OH_ArkUI_ListChildrenMainSizeOption_Splice()
233 option->mainSize.insert(option->mainSize.begin() + index, -1.0f); in OH_ArkUI_ListChildrenMainSizeOption_Splice()
240 ArkUI_ListChildrenMainSize* option, int32_t index, float mainSize) in OH_ArkUI_ListChildrenMainSizeOption_UpdateSize()
243 if (index < 0 || mainSize < 0 || static_cast<int32_t>(option->mainSize in OH_ArkUI_ListChildrenMainSizeOption_UpdateSize()
239 OH_ArkUI_ListChildrenMainSizeOption_UpdateSize( ArkUI_ListChildrenMainSize* option, int32_t index, float mainSize) OH_ArkUI_ListChildrenMainSizeOption_UpdateSize() argument
[all...]
H A Dlist_option.h49 std::vector<float> mainSize; member
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/grid/irregular/
H A Dgrid_irregular_layout_algorithm.h64 void MeasureOnOffset(float mainSize);
65 void MeasureForward(float mainSize);
66 void MeasureBackward(float mainSize);
72 * @param mainSize main-axis length of the viewport.
75 bool TrySkipping(float mainSize);
109 void MeasureOnJump(float mainSize);
110 void Jump(float mainSize);
123 * If the algorithm identifies that mainSize can't be filled with the current scrollAlign_ and jumpLineIdx, these
126 * @param mainSize The main-axis length of the grid.
129 void PrepareLineHeight(float mainSize, int32_
[all...]
H A Dgrid_irregular_layout_algorithm.cpp34 float mainSize = MeasureSelf(props); in Measure() local
43 MeasureOnJump(mainSize); in Measure()
45 MeasureOnOffset(mainSize); in Measure()
189 void GridIrregularLayoutAlgorithm::MeasureOnOffset(float mainSize) in MeasureOnOffset() argument
191 if (TrySkipping(mainSize)) { in MeasureOnOffset()
196 MeasureBackward(mainSize); in MeasureOnOffset()
198 MeasureForward(mainSize); in MeasureOnOffset()
216 void GridIrregularLayoutAlgorithm::MeasureForward(float mainSize) in MeasureForward() argument
218 float heightToFill = mainSize - info_.currentOffset_ - GetPrevHeight(info_, mainGap_); in MeasureForward()
227 auto [endMainLineIdx, endIdx] = solver.SolveForwardForEndIdx(mainGap_, mainSize in MeasureForward()
245 MeasureBackward(float mainSize) MeasureBackward() argument
268 TrySkipping(float mainSize) TrySkipping() argument
285 MeasureOnJump(float mainSize) MeasureOnJump() argument
301 Jump(float mainSize) Jump() argument
343 float mainSize = wrapper_->GetGeometryNode()->GetContentSize().MainSize(info_.axis_); UpdateLayoutInfo() local
478 PrepareLineHeight(float mainSize, int32_t& jumpLineIdx) PrepareLineHeight() argument
[all...]
H A Dgrid_layout_range_solver.cpp47 auto mainSize = wrapper_->GetGeometryNode()->GetContentSize().MainSize(info_->axis_); in FindRangeOnJump() local
57 auto [endLineIdx, endIdx] = SolveForwardForEndIdx(mainGap, mainSize, jumpLineIdx); in FindRangeOnJump()
64 const float halfMainSize = mainSize / 2.0f; in FindRangeOnJump()
75 auto res = SolveBackward(mainGap, mainSize - it->second, jumpLineIdx); in FindRangeOnJump()
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/waterflow/layout/top_down/
H A Dwater_flow_layout_info.h65 bool IsAllCrossReachEnd(float mainSize) const;
89 float CalcOverScroll(float mainSize, float delta) const override;
160 * @param mainSize main-axis length of viewport.
163 int32_t FastSolveEndIndex(float mainSize) const;
175 * @param mainSize waterFlow length on the main axis.
178 void Sync(float mainSize, bool overScroll);
233 ItemInfo(int32_t cross, float offset, float size) : crossIdx(cross), mainOffset(offset), mainSize(size) {} in ItemInfo()
236 return crossIdx == other.crossIdx && mainOffset == other.mainOffset && mainSize == other.mainSize; in operator ==()
241 float mainSize member
[all...]
H A Dwater_flow_layout_info.cpp118 return itemInfos_[itemIndex].mainOffset + itemInfos_[itemIndex].mainSize; in GetMainHeight()
188 bool WaterFlowLayoutInfo::IsAllCrossReachEnd(float mainSize) const in IsAllCrossReachEnd()
198 if (LessNotEqual(lastOffset + currentOffset_, mainSize)) { in IsAllCrossReachEnd()
362 int32_t WaterFlowLayoutInfo::FastSolveEndIndex(float mainSize) const in FastSolveEndIndex()
368 const float endBound = mainSize - currentOffset_; in FastSolveEndIndex()
373 while (it != itemInfos_.end() && NearZero(it->mainSize) && NearEqual(it->mainOffset, endBound)) { in FastSolveEndIndex()
419 void WaterFlowLayoutInfo::Sync(float mainSize, bool overScroll) in Sync() argument
425 endIndex_ = FastSolveEndIndex(mainSize); in Sync()
431 offsetEnd_ = itemEnd_ && GreatOrEqual(mainSize - currentOffset_, maxHeight_); in Sync()
434 currentOffset_ = std::min(-maxHeight_ + mainSize, 0. in Sync()
579 CalcOverScroll(float mainSize, float delta) const CalcOverScroll() argument
[all...]
H A Dwater_flow_layout_algorithm.h45 void FillViewport(float mainSize, LayoutWrapper* layoutWrapper);
46 void ModifyCurrentOffsetWhenReachEnd(float mainSize, LayoutWrapper* layoutWrapper);
/foundation/arkui/ace_engine/test/unittest/core/pattern/scroll_bar/
H A Dscroll_bar_test_ng.h46 void CreateScroll(float mainSize = CONTENT_MAIN_SIZE, Axis axis = Axis::VERTICAL);
47 void CreateContent(float mainSize = CONTENT_MAIN_SIZE, Axis axis = Axis::VERTICAL);
49 void CreateScrollBarChild(float mainSize = SCROLL_BAR_CHILD_HEIGHT);
50 void SetScrollContentMainSize(float mainSize);
H A Dscroll_bar_test_ng.cpp103 void ScrollBarTestNg::CreateScroll(float mainSize, Axis axis) in CreateScroll() argument
115 CreateContent(mainSize, axis); in CreateScroll()
119 void ScrollBarTestNg::CreateContent(float mainSize, Axis axis) in CreateContent() argument
123 SetSize(axis, CalcLength(FILL_LENGTH), CalcLength(mainSize)); in CreateContent()
139 void ScrollBarTestNg::CreateScrollBarChild(float mainSize) in CreateScrollBarChild() argument
144 SetSize(axis, CalcLength(SCROLL_BAR_CHILD_WIDTH), CalcLength(mainSize)); in CreateScrollBarChild()
148 void ScrollBarTestNg::SetScrollContentMainSize(float mainSize) in SetScrollContentMainSize() argument
151 ViewAbstract::SetHeight(AceType::RawPtr(scrollContent), CalcLength(mainSize)); in SetScrollContentMainSize()
/foundation/arkui/ace_engine/frameworks/core/components_v2/water_flow/
H A Drender_water_flow.cpp255 double mainSize = 0.0; in SetChildPosition() local
260 mainSize = iter->second.mainSize; in SetChildPosition()
269 // offset.y : [viewPort mainSize - (item mainSize + item mainPos)] - viewPort offse in SetChildPosition()
270 offset = Offset(crossPos, (mainSize_ - (mainPos + mainSize)) - viewportStartPos_); in SetChildPosition()
277 // offset.x : [viewPort mainSize - (item mainSize + item mainPos)] - viewPort offse in SetChildPosition()
278 offset = Offset((mainSize_ - (mainPos + mainSize)) - viewportStartPos_, crossPos); in SetChildPosition()
459 itemFlowStyle.mainSize in SupplyItems()
498 GetFooterSize(double mainSize, double crossSize) GetFooterSize() argument
982 auto mainSize = GetMainSize(footer_); RequestWaterFlowFooter() local
[all...]
/foundation/arkui/ace_engine/frameworks/core/interfaces/native/node/
H A Dnode_list_item_group_modifier.cpp76 for (uint32_t i = 0; i < option->mainSize.size(); i++) { in SetListItemGroupChildrenMainSize()
77 if (option->mainSize[i] > 0) { in SetListItemGroupChildrenMainSize()
78 option->mainSize[i] = in SetListItemGroupChildrenMainSize()
79 Dimension(option->mainSize[i], static_cast<OHOS::Ace::DimensionUnit>(unit)).ConvertToPx(); in SetListItemGroupChildrenMainSize()
86 ListItemGroupModelNG::SetListChildrenMainSize(frameNode, option->defaultMainSize, option->mainSize); in SetListItemGroupChildrenMainSize()
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/list/
H A Dlist_item_layout_algorithm.cpp51 auto mainSize = layoutWrapper->GetGeometryNode()->GetPaddingSize().MainSize(axis_); in Measure() local
52 if (NonPositive(mainSize)) { in Measure()
62 startLayoutConstraint.maxSize.SetMainSize(mainSize, axis_); in Measure()
63 startLayoutConstraint.percentReference.SetMainSize(mainSize, axis_); in Measure()
77 endLayoutConstraint.maxSize.SetMainSize(mainSize, axis_); in Measure()
78 endLayoutConstraint.percentReference.SetMainSize(mainSize, axis_); in Measure()
H A Dlist_position_map.h44 float mainSize; member
62 posMap_[index] = { posInfo.mainPos, posInfo.mainSize }; in UpdatePos()
72 if (LessNotEqual(iter->second.mainSize, posInfo.mainSize)) { in UpdatePosWithCheck()
73 iter->second.mainSize = posInfo.mainSize; in UpdatePosWithCheck()
124 float prevPos = it->second.mainPos + it->second.mainSize + space; in UpdatePosMapStart()
144 float prevPos = it->second.mainPos + it->second.mainSize + space; in UpdatePosMapEnd()
435 return { end->first, end->second.mainPos + end->second.mainSize }; in GetEndIndexAndPos()
/foundation/arkui/ace_engine/frameworks/core/components_v2/list/
H A Drender_list.cpp451 void RenderList::RequestNewItemsAtEndForLaneList(double& curMainPos, double mainSize) in RequestNewItemsAtEndForLaneList() argument
469 if (GreatOrEqual(curMainPos, mainSize)) { in RequestNewItemsAtEndForLaneList()
497 void RenderList::RequestNewItemsAtEnd(double& curMainPos, double mainSize) in RequestNewItemsAtEnd() argument
501 if (endCachedCount_ >= cachedCount_ && GreatOrEqual(curMainPos, mainSize)) { in RequestNewItemsAtEnd()
514 if (GreatOrEqual(curMainPos, mainSize)) { in RequestNewItemsAtEnd()
617 const double mainSize = ApplyLayoutParam(); in PerformLayout() local
618 if (NearZero(mainSize)) { in PerformLayout()
629 curMainPos = LayoutOrRecycleCurrentItemsForLaneList(mainSize); in PerformLayout()
631 curMainPos = LayoutOrRecycleCurrentItems(mainSize); in PerformLayout()
636 RequestNewItemsAtEndForLaneList(curMainPos, mainSize); in PerformLayout()
778 SetItemsPositionForLaneList(double mainSize) SetItemsPositionForLaneList() argument
945 SetItemsPosition(double mainSize) SetItemsPosition() argument
1141 GetCurMainPosAndMainSize(double& curMainPos, double& mainSize) GetCurMainPosAndMainSize() argument
1352 LayoutOrRecycleCurrentItemsForLaneList(double mainSize) LayoutOrRecycleCurrentItemsForLaneList() argument
1364 double mainSize = 0.0; LayoutOrRecycleCurrentItemsForLaneList() local
1472 LayoutOrRecycleCurrentItemsForCache(double mainSize) LayoutOrRecycleCurrentItemsForCache() argument
1532 LayoutOrRecycleCurrentItems(double mainSize) LayoutOrRecycleCurrentItems() argument
1940 CalculateMainScrollExtent(double curMainPos, double mainSize) CalculateMainScrollExtent() argument
2361 double mainSize = GetMainSize(selectedItem_->GetLayoutSize()); OnSelectedItemMove() local
3159 AdjustForReachEnd(double mainSize, double curMainPos) AdjustForReachEnd() argument
[all...]
H A Drender_list.h301 Size SetItemsPosition(double mainSize);
302 Size SetItemsPositionForLaneList(double mainSize);
312 double LayoutOrRecycleCurrentItems(double mainSize);
314 double LayoutOrRecycleCurrentItemsForCache(double mainSize);
315 double LayoutOrRecycleCurrentItemsForLaneList(double mainSize);
342 void CalculateMainScrollExtent(double curMainPos, double mainSize);
343 bool GetCurMainPosAndMainSize(double &curMainPos, double &mainSize);
368 void RequestNewItemsAtEnd(double& curMainPos, double mainSize);
369 void RequestNewItemsAtEndForLaneList(double& curMainPos, double mainSize);
469 void AdjustForReachEnd(double mainSize, doubl
[all...]
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/waterflow/layout/sliding_window/
H A Dwater_flow_layout_info_sw.h62 float CalcOverScroll(float mainSize, float delta) const override;
118 * @param mainSize main-axis length of the viewport.
121 void Sync(int32_t itemCnt, float mainSize, const std::vector<float>& mainGap);
145 * @param mainSize of the viewport
148 float DistanceToBottom(int32_t item, float mainSize, float mainGap) const;
274 float mainSize = 0.0f; member
H A Dwater_flow_layout_info_sw.cpp18 void WaterFlowLayoutInfoSW::Sync(int32_t itemCnt, float mainSize, const std::vector<float>& mainGap) in Sync() argument
34 lastMainSize_ = mainSize; in Sync()
42 itemEnd_ &= LessOrEqualCustomPrecision(endPos_, mainSize, 0.1f); in Sync()
44 offsetEnd_ = itemEnd_ && LessOrEqualCustomPrecision(endPos_ + footerHeight_ + BotMargin(), mainSize, 0.1f); in Sync()
78 dist += item.mainSize + mainGap; in DistanceToTop()
83 float WaterFlowLayoutInfoSW::DistanceToBottom(int32_t itemIdx, float mainSize, float mainGap) const in DistanceToBottom() argument
89 float dist = mainSize - lane.endPos; in DistanceToBottom()
94 dist += item->mainSize + mainGap; in DistanceToBottom()
152 float WaterFlowLayoutInfoSW::CalcOverScroll(float mainSize, float delta) const in CalcOverScroll() argument
162 res = mainSize in CalcOverScroll()
[all...]
/foundation/arkui/ace_engine/frameworks/core/components/list/
H A Drender_list_item_group.cpp102 void RenderListItemGroup::AddArrowImage(double mainSize) in AddArrowImage() argument
121 mainSize - NormalizeToPx(BOX_SIZE_WIDTH + MARGIN_RIGHT_WIDTH + imageSize_) * FACTOR_HALF, 0.0); in AddArrowImage()
207 void RenderListItemGroup::LayoutExpandableList(double mainSize) in LayoutExpandableList() argument
213 if (NearEqual(mainSize, primarySize)) { in LayoutExpandableList()
227 if (childSize > mainSize - curSize - primarySize) { in LayoutExpandableList()
236 child->SetPosition(MakeValue<Offset>(mainSize - curSize - childSize, 0.0)); in LayoutExpandableList()
239 if (curSize + primarySize >= mainSize) { in LayoutExpandableList()
282 double mainSize = GetMainSize(primary_->GetLayoutSize()); in PerformLayout() local
297 mainSize += GetMainSize(child->GetLayoutSize()); in PerformLayout()
301 AddArrowImage(mainSize); in PerformLayout()
[all...]
/foundation/arkui/ace_engine/frameworks/core/components/scroll/
H A Dscroll_bar_controller.cpp249 double mainSize = isVertical_ ? scroll->GetLayoutSize().Height() : scroll->GetLayoutSize().Width(); in UpdateScrollPosition() local
251 double activeHeight = mainSize * mainSize / estimatedHeight; in UpdateScrollPosition()
252 if (!NearEqual(mainSize, activeHeight)) { in UpdateScrollPosition()
253 double value = offset * (estimatedHeight - mainSize) / (mainSize - activeHeight); in UpdateScrollPosition()
/foundation/arkui/ace_engine/frameworks/core/components/common/properties/
H A Dscroll_bar.cpp62 double mainSize = (positionMode_ == PositionMode::BOTTOM ? size.Width() : size.Height()); in SetRectTrickRegion() local
63 double barRegionSize = std::max(mainSize - NormalizeToPx(reservedHeight_), 0.0); in SetRectTrickRegion()
64 double activeSize = barRegionSize * mainSize / estimatedHeight - outBoundary_; in SetRectTrickRegion()
65 if (!NearEqual(mainSize, estimatedHeight)) { in SetRectTrickRegion()
74 double activeMainOffset = (mainSize - activeSize) * lastMainOffset / (estimatedHeight - mainSize); in SetRectTrickRegion()
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/grid/
H A Dgrid_layout_info.h89 void UpdateStartIndexForExtralOffset(float mainGap, float mainSize);
91 void UpdateEndLine(float mainSize, float mainGap);
93 void UpdateEndIndex(float overScrollOffset, float mainSize, float mainGap);
334 * @param mainSize of the viewport.
337 * @return Positive when content's end is below viewport. Return [mainSize] if last line is not in viewport.
339 float GetDistanceToBottom(float mainSize, float heightInView, float mainGap) const;
346 * @param mainSize The main-axis length of the grid.
349 ScrollAlign TransformAutoScrollAlign(int32_t itemIdx, int32_t height, float mainSize, float mainGap) const;
/foundation/arkui/ace_engine/frameworks/base/geometry/ng/
H A Dsize_t.h37 SizeT(T crossSize, T mainSize, Axis axis) in SizeT() argument
40 width_ = mainSize; in SizeT()
44 height_ = mainSize; in SizeT()
84 void SetMainSize(T mainSize, Axis axis) in SetMainSize() argument
86 axis == Axis::HORIZONTAL ? width_ = mainSize : height_ = mainSize; in SetMainSize()
447 void SetMainSize(T mainSize, Axis axis)
449 axis == Axis::HORIZONTAL ? width_ = mainSize : height_ = mainSize;
457 void SetMainSize(const std::optional<T>& mainSize, Axi
[all...]

Completed in 18 milliseconds

1234