Searched refs:listLayoutAlgorithm (Results 1 – 3 of 3) sorted by relevance
| /foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/list/ |
| D | list_pattern.cpp | 130 …auto listLayoutAlgorithm = DynamicCast<ListLayoutAlgorithm>(layoutAlgorithmWrapper->GetLayoutAlgor… in OnDirtyLayoutWrapperSwap() local 131 CHECK_NULL_RETURN(listLayoutAlgorithm, false); in OnDirtyLayoutWrapperSwap() 132 itemPosition_ = listLayoutAlgorithm->GetItemPosition(); in OnDirtyLayoutWrapperSwap() 133 maxListItemIndex_ = listLayoutAlgorithm->GetMaxListItemIndex(); in OnDirtyLayoutWrapperSwap() 134 spaceWidth_ = listLayoutAlgorithm->GetSpaceWidth(); in OnDirtyLayoutWrapperSwap() 135 auto predictSnapOffset = listLayoutAlgorithm->GetPredictSnapOffset(); in OnDirtyLayoutWrapperSwap() 136 auto predictSnapEndPos = listLayoutAlgorithm->GetPredictSnapEndPosition(); in OnDirtyLayoutWrapperSwap() 137 bool isJump = listLayoutAlgorithm->NeedEstimateOffset(); in OnDirtyLayoutWrapperSwap() 151 lanes_ = listLayoutAlgorithm->GetLanes(); in OnDirtyLayoutWrapperSwap() 153 float relativeOffset = UpdateTotalOffset(listLayoutAlgorithm, isJump); in OnDirtyLayoutWrapperSwap() [all …]
|
| D | list_pattern.h | 374 … RefPtr<ListLayoutAlgorithm> listLayoutAlgorithm, RefPtr<ListLayoutProperty> listLayoutProperty); 400 float UpdateTotalOffset(const RefPtr<ListLayoutAlgorithm>& listLayoutAlgorithm, bool isJump);
|
| /foundation/arkui/ace_engine/test/unittest/core/pattern/list/ |
| D | list_group_algorithm_test_ng.cpp | 1150 ListLayoutAlgorithm listLayoutAlgorithm; variable 1157 listLayoutAlgorithm.contentMainSize_ = 720.0f; 1158 listLayoutAlgorithm.itemPosition_.empty(); 1159 listLayoutAlgorithm.itemPosition_.emplace(std::make_pair(0, listItemInfo1)); 1160 …auto wrapper = layoutWrapper->GetOrCreateChildByIndex(listLayoutAlgorithm.itemPosition_.begin()->f… 1164 listLayoutAlgorithm.LayoutItem( 1165 wrapper, 0, listLayoutAlgorithm.itemPosition_.begin()->second, startIndex, crossSize); 1166 float crossOffset = listLayoutAlgorithm.CalculateLaneCrossOffset(crossSize, size.Width());
|