Home
last modified time | relevance | path

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

/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/list/
H A Dlist_watch_layout_manager.cpp152 auto centerIndex = renderList_.GetCenterIndex(); in HandleItemStateAndEffect() local
153 if (index == centerIndex - 1 || index == centerIndex + 1 || in HandleItemStateAndEffect()
154 (centerIndex == INVALID_INDEX && index == renderList_.GetCurrentMaxIndex())) { in HandleItemStateAndEffect()
H A Drender_list.h491 void SetCenterIndex(int32_t centerIndex) in SetCenterIndex() argument
493 centerIndex_ = centerIndex; in SetCenterIndex()
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/list/
H A Dlist_scroller_event_test_ng.cpp153 int32_t centerIndex; variable
154 … auto event = [&startIndex, &endIndex, &centerIndex](int32_t start, int32_t end, int32_t center) { in __anoned765ad30302()
157 centerIndex = center; in __anoned765ad30302()
167 EXPECT_EQ(centerIndex, 2);
172 EXPECT_EQ(centerIndex, 3);
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/scroll/
H A Drender_multi_child_scroll.cpp904 int32_t centerIndex = -1; in GetFixPositionOnWatch() local
910centerIndex = listBase->EstimateIndexByPosition(listPosition + GetMainSize(viewPort_) * HALF_ITEM_… in GetFixPositionOnWatch()
911 itemPosition = listBase->GetItemPosition(centerIndex); in GetFixPositionOnWatch()
912 itemSize = listBase->GetItemPosition(centerIndex + 1) - itemPosition; in GetFixPositionOnWatch()
927 centerIndex = index; in GetFixPositionOnWatch()
934 if (centerIndex == -1) { in GetFixPositionOnWatch()
/ohos5.0/docs/zh-cn/application-dev/application-models/
H A Dautofillextensionablility-guide.md205 .onScrollIndex((firstIndex: number, lastIndex: number, centerIndex: number) => {
208 console.info('center' + centerIndex)
/ohos5.0/docs/en/application-dev/application-models/
H A Dautofillextensionablility-guide.md205 .onScrollIndex((firstIndex: number, lastIndex: number, centerIndex: number) => {
208 console.info('center' + centerIndex)
/ohos5.0/docs/zh-cn/application-dev/reference/apis-arkui/arkui-ts/
H A Dts-container-list.md1040 .onScrollIndex((firstIndex: number, lastIndex: number, centerIndex: number) => {
1043 console.info('center' + centerIndex)
/ohos5.0/docs/en/application-dev/reference/apis-arkui/arkui-ts/
H A Dts-container-list.md1040 .onScrollIndex((firstIndex: number, lastIndex: number, centerIndex: number) => {
1043 console.info('center' + centerIndex)