Home
last modified time | relevance | path

Searched refs:overScroll (Results 1 – 17 of 17) sorted by relevance

/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/scroll/effect/
H A Dscroll_fade_effect.cpp77 if (NearZero(overScroll) || !fadePainter_) { in SetPaintDirection()
83 if (isVertical && overScroll < 0.0f) { in SetPaintDirection()
86 LessOrEqual(std::abs(overScroll), OVER_SCROLL_THRESHOLD)) { in SetPaintDirection()
90 } else if (isVertical && overScroll > 0.0f) { in SetPaintDirection()
96 } else if (overScroll < 0.0f) { in SetPaintDirection()
99 LessOrEqual(std::abs(overScroll), OVER_SCROLL_THRESHOLD)) { in SetPaintDirection()
111 if (isVertical && overScroll < 0.0f) { in SetPaintDirection()
113 } else if (isVertical && overScroll > 0.0f) { in SetPaintDirection()
115 } else if (overScroll < 0.0f) { in SetPaintDirection()
134 if (NearZero(overScroll)) { in HandleOverScroll()
[all …]
H A Dscroll_fade_effect.h44 void HandleOverScroll(Axis axis, float overScroll, const SizeF& viewPort,
51 void SetPaintDirection(Axis axis, float overScroll, bool isNotPositiveScrollableDistance);
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/scroll/
H A Dscroll_fade_effect.cpp77 void ScrollFadeEffect::SetPaintDirection(Axis axis, double overScroll) in SetPaintDirection() argument
79 if (NearZero(overScroll) || !fadePainter_) { in SetPaintDirection()
83 if (isVertical && overScroll < 0.0) { in SetPaintDirection()
85 } else if (isVertical && overScroll > 0.0) { in SetPaintDirection()
87 } else if (overScroll < 0.0) { in SetPaintDirection()
103 void ScrollFadeEffect::HandleOverScroll(Axis axis, double overScroll, const Size& viewPort) in HandleOverScroll() argument
105 if (NearZero(overScroll)) { in HandleOverScroll()
109 SetPaintDirection(axis, overScroll); in HandleOverScroll()
127 … ? fadeController_->ProcessPull(std::abs(overScroll), viewPort.Height(), viewPort.Width()) in HandleOverScroll()
128 … : fadeController_->ProcessPull(std::abs(overScroll), viewPort.Width(), viewPort.Height()); in HandleOverScroll()
H A Dscroll_fade_effect.h42 void HandleOverScroll(Axis axis, double overScroll, const Size& viewPort) override;
47 void SetPaintDirection(Axis axis, double overScroll);
H A Dscroll_edge_effect.h38 virtual void HandleOverScroll(Axis axis, double overScroll, const Size& viewPort) {} in HandleOverScroll() argument
H A Dscrollable.h369 …deprecated]] void SetOverScrollOffsetCallback(std::function<OverScrollOffset(double)>&& overScroll) in SetOverScrollOffsetCallback() argument
371 overScrollOffsetCallback_ = std::move(overScroll); in SetOverScrollOffsetCallback()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/text_picker/
H A Dtextpicker_overscroll.h36 void SetOverScroll(float overScroll) in SetOverScroll() argument
38 overScroll_ = overScroll; in SetOverScroll()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/grid/irregular/
H A Dgrid_irregular_layout_algorithm.h36 explicit GridIrregularLayoutAlgorithm(GridLayoutInfo info, bool overScroll = false)
37 … : GridLayoutBaseAlgorithm(std::move(info)), info_(gridLayoutInfo_), overScroll_(overScroll) {};
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/waterflow/
H A Dwater_flow_pattern.cpp55 float overScroll = layoutInfo_->CalcOverScroll(GetMainContentSize(), delta); in UpdateCurrentOffset() local
57 … auto friction = ScrollablePattern::CalculateFriction(std::abs(overScroll) / GetMainContentSize()); in UpdateCurrentOffset()
124 auto overScroll = 0.0f; in UpdateScrollBarOffset() local
127 overScroll = info->currentOffset_; in UpdateScrollBarOffset()
129 overScroll = GetMainContentSize() - (info->GetContentHeight() + info->currentOffset_); in UpdateScrollBarOffset()
130 overScroll = Positive(overScroll) ? overScroll : 0.0f; in UpdateScrollBarOffset()
132 HandleScrollBarOutBoundary(overScroll); in UpdateScrollBarOffset()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/scroll/
H A Dscroll_edge_effect.h36 virtual void HandleOverScroll(Axis axis, float overScroll, const SizeF& viewPort,
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/grid/
H A Dgrid_pattern.cpp82 const bool overScroll = CanOverScroll(GetScrollSource()) || forceOverScroll_; in CreateLayoutAlgorithm() local
84 auto algo = MakeRefPtr<GridIrregularLayoutAlgorithm>(gridLayoutInfo_, overScroll); in CreateLayoutAlgorithm()
94 result->SetCanOverScroll(overScroll); in CreateLayoutAlgorithm()
429 float overScroll = 0.0f; in UpdateCurrentOffset() local
431overScroll = gridLayoutInfo_.GetDistanceToBottom(GetMainContentSize(), itemsHeight, mainGap); in UpdateCurrentOffset()
433 overScroll = gridLayoutInfo_.currentOffset_ - (GetMainContentSize() - itemsHeight); in UpdateCurrentOffset()
1512 auto overScroll = 0.0f; in UpdateScrollBarOffset() local
1514 overScroll = gridLayoutInfo_.currentOffset_; in UpdateScrollBarOffset()
1516 overScroll = gridLayoutInfo_.lastMainSize_ - estimatedHeight + offset; in UpdateScrollBarOffset()
1517 overScroll = Positive(overScroll) ? overScroll : 0.0f; in UpdateScrollBarOffset()
[all …]
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/waterflow/layout/top_down/
H A Dwater_flow_layout_info.cpp424 void WaterFlowLayoutInfo::Sync(float mainSize, bool overScroll) in Sync() argument
427 if (!overScroll) { in Sync()
438 if (offsetEnd_ && !overScroll) { in Sync()
H A Dwater_flow_layout_info.h177 void Sync(float mainSize, bool overScroll);
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/list/
H A Dlist_layout_manager.cpp364 bool overScroll = scroll->IsSpringMotionRunning(); in FlushChainAnimation() local
365 if (chainOverScroll_ != overScroll) { in FlushChainAnimation()
366 if (overScroll) { in FlushChainAnimation()
377 chainOverScroll_ = overScroll; in FlushChainAnimation()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/list/
H A Dlist_pattern.cpp858 float overScroll = std::max(res.start, res.end); in UpdateCurrentOffset() local
860 … auto friction = ScrollablePattern::CalculateFriction(std::abs(overScroll) / contentMainSize_); in UpdateCurrentOffset()
1629 float overScroll = 0.0f; in HandleScrollBarOutBoundary() local
1632 overScroll = startMainPos_ - contentStartOffset_; in HandleScrollBarOutBoundary()
1634 overScroll = contentMainSize_ - contentEndOffset_ - endMainPos_; in HandleScrollBarOutBoundary()
1639 overScroll = startMainPos_ + itemHeight / 2.0f - contentMainSize_ / 2.0f; in HandleScrollBarOutBoundary()
1642 overScroll = endMainPos_ - itemHeight / 2.0f - contentMainSize_ / 2.0f; in HandleScrollBarOutBoundary()
1645 ScrollablePattern::HandleScrollBarOutBoundary(overScroll); in HandleScrollBarOutBoundary()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_v2/list/
H A Drender_list.cpp1192 double overScroll = scrollEffect_->CalculateOverScroll(prevOffset_, reachEnd_); in HandleOverScroll() local
1193 if (!NearZero(overScroll)) { in HandleOverScroll()
1195 scrollEffect_->HandleOverScroll(axis, overScroll, viewPort_); in HandleOverScroll()
2119 bool overScroll = scrollable_ && scrollable_->IsSpringMotionRunning(); in FlushChainAnimation() local
2120 if (chainOverScroll_ != overScroll) { in FlushChainAnimation()
2121 if (overScroll) { in FlushChainAnimation()
2132 chainOverScroll_ = overScroll; in FlushChainAnimation()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/tabs/
H A Dtab_bar_pattern.cpp591 auto overScroll = 0.0f; in GetOverScrollInfo() local
594 return std::make_pair(overScroll, mainSize); in GetOverScrollInfo()
602 overScroll = startPos; in GetOverScrollInfo()
604 overScroll = mainSize - visibleItemEndPos - scrollMargin_; in GetOverScrollInfo()
606 return std::make_pair(overScroll, mainSize); in GetOverScrollInfo()