Home
last modified time | relevance | path

Searched refs:needChange (Results 1 – 10 of 10) sorted by relevance

/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/tab_bar/
H A Drender_tab_content.cpp170 indicatorCallback_(scrollOffset_ / contentWidth_, newIndex, needChange); in HandContentIndicatorEvent()
242 bool needChange = false; in ScrollContents() local
262 needChange = true; in ScrollContents()
269 tabContent->UpdateChildPosition(value, index, newIndex, needChange); in ScrollContents()
270 tabContent->HandContentIndicatorEvent(newIndex, needChange); in ScrollContents()
274 animator_->AddStopListener([weak, newIndex, needChange, fromController]() { in ScrollContents()
277 tabContent->HandleStopListener(newIndex, needChange, fromController); in ScrollContents()
280 animator_->AddStartListener([weak, newIndex, needChange, isLinkBar]() { in ScrollContents()
283 tabContent->HandleStartListener(newIndex, needChange, isLinkBar); in ScrollContents()
296 if (newIndex >= 0 && newIndex < contentCount_ && needChange) { in HandleStartListener()
[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;
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 …kTabContentElement = AceType::WeakClaim(this)](double percent, int32_t newIndex, bool needChange) { 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 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);
H A Drender_tab_bar.cpp268 void RenderTabBar::SetScrollIndicator(double percent, int32_t newIndex, bool needChange) in SetScrollIndicator() argument
290 if (needChange) { in SetScrollIndicator()