Home
last modified time | relevance | path

Searched refs:GetMainOffset (Results 1 - 21 of 21) sorted by relevance

/foundation/arkui/ace_engine/frameworks/core/components/scroll/
H A Drender_scroll.cpp82 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 Drender_single_child_scroll.cpp120 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 Drender_multi_child_scroll.cpp120 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 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 in OHOS::Ace::RenderScroll
H A Drosen_render_multi_child_scroll.cpp36 if (!NearEqual(GetMainOffset(currentOffset_), offsetBeforeLayout_)) { in Paint()
H A Dscrollable.cpp362 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 Dscrollable.h108 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 Dlist_item_drag_manager.cpp199 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 Dlist_paint_method.cpp77 .mainPadding = paddingOffset.GetMainOffset(axis), in UpdateContentModifier()
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/scroll_bar/
H A Dscroll_bar_pattern.cpp705 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 Dscroll_bar_pattern.h173 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 Dscroll_bar.cpp95 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 Dscroll_bar.h361 float GetMainOffset(const Offset& offset) const;
/foundation/arkui/ace_engine/frameworks/base/geometry/ng/
H A Doffset_t.h62 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 Dscrollable.cpp339 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 Dscrollable.h116 double GetMainOffset(const Offset& offset) const in GetMainOffset() function in OHOS::Ace::NG::Scrollable
H A Dscrollable_pattern.cpp1621 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 Dscroll_pattern.cpp1205 .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 Dswiper_pattern.cpp3370 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 Dtab_bar_pattern.cpp1810 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 Dgrid_pattern.cpp196 auto startMainOffset = mouseStartOffset_.GetMainOffset(gridLayoutInfo_.axis_); in MultiSelectWithoutKeyboard()

Completed in 39 milliseconds