Home
last modified time | relevance | path

Searched refs:GetMainSize (Results 1 – 25 of 34) sorted by relevance

12

/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/list/
H A Dlist_watch_layout_manager.cpp50 firstChildSize_ = renderList_.GetMainSize(itemChild->GetLayoutSize()); in PerformLayout()
52 lastChildSize_ = renderList_.GetMainSize(itemChild->GetLayoutSize()); in PerformLayout()
56 curMainSize += renderList_.GetMainSize(itemChild->GetLayoutSize()); in PerformLayout()
86 double mainLen = renderList_.GetMainSize(viewPort_); in SetChildPosition()
120 mainAxis += (renderList_.GetMainSize(viewPort_) - firstChildSize_) * HALF_SIZE; in SetChildPosition()
198 return renderList_.GetMainSize(itemChild->GetLayoutSize()); in GetFirstChildSize()
202 return renderList_.GetMainSize(itemChild->GetLayoutSize()); in GetFirstChildSize()
210 return renderList_.GetMainSize(child->GetLayoutSize()); in GetFirstChildSize()
213 return renderList_.GetMainSize(itemChild->GetLayoutSize()); in GetFirstChildSize()
225 double changeSize = size + renderList_.GetMainSize(viewPort_); in AdjustLayoutSize()
[all …]
H A Drender_list.cpp199 curMainSize += GetMainSize(itemChild->GetLayoutSize()); in BuildNextItem()
253 layoutManager_->LayoutMore(GetMainSize(viewPort_)); in CalculateItemPosition()
265 layoutManager_->LayoutMore(GetMainSize(viewPort_)); in CalculateItemPosition()
266 double curMainSize = GetMainSize(GetLayoutSize()); in CalculateItemPosition()
267 double maxJumpSize = curMainSize - GetMainSize(viewPort_); in CalculateItemPosition()
277 double curMainSize = GetMainSize(GetLayoutSize()); in CalculateItemPosition()
278 double maxJumpSize = curMainSize - GetMainSize(viewPort_); in CalculateItemPosition()
294 layoutManager_->LayoutMore(GetMainSize(viewPort_)); in CalculateItemPosition()
337 endPosition = startPosition + GetMainSize(item.second->GetLayoutSize()); in GetChildByPosition()
583 stickyItemMap_[newStickyIndex] = GetMainSize(stickyItem_->GetLayoutSize()); in CalculateStickyItem()
[all …]
H A Dlist_layout_manager.cpp76 extent *= renderList_.GetMainSize(viewPort_); in MakeInnerLayoutParam()
328 double listMainSize = renderList_.GetMainSize(renderList_.GetLayoutSize()); in AdjustLayoutParam()
329 double viewPortSize = renderList_.GetMainSize(viewPort_); in AdjustLayoutParam()
431 double childLayoutSize = renderList_.GetMainSize(itemChild->GetLayoutSize()); in PerformLayout()
461 double size = renderList_.GetMainSize(item->GetLayoutSize()); in MoveItemToViewPort()
546 curMainSize += renderList_.GetMainSize(itemChild->GetLayoutSize()); in LayoutToItem()
577 curMainSize += renderList_.GetMainSize(itemChild->GetLayoutSize()); in LayoutToPosition()
610 curMainSize += renderList_.GetMainSize(itemChild->GetLayoutSize()); in LayoutMore()
611 incMainSize += renderList_.GetMainSize(itemChild->GetLayoutSize()); in LayoutMore()
636 double mainLen = renderList_.GetMainSize(viewPort_); in SetChildPosition()
[all …]
H A Dgrid_layout_manager.cpp68 extent *= renderList_.GetMainSize(viewPort_); in MakeInnerLayoutParam()
137 mainSize = mainSize_ - renderList_.GetMainSize(child->GetLayoutSize()) - mainSize; in SetChildPosition()
142 mainSize = mainSize_ - renderList_.GetMainSize(child->GetLayoutSize()) - mainSize; in SetChildPosition()
303 … childMainSize = std::max(renderList_.GetMainSize(itemChild->GetLayoutSize()), childMainSize); in PerformLayout()
397 … childMainSize = std::max(renderList_.GetMainSize(itemChild->GetLayoutSize()), childMainSize); in LayoutToItem()
436 … childMainSize = std::max(renderList_.GetMainSize(itemChild->GetLayoutSize()), childMainSize); in LayoutMore()
H A Drender_list_item_group.cpp211 primarySize = GetMainSize(primary_->GetLayoutSize()); in LayoutExpandableList()
226 double childSize = GetMainSize(child->GetLayoutSize()); in LayoutExpandableList()
278 double curMainSize = GetMainSize(GetLayoutSize()); in PerformLayout()
282 double mainSize = GetMainSize(primary_->GetLayoutSize()); in PerformLayout()
297 mainSize += GetMainSize(child->GetLayoutSize()); in PerformLayout()
305 primary_->SetPosition(Offset(mainSize - GetMainSize(primary_->GetLayoutSize()), 0.0)); in PerformLayout()
H A Drender_list_item_group.h76 double GetMainSize(const Size& size) const in GetMainSize() function
H A Dlist_item_group_element.cpp185 double itemSize = renderItemGroup_->GetMainSize(renderListItem->GetLayoutSize()); in MoveItemToViewPort()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_v2/list/
H A Drender_list_item_group.cpp137 double childSize = GetMainSize(child->GetLayoutSize()); in RecycleStartCacheItems()
168 double childSize = GetMainSize(child->GetLayoutSize()); in LayoutALine()
219 double childSize = GetMainSize(child->GetLayoutSize()); in RequestNewItemsAtEnd()
259 double childSize = GetMainSize(child->GetLayoutSize()); in RequestNewItemsAtStart()
327 double headerSize = GetMainSize(header_->GetLayoutSize()); in SetItemsPostion()
331 headerPos -= GetMainSize(footer_->GetLayoutSize()); in SetItemsPostion()
345 double childSize = GetMainSize(child->GetLayoutSize()); in SetItemsPostion()
363 footerPos += GetMainSize(header_->GetLayoutSize()); in SetItemsPostion()
475 double headerSize = GetMainSize(header_->GetLayoutSize()); in SetChainOffset()
479 headerPos -= GetMainSize(footer_->GetLayoutSize()); in SetChainOffset()
[all …]
H A Drender_list.cpp495 double size = GetMainSize(itemGroup->GetLayoutSize()); in RequestNewItemsAtEndForLaneList()
578 double size = GetMainSize(itemGroup->GetLayoutSize()); in RequestNewItemsAtStartForLaneList()
971 double childMainSize = GetMainSize(childLayoutSize); in SetItemsPosition()
1297 auto maxMainSize = GetMainSize(maxLayoutSize); in ApplyLayoutParam()
1470 double childSize = GetMainSize(child->GetLayoutSize()); in BackwardLayoutForCache()
1510 double childSize = GetMainSize(child->GetLayoutSize()); in LayoutOrRecycleCurrentItemsForCache()
1821 double pageSize = GetMainSize(GetLayoutSize()); in ScrollPage()
1856 double viewPortSize = GetMainSize(GetPaintRect().GetSize()); in AdjustOffset()
2367 double maxMainSize = GetMainSize(GetLayoutSize()); in OnSelectedItemMove()
3172 double size = GetMainSize(itemGroup->GetLayoutSize()); in AdjustForReachEnd()
[all …]
H A Drender_list_item.cpp100 double maxMainSize = GetMainSize(childSize); in PerfLayoutSwiperMode()
112 Size maxSize = MakeValue<Size>(GetMainSize(layoutParam.GetMaxSize()), curOffset_); in PerfLayoutSwiperMode()
116 maxMainSize = std::max(maxMainSize, GetMainSize(startSize)); in PerfLayoutSwiperMode()
119 … swiperStart->SetPosition(MakeValue<Offset>((maxMainSize - GetMainSize(startSize)) / 2, startPos)); in PerfLayoutSwiperMode()
132 Size maxSize = MakeValue<Size>(GetMainSize(layoutParam.GetMaxSize()), -curOffset_); 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()
H A Drosen_render_list_item_group.cpp44 const double mainSize = GetMainSize(layoutSize); in PaintDivider()
H A Drender_list_item_group.h66 double GetMainSize(const Size& size) const in GetMainSize() function
H A Drender_list_item.h159 double GetMainSize(const Size& size) const in GetMainSize() function
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/scroll/
H A Drender_scroll.cpp66 if (mainScrollExtent_ <= GetMainSize(viewPort_)) { in ValidateOffset()
84 (mainScrollExtent_ - GetMainSize(viewPort_)); in ValidateOffset()
99 GetMainOffset(currentOffset_) - (mainScrollExtent_ - GetMainSize(viewPort_)); in ValidateOffset()
123 GetMainOffset(currentOffset_) < mainScrollExtent_ - GetMainSize(viewPort_)) { in HandleScrollPosition()
263 double maxExtent = mainScrollExtent_ - GetMainSize(viewPort_); in IsCrashBottom()
288 if (mainScrollExtent_ <= GetMainSize(viewPort_)) { in CanScrollVertically()
380 double viewPortSize = GetMainSize(viewPort_); in AdjustOffset()
439 return scroll->GetMainSize(scroll->viewPort_) - scroll->mainScrollExtent_; in ResetEdgeEffect()
448 return scroll->mainScrollExtent_ - scroll->GetMainSize(scroll->viewPort_); in ResetEdgeEffect()
695 double distance = -GetMainSize(viewPort_); in ScrollPage()
[all …]
H A Drender_multi_child_scroll.cpp368 double mainExtent = GetMainSize(viewPort_); in OnPredictLayout()
406 double mainExtent = GetMainSize(viewPort_); in LayoutChild()
514 if (GreatNotEqual(GetMainSize(GetLayoutSize()), GetMainSize(viewPort_))) { in ExtendViewPort()
655 if (beginPosition >= 0.0 && mainScrollExtent_ >= GetMainSize(viewPort_)) { in MoveItemToViewPort()
664 double viewPortSize = GetMainSize(viewPort_); in CalculateBeginPositionInViewPort()
916 double centerPosition = listPosition + GetMainSize(viewPort_) * HALF_ITEM_SIZE; in GetFixPositionOnWatch()
925 double end = start + listBase->GetMainSize(item->GetLayoutSize()); in GetFixPositionOnWatch()
928 itemSize = GetMainSize(item->GetLayoutSize()); in GetFixPositionOnWatch()
940 double center = listPosition + GetMainSize(viewPort_) * HALF_ITEM_SIZE; in GetFixPositionOnWatch()
955 return headOffset <= (GetMainSize(viewPort_) - tailOffset) && ReachMaxCount(); in IsOutOfBottomBoundary()
[all …]
H A Drender_single_child_scroll.cpp126 …crollable_->Idle() && GetMainOffset(currentOffset_) > mainScrollExtent_ - GetMainSize(viewPort_)) { in CalculateMainScrollExtent()
128 JumpToPosition(mainScrollExtent_ - GetMainSize(viewPort_)); in CalculateMainScrollExtent()
162 double childSize = GetMainSize(size); in MoveChildToViewPort()
163 double viewPortSize = GetMainSize(viewPort_); in MoveChildToViewPort()
232 auto currentChildMainSize = GetMainSize(child->GetLayoutSize()); in PerformLayout()
H A Drender_scroll.h88 auto outViewportSize = mainScrollExtent_ - GetMainSize(viewPort_); in IsAtBottom()
111 double GetMainSize(const Size& size) const in GetMainSize() function
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/split_container/
H A Drender_split_container.cpp76 double RenderSplitContainer::GetMainSize(const RefPtr<RenderNode>& renderNode) const in GetMainSize() function in OHOS::Ace::RenderSplitContainer
117 allocatedSize += GetMainSize(child); in UpdateDisplayNode()
124 allocatedSize -= GetMainSize(child); in UpdateDisplayNode()
200 layoutWidth_ += GetMainSize(item); in LayoutChildren()
204 layoutHeight_ += GetMainSize(item); in LayoutChildren()
208 childOffsetMain += GetMainSize(item); in LayoutChildren()
H A Drender_split_container.h70 double GetMainSize(const RefPtr<RenderNode>& renderNode) const;
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/flex/
H A Drender_flex.cpp377 … innerLayout = MakeLayoutParamWithLimit(GetMainSize(child), GetMainSize(child), true); in RelayoutForStretchMagicNode()
403 allocatedSize_ += GetMainSize(child); in PerformLayoutInIndexMode()
409 allocatedSize_ -= GetMainSize(child); in PerformLayoutInIndexMode()
751 offset.SetX(offset.GetX() - GetMainSize(item)); in PlaceChildren()
753 offset.SetY(offset.GetY() - GetMainSize(item)); in PlaceChildren()
756 childMainPos -= GetMainSize(item) + betweenSpace; in PlaceChildren()
759 childMainPos += GetMainSize(item) + betweenSpace; in PlaceChildren()
804 auto mainFlexExtent = flexSize + GetMainSize(flexItem); in RedoLayoutFlexItem()
809 allocatedSize_ -= GetMainSize(flexItem); in RedoLayoutFlexItem()
968 double mainSize = GetMainSize(item); in ResizeByItem()
[all …]
H A Drender_flex.h200 double GetMainSize(const RefPtr<RenderNode>& item) const;
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/grid/
H A Drender_grid.cpp164 if (totalMainSize_ < GetMainSize(GetLayoutSize())) { in UpdateOffset()
466 double childMainSize = GetMainSize(child->GetLayoutSize()); in MoveChildToViewPort()
467 double gridMainSize = GetMainSize(GetLayoutSize()); in MoveChildToViewPort()
663 double mainAxis = mainSize - GetMainSize(child->GetLayoutSize()); in SetChildPosition()
679 mainAxis = mainSize_ - GetMainSize(child->GetLayoutSize()) - mainAxis; in SetChildPosition()
685 mainAxis = mainSize_ - GetMainSize(child->GetLayoutSize()) - mainAxis; in SetChildPosition()
782 posOfChildren_.emplace_back(GetMainSize(item->GetLayoutSize()) + curMainSize); in PerformLayout()
784 … totalMainSize = std::max(totalMainSize, GetMainSize(item->GetLayoutSize()) + curMainSize); in PerformLayout()
819 double viewportSize = GetMainSize(GetLayoutSize()); in RequestChildIfNeeded()
H A Drender_grid.h119 double GetMainSize(const Size& size) const in GetMainSize() function
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/scroll/
H A Dscroll_pattern.cpp693 } else if ((-currentOffset_) >= (GetMainSize(viewPortExtent_) - GetMainSize(viewPort_))) { in UpdateScrollBarOffset()
694 …scrollBarOutBoundaryExtent = -currentOffset_ - (GetMainSize(viewPortExtent_) - GetMainSize(viewPor… in UpdateScrollBarOffset()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_v2/water_flow/
H A Drender_water_flow.h209 double GetMainSize(const RefPtr<RenderNode>& item) const;

12