Home
last modified time | relevance | path

Searched refs:newIndex (Results 1 – 25 of 30) sorted by relevance

12

/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/tab_bar/
H A Drender_tab_content.cpp208 ScrollContents(newIndex, false); in HandleDragEnd()
246 if (newIndex >= 0 && newIndex < contentCount_) { in ScrollContents()
296 if (newIndex >= 0 && newIndex < contentCount_ && needChange) { in HandleStartListener()
297 currentIndex_ = newIndex; in HandleStartListener()
299 callback_(newIndex); in HandleStartListener()
302 FireDomChangeEvent(newIndex); in HandleStartListener()
318 if (newIndex >= 0 && newIndex < contentCount_ && needChange) { in HandleStopListener()
377 …if ((currentIndex_ == 0 && newIndex == -1) || (currentIndex_ == (contentCount_ - 1) && newIndex ==… in UpdateScrollPosition()
383 …if (contentMap_.find(newIndex) == contentMap_.end() && newIndex >= 0 && newIndex < contentCount_) { in UpdateScrollPosition()
385 requireCallback_(newIndex); in UpdateScrollPosition()
[all …]
H A Drender_tab_content.h55 …using UpdateIndicatorFunc = std::function<void(double percent, int32_t newIndex, bool needChange)>;
175 void HandContentIndicatorEvent(int32_t newIndex, bool needChange) const;
178 void ScrollContents(int32_t newIndex, bool isLinkBar, bool fromController = false);
180 … void UpdateChildPosition(double offset, int32_t currentIndex, int32_t newIndex, bool needChange);
181 void HandleStopListener(int32_t newIndex, bool needChange, bool FromController = false);
182 void HandleStartListener(int32_t newIndex, bool needChange, bool isLinkBar);
H A Dtab_content_element.cpp45 …[weakTabContentElement = AceType::WeakClaim(this)](double percent, int32_t newIndex, bool needChan… in CreateRenderNode() argument
48 tabContent->IndicatorByContent(percent, newIndex, needChange); in CreateRenderNode()
71 void TabContentElement::IndicatorByContent(double percent, int32_t newIndex, bool needChange) in IndicatorByContent() argument
74 controller_->SetIndicatorByScrollContent(percent, newIndex, needChange); in IndicatorByContent()
H A Dtab_controller.cpp137 void TabController::SetIndicatorByScrollContent(double percent, int32_t newIndex, bool needChange) in SetIndicatorByScrollContent() argument
142 tabBar->UpdateScrollIndicator(percent, newIndex, needChange); in SetIndicatorByScrollContent()
H A Drender_tab_bar.cpp268 void RenderTabBar::SetScrollIndicator(double percent, int32_t newIndex, bool needChange) in SetScrollIndicator() argument
272 if (newIndex < 0 || newIndex >= tabsSize_) { in SetScrollIndicator()
273 LOGW("boundary index = %{public}d", newIndex); in SetScrollIndicator()
284 if (newIndex > maxIndex || newIndex < 0 || index_ > maxIndex || index_ < 0) { in SetScrollIndicator()
287 double newItemsWidth = tabsWidth_[newIndex]; in SetScrollIndicator()
H A Dtab_bar_element.cpp100 void TabBarElement::UpdateScrollIndicator(double percent, int32_t newIndex, bool needChange) in UpdateScrollIndicator() argument
104 tabBar->SetScrollIndicator(percent, newIndex, needChange); in UpdateScrollIndicator()
H A Dtab_bar_element.h33 void UpdateScrollIndicator(double percent, int32_t newIndex, bool needChange);
H A Dtab_content_element.h40 void IndicatorByContent(double percent, int32_t newIndex, bool needChange);
H A Dtab_controller.h66 void SetIndicatorByScrollContent(double percent, int32_t newIndex, bool needChange);
H A Drender_tab_bar.h51 void SetScrollIndicator(double percent, int32_t newIndex, bool needChange);
/ohos5.0/foundation/graphic/graphic_3d/lume/metaobject/include/meta/api/property/
H A Darray_property_changes_recognizer.h39 int newIndex = 0; member
43 return previousIndex == v.previousIndex && newIndex == v.newIndex;
88 for (size_t newIndex = 0; newIndex < newValuesVector.size(); ++newIndex) { in OnArrayPropertyChanged() local
89 auto& v = newValuesVector[newIndex]; in OnArrayPropertyChanged()
92 if (p != newIndex) { in OnArrayPropertyChanged()
93 … changes.positionChanged.push_back({ static_cast<int>(p), static_cast<int>(newIndex) }); in OnArrayPropertyChanged()
96 changes.valuesAdded.push_back({ v, static_cast<int>(newIndex) }); in OnArrayPropertyChanged()
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/state_mgmt/src/lib/partial_update/
H A Dpu_repeat.ts61 public updateIndex(newIndex: number): void {
65 if (this._observedIndex?.getUnmonitored() !== newIndex) {
66 this._observedIndex?.set(newIndex);
88 public updateIndex(newIndex: number): void {
90 this.index = newIndex;
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/calendar/
H A Drender_calendar.cpp266 void RenderCalendar::FocusChanged(int32_t oldIndex, int32_t newIndex) in FocusChanged() argument
281 if (newIndex < 0) { in FocusChanged()
285 if (newIndex >= calendarDaysSize) { in FocusChanged()
290 auto& onFocusDay = calendarDays_[newIndex]; in FocusChanged()
294 } else if (calendarDays_[newIndex].month > currentMonth_) { in FocusChanged()
H A Dfocusable_grid.h34 virtual void FocusChanged(int32_t oldIndex, int32_t newIndex) {} in FocusChanged() argument
H A Drender_calendar.h89 void FocusChanged(int32_t oldIndex, int32_t newIndex) override;
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/style_string/
H A Djs_span_string.cpp680 auto newIndex = gestureStyleStoreIndex_.fetch_add(1); in ParseJsSpanBaseVector() local
1082 auto newIndex = gestureStyleStoreIndex_.fetch_add(1); in ReplaceSpan() local
1083 std::string key = "STYLED_STRING_GESTURESTYLE_STORE_" + std::to_string(newIndex); in ReplaceSpan()
1133 auto newIndex = gestureStyleStoreIndex_.fetch_add(1); in AddSpan() local
1134 std::string key = "STYLED_STRING_GESTURESTYLE_STORE_" + std::to_string(newIndex); in AddSpan()
1205 auto newIndex = spanStringStoreIndex_.fetch_add(1); in ReplaceSpanString() local
1206 std::string key = "STYLED_STRING_SPANSTRING_STORE_" + std::to_string(newIndex); in ReplaceSpanString()
1235 auto newIndex = spanStringStoreIndex_.fetch_add(1); in InsertSpanString() local
1236 std::string key = "STYLED_STRING_SPANSTRING_STORE_" + std::to_string(newIndex); in InsertSpanString()
1257 auto newIndex = spanStringStoreIndex_.fetch_add(1); in AppendSpanString() local
[all …]
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_v2/indexer/
H A Drender_popup_list.cpp89 for (size_t newIndex = startIndex_ + items_.size(); curMainPos < endMainPos_; ++newIndex) { in PerformLayout() local
90 auto child = RequestAndLayoutNewItem(newIndex, innerLayout); in PerformLayout()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_v2/list/
H A Drender_list.cpp462 for (size_t newIndex = startIndex_ + items_.size();; ++newIndex) { in RequestNewItemsAtEndForLaneList() local
470 auto child = RequestAndLayoutNewItem(newIndex, curMainPos); in RequestNewItemsAtEndForLaneList()
506 for (size_t newIndex = startIndex_ + items_.size();; ++newIndex) { in RequestNewItemsAtEnd() local
516 auto child = RequestAndLayoutNewItem(newIndex, curMainPos); in RequestNewItemsAtEnd()
1162 for (size_t newIndex = startIndex_ + items_.size();; ++newIndex) { in GetCurMainPosAndMainSize() local
1172 auto child = RequestAndLayoutNewItem(newIndex, curMainPos); in GetCurMainPosAndMainSize()
1427 for (size_t newIndex = startIndex_ + items_.size(); newIndex < target; newIndex++) { in LayoutOrRecycleCurrentItemsForLaneList() local
1428 auto child = RequestAndLayoutNewItem(newIndex, curMainPos); in LayoutOrRecycleCurrentItemsForLaneList()
1734 size_t newIndex = FindPreviousStickyListItem(index); in ApplyPreviousStickyListItem() local
1735 if (newIndex == ListItemGenerator::INVALID_INDEX) { in ApplyPreviousStickyListItem()
[all …]
H A Drender_list_item_group.cpp207 size_t newIndex = startIndex_ + items_.size(); in RequestNewItemsAtEnd() local
215 auto child = RequestListItem(newIndex + idx, false); in RequestNewItemsAtEnd()
229 newIndex += idx; in RequestNewItemsAtEnd()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/picker/
H A Drender_picker_option.h41 void UpdateValue(uint32_t newIndex, const std::string& newText);
H A Drender_picker_option.cpp108 void RenderPickerOption::UpdateValue(uint32_t newIndex, const std::string& newText) in UpdateValue() argument
110 index_ = newIndex; in UpdateValue()
/ohos5.0/foundation/communication/wifi/wifi/base/state_machine/src/
H A Dstate_machine.cpp516 int newIndex = mStateVectorTopIndex + 1; in MoveSequenceToStateVector() local
518 int j = newIndex; in MoveSequenceToStateVector()
526 return newIndex; in MoveSequenceToStateVector()
/ohos5.0/docs/zh-cn/application-dev/ui/
H A Dndk-loading-long-list.md86 void MoveItem(int32_t oldIndex, int32_t newIndex) {
88 data_.insert(data_.begin() + newIndex, temp);
91 OH_ArkUI_NodeAdapter_MoveItem(handle_, oldIndex, newIndex);
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/text_field/
H A Dtext_select_controller.cpp42 …auto newIndex = std::clamp(index, 0, static_cast<int32_t>(contentController_->GetWideText().length… in UpdateCaretIndex() local
43 caretInfo_.index = newIndex; in UpdateCaretIndex()
44 TAG_LOGD(AceLogTag::ACE_TEXT_FIELD, "newIndex change to %{public}d", newIndex); in UpdateCaretIndex()
45 firstHandleInfo_.index = newIndex; in UpdateCaretIndex()
46 secondHandleInfo_.index = newIndex; in UpdateCaretIndex()
/ohos5.0/docs/en/application-dev/ui/
H A Dndk-loading-long-list.md89 void MoveItem(int32_t oldIndex, int32_t newIndex) {
91 data_.insert(data_.begin() + newIndex, temp);
94 OH_ArkUI_NodeAdapter_MoveItem(handle_, oldIndex, newIndex);

12