Home
last modified time | relevance | path

Searched refs:listLayoutAlgorithm (Results 1 – 3 of 3) sorted by relevance

/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/list/
Dlist_pattern.cpp132 …auto listLayoutAlgorithm = DynamicCast<ListLayoutAlgorithm>(layoutAlgorithmWrapper->GetLayoutAlgor… in OnDirtyLayoutWrapperSwap() local
133 CHECK_NULL_RETURN(listLayoutAlgorithm, false); in OnDirtyLayoutWrapperSwap()
134 itemPosition_ = listLayoutAlgorithm->GetItemPosition(); in OnDirtyLayoutWrapperSwap()
135 cachedItemPosition_ = listLayoutAlgorithm->GetCachedItemPosition(); in OnDirtyLayoutWrapperSwap()
136 maxListItemIndex_ = listLayoutAlgorithm->GetMaxListItemIndex(); in OnDirtyLayoutWrapperSwap()
137 spaceWidth_ = listLayoutAlgorithm->GetSpaceWidth(); in OnDirtyLayoutWrapperSwap()
138 auto predictSnapOffset = listLayoutAlgorithm->GetPredictSnapOffset(); in OnDirtyLayoutWrapperSwap()
139 auto predictSnapEndPos = listLayoutAlgorithm->GetPredictSnapEndPosition(); in OnDirtyLayoutWrapperSwap()
140 bool isJump = listLayoutAlgorithm->NeedEstimateOffset(); in OnDirtyLayoutWrapperSwap()
154 lanes_ = listLayoutAlgorithm->GetLanes(); in OnDirtyLayoutWrapperSwap()
[all …]
Dlist_pattern.h392 … RefPtr<ListLayoutAlgorithm> listLayoutAlgorithm, RefPtr<ListLayoutProperty> listLayoutProperty);
418 float UpdateTotalOffset(const RefPtr<ListLayoutAlgorithm>& listLayoutAlgorithm, bool isJump);
/foundation/arkui/ace_engine/test/unittest/core/pattern/list/
Dlist_group_algorithm_test_ng.cpp1176 ListLayoutAlgorithm listLayoutAlgorithm; variable
1183 listLayoutAlgorithm.contentMainSize_ = 720.0f;
1184 listLayoutAlgorithm.itemPosition_.emplace(std::make_pair(0, listItemInfo1));
1185 …auto wrapper = layoutWrapper->GetOrCreateChildByIndex(listLayoutAlgorithm.itemPosition_.begin()->f…
1189 listLayoutAlgorithm.LayoutItem(
1190 wrapper, 0, listLayoutAlgorithm.itemPosition_.begin()->second, startIndex, crossSize);
1191 float crossOffset = listLayoutAlgorithm.CalculateLaneCrossOffset(crossSize, size.Width());