Home
last modified time | relevance | path

Searched refs:GetMainOffset (Results 1 – 22 of 22) sorted by relevance

/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/scroll/
H A Drender_scroll.cpp93 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 Drender_multi_child_scroll.cpp120 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 Drender_single_child_scroll.cpp120 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 Drender_scroll.h83 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 Drosen_render_multi_child_scroll.cpp36 if (!NearEqual(GetMainOffset(currentOffset_), offsetBeforeLayout_)) { in Paint()
H A Dscrollable.cpp358 …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 Dscrollable.h108 double GetMainOffset(const Offset& offset) const in GetMainOffset() function
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/list/
H A Dlist_item_drag_manager.cpp201 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 Dlist_item_group_paint_method.cpp31 .mainPadding = paddingOffset.GetMainOffset(axis), in PaintDivider()
H A Dlist_paint_method.cpp78 .mainPadding = paddingOffset.GetMainOffset(axis), in UpdateContentModifier()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/scroll_bar/
H A Dscroll_bar_pattern.cpp673 …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 Dscroll_bar_pattern.h173 float GetMainOffset(const Offset& offset) const in GetMainOffset() function
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/scroll/inner/
H A Dscroll_bar.cpp101 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 Dscroll_bar.h373 float GetMainOffset(const Offset& offset) const;
/ohos5.0/foundation/arkui/ace_engine/frameworks/base/geometry/ng/
H A Doffset_t.h62 T GetMainOffset(Axis axis) const in GetMainOffset() function
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/scrollable/
H A Dscrollable.cpp353 …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 Dscrollable.h107 double GetMainOffset(const Offset& offset) const in GetMainOffset() function
H A Dscrollable_pattern.cpp1576 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 Dscroll_pattern.cpp1205 .append(initialOffset_->GetMainOffset(GetAxis()).ToString())) in DumpAdvanceInfo()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/tabs/
H A Dtab_bar_pattern.cpp1822 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 Dgrid_pattern.cpp215 auto startMainOffset = mouseStartOffset_.GetMainOffset(gridLayoutInfo_.axis_); in MultiSelectWithoutKeyboard()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/swiper/
H A Dswiper_pattern.cpp3246 UpdateOffsetAfterPropertyAnimation(offset.GetMainOffset(GetDirection())); in OnPropertyTranslateAnimationFinish()
3296 UpdateOffsetAfterPropertyAnimation(currentOffset.GetMainOffset(GetDirection())); in StopPropertyTranslateAnimation()