Home
last modified time | relevance | path

Searched refs:startNodeIndex_ (Results 1 – 5 of 5) sorted by relevance

/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/list/
H A Dlist_item_layout_algorithm.cpp62 if (Positive(curOffset_) && startNodeIndex_ >= 0) { in Measure()
70 auto startNode = layoutWrapper->GetOrCreateChildByIndex(startNodeIndex_); in Measure()
107 if (Positive(curOffset_) && startNodeIndex_ >= 0) { in Layout()
108 auto child = layoutWrapper->GetOrCreateChildByIndex(startNodeIndex_); in Layout()
H A Dlist_item_layout_algorithm.h29 … :startNodeIndex_(startNodeIndex), endNodeIndex_(endNodeIndex), childNodeIndex_(childNodeIndex) {} in ListItemLayoutAlgorithm()
101 int32_t startNodeIndex_;
H A Dlist_item_pattern.cpp144 startNodeIndex_ = host->GetChildIndexById(startNode->GetId()); in SetStartNode()
145 if (childNodeIndex_ >= startNodeIndex_) { in SetStartNode()
148 if (endNodeIndex_ >= startNodeIndex_) { in SetStartNode()
160 host->RemoveChildAtIndex(startNodeIndex_); in SetStartNode()
162 if (endNodeIndex_ > startNodeIndex_) { in SetStartNode()
165 if (childNodeIndex_ > startNodeIndex_) { in SetStartNode()
168 startNodeIndex_ = -1; in SetStartNode()
183 if (startNodeIndex_ >= endNodeIndex_) { in SetEndNode()
184 startNodeIndex_++; in SetEndNode()
197 if (startNodeIndex_ > endNodeIndex_) { in SetEndNode()
[all …]
H A Dlist_item_pattern.h114 return startNodeIndex_ >= 0; in HasStartNode()
273 int32_t startNodeIndex_ = -1; variable
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/list/
H A Dlist_swipe_test_ng.cpp937 EXPECT_EQ(listItemPattern->startNodeIndex_, -1);