Searched refs:offsetPct (Results 1 – 4 of 4) sorted by relevance
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/animation/ |
H A D | bezier_variable_velocity_motion.h | 34 BezierVariableVelocityMotion(float offsetPct, MotionCompleteCallbck&& complete) in BezierVariableVelocityMotion() argument 35 : complete_(complete), offsetPct_(offsetPct) in BezierVariableVelocityMotion() 71 double ComputeVelocity(float offsetPct) in ComputeVelocity() argument 73 return Curves::SHARP->MoveInternal(std::abs(offsetPct)) * MAX_SPEED; in ComputeVelocity() 101 void Reset(float offsetPct, bool reset_time = false) 103 offsetPct_ = offsetPct; 115 void ReInit(float offsetPct) in ReInit() argument 117 Reset(offsetPct, true); in ReInit()
|
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/scrollable/ |
H A D | scrollable_fling_test_ng.cpp | 343 float offsetPct = 0.5f; variable 347 scrollPn->HotZoneScroll(offsetPct); 356 …AceType::MakeRefPtr<BezierVariableVelocityMotion>(offsetPct, [](float offset) -> bool { return tru… in __anonff57590a0402() 357 scrollPn->HotZoneScroll(offsetPct); 1258 float offsetPct = 0.5f; variable 1262 scrollPn->HotZoneScroll(offsetPct); 1271 …AceType::MakeRefPtr<BezierVariableVelocityMotion>(offsetPct, [](float offset) -> bool { return tru… in __anonff57590a0f02() 1272 scrollPn->HotZoneScroll(offsetPct);
|
H A D | scrollable_test_ng.cpp | 835 float offsetPct = 0.5f; variable 837 scrollPn->HotZoneScroll(offsetPct); 840 EXPECT_TRUE(NearEqual(scrollPn->lastHonezoneOffsetPct_, offsetPct)); 1151 float offsetPct = 0.5f; variable 1155 scrollPn->HotZoneScroll(offsetPct); 1164 …AceType::MakeRefPtr<BezierVariableVelocityMotion>(offsetPct, [](float offset) -> bool { return tru… in __anon069daffb0402() 1165 scrollPn->HotZoneScroll(offsetPct);
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/scrollable/ |
H A D | scrollable_pattern.cpp | 2872 void ScrollablePattern::HotZoneScroll(const float offsetPct) in HotZoneScroll() argument 2876 CHECK_NULL_VOID(!NearZero(offsetPct)); in HotZoneScroll() 2882 CHECK_NULL_VOID(!NearEqual(lastHonezoneOffsetPct_, offsetPct)); in HotZoneScroll() 2889 velocityMotion_->Reset(offsetPct); in HotZoneScroll() 2906 offsetPct, [weak = WeakClaim(this)](float offset) -> bool { in HotZoneScroll() 2924 velocityMotion_->ReInit(offsetPct); in HotZoneScroll() 2927 velocityMotion_->ReInit(offsetPct); in HotZoneScroll() 2930 lastHonezoneOffsetPct_ = offsetPct; in HotZoneScroll() 2987 float offsetPct = IsInHotZone(point); in HandleMoveEventInComp() local 2988 if ((Positive(offsetPct) && !IsAtTop()) || (Negative(offsetPct) && !IsAtBottom())) { in HandleMoveEventInComp() [all …]
|