/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/scroll/ |
H A D | render_scroll.cpp | 93 if (GetMainOffset(currentOffset_) < 0) { in ValidateOffset() 122 if (GetMainOffset(currentOffset_) > 0.0 && in HandleScrollPosition() 177 if ((IsAtBottom() && GetMainOffset(delta) > 0.0) || (IsAtTop() && GetMainOffset(delta) < 0.0)) { in UpdateOffset() 188 if (GetMainOffset(currentOffset_) <= 0.0) { in UpdateOffset() 198 currentDeltaInMain_ += GetMainOffset(delta); in UpdateOffset() 254 double current = GetMainOffset(currentOffset_); in IsCrashTop() 255 double last = GetMainOffset(lastOffset_); in IsCrashTop() 264 double current = GetMainOffset(currentOffset_); in IsCrashBottom() 265 double last = GetMainOffset(lastOffset_); in IsCrashBottom() 295 double mainOffset = GetMainOffset(currentOffset); in CanScrollVertically() [all …]
|
H A D | render_multi_child_scroll.cpp | 120 if (scrollable_->Idle() && GetMainOffset(currentOffset_) > 0.0) { in CalculateMainScrollExtent() 367 double mainOffset = GetMainOffset(curOffset); in OnPredictLayout() 405 double mainOffset = GetMainOffset(curOffset); in LayoutChild() 475 offsetBeforeLayout_ = GetMainOffset(currentOffset_); in PerformLayout() 665 double offset = GetMainOffset(currentOffset_); in CalculateBeginPositionInViewPort() 722 double distance = position - GetMainOffset(currentOffset_); in ScrollToPosition() 815 double destPosition = -GetMainOffset(currentOffset_) - value; in HandleRotate() 907 double listPosition = GetMainOffset(currentOffset_) - destination + current; in GetFixPositionOnWatch() 947 double headOffset = GetMainOffset(currentOffset_); in IsOutOfBottomBoundary() 963 double headOffset = GetMainOffset(currentOffset_); in IsOutOfTopBoundary() [all …]
|
H A D | render_single_child_scroll.cpp | 120 if (scrollable_->Idle() && GetMainOffset(currentOffset_) > 0.0) { in CalculateMainScrollExtent() 126 …if (scrollable_->Idle() && GetMainOffset(currentOffset_) > mainScrollExtent_ - GetMainSize(viewPor… in CalculateMainScrollExtent() 158 double childPosition = GetMainOffset(childOffset); in MoveChildToViewPort() 159 double viewMin = GetMainOffset(selfOffset); in MoveChildToViewPort() 160 double viewMax = GetMainOffset(selfOffset + viewPort_); in MoveChildToViewPort() 161 double effectSize = GetMainOffset(effectOffset); in MoveChildToViewPort()
|
H A D | render_scroll.h | 83 return LessOrEqual(GetMainOffset(currentOffset_), 0.0); in IsAtTop() 89 bool atBottom = GreatOrEqual(GetMainOffset(currentOffset_), outViewportSize); in IsAtBottom() 106 double GetMainOffset(const Offset& offset) const in GetMainOffset() function
|
H A D | rosen_render_multi_child_scroll.cpp | 36 if (!NearEqual(GetMainOffset(currentOffset_), offsetBeforeLayout_)) { in Paint()
|
H A D | scrollable.cpp | 358 …SetDragStartPosition(GetMainOffset(Offset(info.GetGlobalPoint().GetX(), info.GetGlobalPoint().GetY… in HandleDragStart() 604 …SetDragEndPosition(GetMainOffset(Offset(info.GetGlobalPoint().GetX(), info.GetGlobalPoint().GetY()… in HandleDragEnd() 614 …double mainPosition = GetMainOffset(Offset(info.GetGlobalPoint().GetX(), info.GetGlobalPoint().Get… in HandleDragEnd()
|
H A D | scrollable.h | 108 double GetMainOffset(const Offset& offset) const in GetMainOffset() function
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/list/ |
H A D | list_item_drag_manager.cpp | 201 float offset1 = nearRect.GetOffset().GetMainOffset(axis_); in ScaleAxisNearItem() 202 if (!NearEqual(offset1, rect.GetOffset().GetMainOffset(axis_))) { in ScaleAxisNearItem() 206 float mainDelta = delta.GetMainOffset(axis); in ScaleAxisNearItem() 207 float c0 = rect.GetOffset().GetMainOffset(axis) + rect.GetSize().MainSize(axis) / 2; in ScaleAxisNearItem() 208 float c1 = nearRect.GetOffset().GetMainOffset(axis) + nearRect.GetSize().MainSize(axis) / 2; in ScaleAxisNearItem() 218 float th = (nearRect.GetOffset().GetMainOffset(axis) + nearRect.GetSize().MainSize(axis) - in ScaleAxisNearItem() 219 rect.GetOffset().GetMainOffset(axis) - rect.GetSize().MainSize(axis)) / 2; in ScaleAxisNearItem() 226 … float th = (nearRect.GetOffset().GetMainOffset(axis) - rect.GetOffset().GetMainOffset(axis)) / 2; in ScaleAxisNearItem() 264 float mainDelta = delta.GetMainOffset(axis_); in ScaleNearItem() 314 float startOffset = frameRect.GetOffset().GetMainOffset(axis_); in IsInHotZone()
|
H A D | list_item_group_paint_method.cpp | 31 .mainPadding = paddingOffset.GetMainOffset(axis), in PaintDivider()
|
H A D | list_paint_method.cpp | 78 .mainPadding = paddingOffset.GetMainOffset(axis), in UpdateContentModifier()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/scroll_bar/ |
H A D | scroll_bar_pattern.cpp | 673 …SetDragStartPosition(GetMainOffset(Offset(info.GetGlobalPoint().GetX(), info.GetGlobalPoint().GetY… in HandleDragStart() 706 …SetDragEndPosition(GetMainOffset(Offset(info.GetGlobalPoint().GetX(), info.GetGlobalPoint().GetY()… in HandleDragEnd() 865 if (infoOffset.GetMainOffset(axis_) < scrollBarTopOffset.GetMainOffset(axis_)) { in HandleClickEvent() 867 } else if (infoOffset.GetMainOffset(axis_) > scrollBarBottomOffset.GetMainOffset(axis_)) { in HandleClickEvent() 889 if (infoOffset.GetMainOffset(axis_) < scrollBarTopOffset.GetMainOffset(axis_)) { in HandleLongPress() 896 } else if (infoOffset.GetMainOffset(axis_) > scrollBarBottomOffset.GetMainOffset(axis_)) { in HandleLongPress()
|
H A D | scroll_bar_pattern.h | 173 float GetMainOffset(const Offset& offset) const in GetMainOffset() function
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/scroll/inner/ |
H A D | scroll_bar.cpp | 101 if (pointOffset.GetMainOffset(axis) < scrollBarTopOffset.GetMainOffset(axis)) { in CheckBarDirection() 103 } else if (pointOffset.GetMainOffset(axis) > scrollBarBottomOffset.GetMainOffset(axis)) { in CheckBarDirection() 642 …SetDragStartPosition(GetMainOffset(Offset(info.GetGlobalPoint().GetX(), info.GetGlobalPoint().GetY… in HandleDragStart() 690 …SetDragEndPosition(GetMainOffset(Offset(info.GetGlobalPoint().GetX(), info.GetGlobalPoint().GetY()… in HandleDragEnd() 1012 float ScrollBar::GetMainOffset(const Offset& offset) const in GetMainOffset() function in OHOS::Ace::NG::ScrollBar
|
H A D | scroll_bar.h | 373 float GetMainOffset(const Offset& offset) const;
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/base/geometry/ng/ |
H A D | offset_t.h | 62 T GetMainOffset(Axis axis) const in GetMainOffset() function
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/scrollable/ |
H A D | scrollable.cpp | 353 …SetDragStartPosition(GetMainOffset(Offset(info.GetGlobalPoint().GetX(), info.GetGlobalPoint().GetY… in HandleDragStart() 457 …SetDragEndPosition(GetMainOffset(Offset(info.GetGlobalPoint().GetX(), info.GetGlobalPoint().GetY()… in HandleDragEnd() 464 …double mainPosition = GetMainOffset(Offset(info.GetGlobalPoint().GetX(), info.GetGlobalPoint().Get… in HandleDragEnd()
|
H A D | scrollable.h | 107 double GetMainOffset(const Offset& offset) const in GetMainOffset() function
|
H A D | scrollable_pattern.cpp | 1576 totalOffsetOfMousePressed_ = mousePressOffset_.GetMainOffset(axis_) + GetTotalOffset(); in HandleDragStart() 1629 auto startMainOffset = mouseStartOffset_.GetMainOffset(axis_); in HandleInvisibleItemsSelectedStatus() 1630 auto endMainOffset = mouseEndOffset_.GetMainOffset(axis_); in HandleInvisibleItemsSelectedStatus() 1843 auto mainOffset = mouseEndOffset_.GetMainOffset(axis_); in LimitMouseEndOffset()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/scroll/ |
H A D | scroll_pattern.cpp | 1205 .append(initialOffset_->GetMainOffset(GetAxis()).ToString())) in DumpAdvanceInfo()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/tabs/ |
H A D | tab_bar_pattern.cpp | 1822 if (GreatOrEqual(local.GetMainOffset(axis), iter.second.startPos + leftPadding) && in CalculateSelectedIndex() 1823 LessOrEqual(local.GetMainOffset(axis), iter.second.endPos + leftPadding)) { in CalculateSelectedIndex()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/grid/ |
H A D | grid_pattern.cpp | 215 auto startMainOffset = mouseStartOffset_.GetMainOffset(gridLayoutInfo_.axis_); in MultiSelectWithoutKeyboard()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/swiper/ |
H A D | swiper_pattern.cpp | 3246 UpdateOffsetAfterPropertyAnimation(offset.GetMainOffset(GetDirection())); in OnPropertyTranslateAnimationFinish() 3296 UpdateOffsetAfterPropertyAnimation(currentOffset.GetMainOffset(GetDirection())); in StopPropertyTranslateAnimation()
|