Home
last modified time | relevance | path

Searched refs:itemStartIndex_ (Results 1 – 8 of 8) sorted by relevance

/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/menu/menu_item_group/
H A Dmenu_item_group_pattern.cpp80 headerIndex_ = itemStartIndex_; in AddHeader()
82 itemStartIndex_++; in AddHeader()
99 footerIndex_ = itemStartIndex_; in AddFooter()
101 itemStartIndex_++; in AddFooter()
199 if (index == itemStartIndex_ && headerContent_ == nullptr) { in OnIntItemPressed()
H A Dmenu_item_group_layout_algorithm.h33 : headerIndex_(headerIndex), footerIndex_(footerIndex), itemStartIndex_(itemStartIndex) in MenuItemGroupLayoutAlgorithm()
60 int32_t itemStartIndex_ = 0; variable
H A Dmenu_item_group_pattern.h49 … return MakeRefPtr<MenuItemGroupLayoutAlgorithm>(headerIndex_, footerIndex_, itemStartIndex_); in CreateLayoutAlgorithm()
103 int32_t itemStartIndex_ = 0; variable
H A Dmenu_item_group_layout_algorithm.cpp81 int32_t currentIndex = itemStartIndex_; in Measure()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/list/
H A Dlist_item_group_pattern.cpp84 DumpLog::GetInstance().AddDesc("itemStartIndex:" + std::to_string(itemStartIndex_)); in DumpAdvanceInfo()
100 …tAlgorithm = MakeRefPtr<ListItemGroupLayoutAlgorithm>(headerIndex_, footerIndex_, itemStartIndex_); in CreateLayoutAlgorithm()
407 itemStartIndex_ = itemStartIndex; in CalculateItemStartIndex()
415 host->SetActiveChildRange(-1, itemStartIndex_ - 1, 0, cacheCount, show); in UpdateActiveChildRange()
417 int32_t index = itemTotalCount_ + itemStartIndex_; in UpdateActiveChildRange()
436 auto start = itemStartIndex_ + itemPosition_.begin()->first; in UpdateActiveChildRange()
437 auto end = itemStartIndex_ + itemPosition_.rbegin()->first; in UpdateActiveChildRange()
440 host->SetActiveChildRange(-1, itemStartIndex_ - 1); in UpdateActiveChildRange()
558 itemTotalCount_ = host->GetTotalChildCount() - itemStartIndex_; in UpdateCachedIndex()
714 index -= itemStartIndex_; in NotifyDataChange()
H A Dlist_item_group_layout_algorithm.h71 :headerIndex_(headerIndex), footerIndex_(footerIndex), itemStartIndex_(itemStartIndex) {} in ListItemGroupLayoutAlgorithm()
305 return itemStartIndex_; in GetItemStartIndex()
397 return layoutWrapper->GetOrCreateChildByIndex(index + itemStartIndex_); in GetListItem()
446 int32_t itemStartIndex_; variable
H A Dlist_item_group_layout_algorithm.cpp58 totalItemCount_ = layoutWrapper->GetTotalChildCount() - itemStartIndex_; in Measure()
254 auto start = itemStartIndex_ + itemPosition_.begin()->first; in SetActiveChildRange()
255 auto end = itemStartIndex_ + itemPosition_.rbegin()->first; in SetActiveChildRange()
257 std::max(itemStartIndex_ + cachedItemPosition_.rbegin()->first - end, 0); in SetActiveChildRange()
259 std::max(start - itemStartIndex_ - cachedItemPosition_.begin()->first, 0); in SetActiveChildRange()
267 layoutWrapper->SetActiveChildRange(-1, itemStartIndex_ - 1, 0, count, show); in SetActiveChildRange()
269 int32_t endLimit = end + itemStartIndex_ + 1; in SetActiveChildRange()
277 int32_t index = totalItemCount_ + itemStartIndex_; in SetActiveChildRange()
280 layoutWrapper->SetActiveChildRange(-1, itemStartIndex_ - 1, 0, cacheCount * lanes_); in SetActiveChildRange()
429 int32_t totalItemCount = layoutWrapper->GetTotalChildCount() - itemStartIndex_; in CheckNeedAllLayout()
[all …]
H A Dlist_item_group_pattern.h216 return itemStartIndex_; in GetItemStartIndex()
335 int32_t itemStartIndex_ = 0; variable