Home
last modified time | relevance | path

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

12

/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/time_picker/
H A Dtoss_animation_controller.cpp78 speed_ = column->GetMainVelocity() / VELOCTY_TRANS; in Play()
95 auto speed = column->GetMainVelocity() / VELOCTY_TRANS; in StartSpringMotion()
H A Dtimepicker_column_pattern.h271 double GetMainVelocity() const in GetMainVelocity() function
H A Dtimepicker_column_pattern.cpp810 pattern->SetMainVelocity(event.GetMainVelocity()); in InitPanEvent()
819 pattern->SetMainVelocity(info.GetMainVelocity()); in InitPanEvent()
845 frameNode->AddFRCSceneInfo(PICKER_DRAG_SCENE, event.GetMainVelocity(), SceneStatus::START); in HandleDragStart()
869 frameNode->AddFRCSceneInfo(PICKER_DRAG_SCENE, event.GetMainVelocity(), SceneStatus::RUNNING); in HandleDragMove()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/picker/
H A Dtoss_animation_controller.cpp73 speed_ = column->GetMainVelocity() / VELOCTY_TRANS; in Play()
90 auto speed = column->GetMainVelocity() / VELOCTY_TRANS; in StartSpringMotion()
H A Ddatepicker_column_pattern.h240 double GetMainVelocity() const in GetMainVelocity() function
H A Ddatepicker_column_pattern.cpp764 pattern->SetMainVelocity(event.GetMainVelocity()); in InitPanEvent()
773 pattern->SetMainVelocity(info.GetMainVelocity()); in InitPanEvent()
799 frameNode->AddFRCSceneInfo(PICKER_DRAG_SCENE, event.GetMainVelocity(), SceneStatus::START); in HandleDragStart()
823 frameNode->AddFRCSceneInfo(PICKER_DRAG_SCENE, event.GetMainVelocity(), SceneStatus::RUNNING); in HandleDragMove()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/scrollable/
H A Dscrollable.cpp345 currentVelocity_ = info.GetMainVelocity(); in HandleDragStart()
391 currentVelocity_ = info.GetMainVelocity(); in HandleDragUpdate()
395 if (!NearZero(info.GetMainVelocity()) && dragCount_ >= FIRST_THRESHOLD) { in HandleDragUpdate()
396 if (Negative(lastVelocity_ / info.GetMainVelocity())) { in HandleDragUpdate()
448 info.GetMainVelocity(), nodeId_, nodeTag_.c_str()); in HandleDragEnd()
450 dragFRCSceneCallback_(info.GetMainVelocity(), NG::SceneStatus::END); in HandleDragEnd()
455 lastVelocity_ = GetPanDirection() == Axis::NONE ? 0.0 : info.GetMainVelocity(); in HandleDragEnd()
456 double gestureVelocity = GetPanDirection() == Axis::NONE ? 0.0 : info.GetMainVelocity(); in HandleDragEnd()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/scroll/
H A Dscrollable.cpp350 currentVelocity_ = info.GetMainVelocity(); in HandleDragStart()
549 currentVelocity_ = info.GetMainVelocity(); in HandleDragUpdate()
553 if (!NearZero(info.GetMainVelocity()) && dragCount_ >= FIRST_THRESHOLD) { in HandleDragUpdate()
554 if (Negative(lastVelocity_ / info.GetMainVelocity())) { in HandleDragUpdate()
592 dragFRCSceneCallback_(info.GetMainVelocity(), NG::SceneStatus::END); in HandleDragEnd()
601 lastVelocity_ = info.GetMainVelocity(); in HandleDragEnd()
603 …std::clamp(info.GetMainVelocity(), -maxFlingVelocity_ + slipFactor_, maxFlingVelocity_ - slipFacto… in HandleDragEnd()
H A Dscroll_bar_controller.cpp197 info.GetGlobalLocation().GetX(), info.GetGlobalLocation().GetY(), info.GetMainVelocity()); in HandleDragEnd()
202 double correctVelocity = std::clamp(info.GetMainVelocity(), MIN_VELOCITY, MAX_VELOCITY); in HandleDragEnd()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_v2/list/
H A Drender_list_item.cpp414 bool reachRightSpeed = info.GetMainVelocity() > speedThreshold; in HandleDragEnd()
415 bool reachLeftSpeed = -info.GetMainVelocity() > speedThreshold; in HandleDragEnd()
439 StartSpringMotion(curOffset_, end, info.GetMainVelocity() * friction); in HandleDragEnd()
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/engine/functions/
H A Djs_pan_function.cpp62 paramObj->SetProperty<double>("mainVelocity", info.GetMainVelocity()); in Execute()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/gestures/
H A Dbase_gesture_event.h114 double GetMainVelocity() const in GetMainVelocity() function
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/panel/
H A Dpanel_test_ng.cpp525 slidingPanelPattern->HandleDragEnd(static_cast<float>(endInfo.GetMainVelocity()));
526 EXPECT_TRUE(endInfo.GetMainVelocity() == MAIN_VELOCITY);
572 slidingPanelPattern->HandleDragEnd(static_cast<float>(endInfo.GetMainVelocity()));
573 EXPECT_TRUE(endInfo.GetMainVelocity() == MAIN_VELOCITY);
608 slidingPanelPattern->HandleDragEnd(static_cast<float>(endInfo.GetMainVelocity()));
609 EXPECT_TRUE(endInfo.GetMainVelocity() == MAIN_VELOCITY);
963 slidingPanelPattern->HandleDragEnd(static_cast<float>(endInfo.GetMainVelocity()));
970 EXPECT_EQ(endInfo.GetMainVelocity(), MAIN_VELOCITY);
2371 EXPECT_EQ(endInfo.GetMainVelocity(), MAIN_VELOCITY);
2404 EXPECT_EQ(endInfo.GetMainVelocity(), MAIN_VELOCITY);
[all …]
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/scroll/inner/
H A Dscroll_bar.cpp668 dragFRCSceneCallback_(NearZero(info.GetMainDelta()) ? info.GetMainVelocity() in HandleDragUpdate()
669 … : info.GetMainVelocity() / info.GetMainDelta() * offset, in HandleDragUpdate()
680 auto velocity = IsReverse() ? -info.GetMainVelocity() : info.GetMainVelocity(); in HandleDragEnd()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/text_picker/
H A Dtoss_animation_controller.cpp75 speed_ = column->GetMainVelocity() / VELOCTY_TRANS; in Play()
H A Dtextpicker_column_pattern.cpp1012 pattern->SetMainVelocity(event.GetMainVelocity()); in InitPanEvent()
1021 pattern->SetMainVelocity(info.GetMainVelocity()); in InitPanEvent()
1062 frameNode->AddFRCSceneInfo(PICKER_DRAG_SCENE, event.GetMainVelocity(), SceneStatus::START); in HandleDragStart()
1100 SetScrollDirection(GreatNotEqual(GetMainVelocity(), 0.0)); in HandleDragMove()
1104 frameNode->AddFRCSceneInfo(PICKER_DRAG_SCENE, event.GetMainVelocity(), SceneStatus::RUNNING); in HandleDragMove()
H A Dtextpicker_column_pattern.h320 double GetMainVelocity() const in GetMainVelocity() function
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/gestures/
H A Ddrag_recognizer.h87 double GetMainVelocity() const in GetMainVelocity() function
H A Dgesture_event.h185 double GetMainVelocity() const in GetMainVelocity() function
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/refresh/
H A Drefresh_pattern.cpp162 auto speed = static_cast<float>(info.GetMainVelocity()); in InitPanEvent()
169 …dleDragUpdate(static_cast<float>(info.GetMainDelta()), static_cast<float>(info.GetMainVelocity())); in InitPanEvent()
174 auto speed = static_cast<float>(info.GetMainVelocity()); in InitPanEvent()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/split_container/
H A Drender_split_container.cpp252 splitContainer->HandleDragEnd(info.GetLocalLocation(), info.GetMainVelocity()); in InitializeRecognizer()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/watch_slider/
H A Drender_watch_slider.cpp161 slider->HandleDragEnd(info.GetMainVelocity()); in Initialize()
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/jsview/
H A Djs_tabs_feature.cpp73 auto velocity = info.GetMainVelocity(); in HandleOnPanActionEndEvent()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/scroll_bar/
H A Dscroll_bar_pattern.cpp703 auto velocity = IsReverse() ? -info.GetMainVelocity() : info.GetMainVelocity(); in HandleDragEnd()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/panel/
H A Drender_sliding_panel.cpp315 panel->HandleDragEnd(info.GetLocalLocation(), info.GetMainVelocity()); in InitializeRecognizer()

12