/foundation/arkui/ace_engine/frameworks/core/components/scroll/ |
H A D | render_scroll.cpp | 82 GetMainOffset(currentOffset_) >= (mainScrollExtent_ - GetMainSize(viewPort_)) && ReachMaxCount()) { in ValidateOffset() 83 scrollBarOutBoundaryExtent_ = GetMainOffset(currentOffset_) - in ValidateOffset() 93 if (GetMainOffset(currentOffset_) < 0) { in ValidateOffset() 94 outBoundaryExtent_ = -GetMainOffset(currentOffset_); in ValidateOffset() 95 scrollBarOutBoundaryExtent_ = -GetMainOffset(currentOffset_); in ValidateOffset() 96 } else if (GetMainOffset(currentOffset_) >= (mainScrollExtent_ - GetMainSize(viewPort_)) && in ValidateOffset() 99 GetMainOffset(currentOffset_) - (mainScrollExtent_ - GetMainSize(viewPort_)); in ValidateOffset() 122 if (GetMainOffset(currentOffset_) > 0.0 && in HandleScrollPosition() 123 GetMainOffset(currentOffset_) < mainScrollExtent_ - GetMainSize(viewPort_)) { in HandleScrollPosition() 177 if ((IsAtBottom() && GetMainOffset(delt in UpdateOffset() [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(viewPort_)) { 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_multi_child_scroll.cpp | 120 if (scrollable_->Idle() && GetMainOffset(currentOffset_) > 0.0) { in CalculateMainScrollExtent() 133 GreatNotEqual(GetMainOffset(currentOffset_), mainScrollExtent_ - GetMainSize(viewPort_))) { 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() 816 double fixPosition = GetFixPositionOnWatch(destPosition, -GetMainOffset(currentOffset_)); in HandleRotate() 907 double listPosition = GetMainOffset(currentOffset in GetFixPositionOnWatch() [all...] |
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 in OHOS::Ace::RenderScroll
|
H A D | rosen_render_multi_child_scroll.cpp | 36 if (!NearEqual(GetMainOffset(currentOffset_), offsetBeforeLayout_)) { in Paint()
|
H A D | scrollable.cpp | 362 SetDragStartPosition(GetMainOffset(Offset(info.GetGlobalPoint().GetX(), info.GetGlobalPoint().GetY()))); in HandleDragStart() 607 SetDragEndPosition(GetMainOffset(Offset(info.GetGlobalPoint().GetX(), info.GetGlobalPoint().GetY()))); in HandleDragEnd() 617 double mainPosition = GetMainOffset(Offset(info.GetGlobalPoint().GetX(), info.GetGlobalPoint().GetY())); in HandleDragEnd()
|
H A D | scrollable.h | 108 double GetMainOffset(const Offset& offset) const in GetMainOffset() function in OHOS::Ace::Scrollable
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/list/ |
H A D | list_item_drag_manager.cpp | 199 float offset1 = nearRect.GetOffset().GetMainOffset(axis_); in ScaleAxisNearItem() 200 if (!NearEqual(offset1, rect.GetOffset().GetMainOffset(axis_))) { in ScaleAxisNearItem() 204 float mainDelta = delta.GetMainOffset(axis); in ScaleAxisNearItem() 205 float c0 = rect.GetOffset().GetMainOffset(axis) + rect.GetSize().MainSize(axis) / 2; in ScaleAxisNearItem() 206 float c1 = nearRect.GetOffset().GetMainOffset(axis) + nearRect.GetSize().MainSize(axis) / 2; in ScaleAxisNearItem() 216 float th = (nearRect.GetOffset().GetMainOffset(axis) + nearRect.GetSize().MainSize(axis) - in ScaleAxisNearItem() 217 rect.GetOffset().GetMainOffset(axis) - rect.GetSize().MainSize(axis)) / 2; in ScaleAxisNearItem() 224 float th = (nearRect.GetOffset().GetMainOffset(axis) - rect.GetOffset().GetMainOffset(axis)) / 2; in ScaleAxisNearItem() 262 float mainDelta = delta.GetMainOffset(axis in ScaleNearItem() [all...] |
H A D | list_paint_method.cpp | 77 .mainPadding = paddingOffset.GetMainOffset(axis),
in UpdateContentModifier()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/scroll_bar/ |
H A D | scroll_bar_pattern.cpp | 705 SetDragStartPosition(GetMainOffset(Offset(info.GetGlobalPoint().GetX(), info.GetGlobalPoint().GetY()))); in HandleDragStart() 738 SetDragEndPosition(GetMainOffset(Offset(info.GetGlobalPoint().GetX(), info.GetGlobalPoint().GetY()))); in HandleDragEnd() 880 if (infoOffset.GetMainOffset(axis_) < scrollBarTopOffset.GetMainOffset(axis_)) { in HandleClickEvent() 882 } else if (infoOffset.GetMainOffset(axis_) > scrollBarBottomOffset.GetMainOffset(axis_)) { in HandleClickEvent() 904 if (infoOffset.GetMainOffset(axis_) < scrollBarTopOffset.GetMainOffset(axis_)) { in HandleLongPress() 911 } else if (infoOffset.GetMainOffset(axis_) > scrollBarBottomOffset.GetMainOffset(axis in HandleLongPress() [all...] |
H A D | scroll_bar_pattern.h | 173 float GetMainOffset(const Offset& offset) const in GetMainOffset() function in OHOS::Ace::NG::ScrollBarPattern
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/scroll/inner/ |
H A D | scroll_bar.cpp | 95 if (pointOffset.GetMainOffset(axis) < scrollBarTopOffset.GetMainOffset(axis)) { in CheckBarDirection() 97 } else if (pointOffset.GetMainOffset(axis) > scrollBarBottomOffset.GetMainOffset(axis)) { in CheckBarDirection() 571 SetDragStartPosition(GetMainOffset(Offset(info.GetGlobalPoint().GetX(), info.GetGlobalPoint().GetY()))); in HandleDragStart() 619 SetDragEndPosition(GetMainOffset(Offset(info.GetGlobalPoint().GetX(), info.GetGlobalPoint().GetY()))); in HandleDragEnd() 1017 float ScrollBar::GetMainOffset(const Offset& offset) const in GetMainOffset() function in OHOS::Ace::NG::ScrollBar
|
H A D | scroll_bar.h | 361 float GetMainOffset(const Offset& offset) const;
|
/foundation/arkui/ace_engine/frameworks/base/geometry/ng/ |
H A D | offset_t.h | 62 T GetMainOffset(Axis axis) const in GetMainOffset() function in OHOS::Ace::NG::OffsetT
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/scrollable/ |
H A D | scrollable.cpp | 339 SetDragStartPosition(GetMainOffset(Offset(info.GetGlobalPoint().GetX(), info.GetGlobalPoint().GetY()))); in HandleDragStart() 442 SetDragEndPosition(GetMainOffset(Offset(info.GetGlobalPoint().GetX(), info.GetGlobalPoint().GetY()))); in HandleDragEnd() 445 double mainPosition = Round(GetMainOffset(Offset(info.GetGlobalPoint().GetX(), info.GetGlobalPoint().GetY()))); in HandleDragEnd()
|
H A D | scrollable.h | 116 double GetMainOffset(const Offset& offset) const in GetMainOffset() function in OHOS::Ace::NG::Scrollable
|
H A D | scrollable_pattern.cpp | 1621 totalOffsetOfMousePressed_ = mousePressOffset_.GetMainOffset(axis_) + GetTotalOffset(); in HandleDragStart() 1674 auto startMainOffset = mouseStartOffset_.GetMainOffset(axis_); in HandleInvisibleItemsSelectedStatus() 1675 auto endMainOffset = mouseEndOffset_.GetMainOffset(axis_); in HandleInvisibleItemsSelectedStatus() 1892 auto mainOffset = mouseEndOffset_.GetMainOffset(axis_); in LimitMouseEndOffset()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/scroll/ |
H A D | scroll_pattern.cpp | 1205 .append(initialOffset_->GetMainOffset(GetAxis()).ToString())) 1357 initialOffset_.has_value() ? initialOffset_->GetMainOffset(GetAxis()).ToString().c_str() : "None");
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/swiper/ |
H A D | swiper_pattern.cpp | 3370 UpdateOffsetAfterPropertyAnimation(offset.GetMainOffset(GetDirection())); 3387 ACE_SCOPED_TRACE("Swiper stop propertyAni offset %f", currentOffset.GetMainOffset(GetDirection())); 3389 currentOffset.GetMainOffset(GetDirection())); 3394 UpdateOffsetAfterPropertyAnimation(currentOffset.GetMainOffset(GetDirection()));
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/tabs/ |
H A D | tab_bar_pattern.cpp | 1810 if (GreatOrEqual(local.GetMainOffset(axis), iter.second.startPos + leftPadding) && in CalculateSelectedIndex() 1811 LessOrEqual(local.GetMainOffset(axis), iter.second.endPos + leftPadding)) { in CalculateSelectedIndex()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/grid/ |
H A D | grid_pattern.cpp | 196 auto startMainOffset = mouseStartOffset_.GetMainOffset(gridLayoutInfo_.axis_); in MultiSelectWithoutKeyboard()
|