/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/tip/ |
H A D | rosen_render_tip.cpp | 115 … globalArrowPosition.GetY() - bubbleSpacing - NormalizeToPx(border_.BottomRightRadius().GetY())); in PaintTopTip() 128 … globalArrowPosition.GetY() - bubbleSpacing - NormalizeToPx(border_.BottomLeftRadius().GetY())); in PaintTopTip() 174 … globalArrowPosition.GetY() - bubbleSpacing - NormalizeToPx(border_.BottomRightRadius().GetY())); in PaintTopTip() 187 … globalArrowPosition.GetY() - bubbleSpacing - NormalizeToPx(border_.BottomLeftRadius().GetY())); in PaintTopTip() 234 … globalArrowPosition.GetY() - (childHalfHeight - NormalizeToPx(border_.TopRightRadius().GetY()))); in PaintLeftTip() 244 … globalArrowPosition.GetY() - childHalfHeight + NormalizeToPx(border_.TopLeftRadius().GetY())); in PaintLeftTip() 246 …globalArrowPosition.GetY() + (childHalfHeight - NormalizeToPx(border_.BottomLeftRadius().GetY()))); in PaintLeftTip() 255 …globalArrowPosition.GetY() + (childHalfHeight - NormalizeToPx(border_.BottomRightRadius().GetY()))… in PaintLeftTip() 294 … globalArrowPosition.GetY() - (childHalfHeight - NormalizeToPx(border_.TopRightRadius().GetY()))); in PaintLeftTip() 304 … globalArrowPosition.GetY() - childHalfHeight + NormalizeToPx(border_.TopLeftRadius().GetY())); in PaintLeftTip() [all …]
|
/ohos5.0/foundation/arkui/ace_engine/adapter/ohos/entrance/window/ |
H A D | drag_window_ohos.cpp | 568 textPattern->GetStartOffset().GetY() - globalOffset.GetY()); in DrawTextNG() 570 textPattern->GetEndOffset().GetY() - globalOffset.GetY()); in DrawTextNG() 576 textPattern->GetStartOffset().GetY() - globalOffset.GetY()); in DrawTextNG() 579 textPattern->GetStartOffset().GetY() - globalOffset.GetY()); in DrawTextNG() 585 textPattern->GetEndOffset().GetY() - globalOffset.GetY()); in DrawTextNG() 595 textPattern->GetStartOffset().GetY() - globalOffset.GetY()); in DrawTextNG() 607 textPattern->GetStartOffset().GetY() - globalOffset.GetY()); in DrawTextNG() 609 textPattern->GetEndOffset().GetY() - globalOffset.GetY()); in DrawTextNG() 615 textPattern->GetStartOffset().GetY() - globalOffset.GetY()); in DrawTextNG() 618 textPattern->GetStartOffset().GetY() - globalOffset.GetY()); in DrawTextNG() [all …]
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/bubble/ |
H A D | rosen_render_bubble.cpp | 269 arrowPosition_.GetY() - bubbleSpacing - NormalizeToPx(border_.BottomRightRadius().GetY())); in PaintTopBubbleInJs() 282 arrowPosition_.GetY() - bubbleSpacing - NormalizeToPx(border_.BottomLeftRadius().GetY())); in PaintTopBubbleInJs() 295 arrowPosition_.GetY()); in PaintTopBubbleInJs() 343 arrowPosition_.GetY() - bubbleSpacing - NormalizeToPx(border_.BottomLeftRadius().GetY())); in PaintTopBubbleInJs() 356 arrowPosition_.GetY()); in PaintTopBubbleInJs() 395 arrowPosition_.GetY() + bubbleSpacing + NormalizeToPx(border_.TopRightRadius().GetY())); in PaintBottomBubbleInJs() 408 arrowPosition_.GetY() + bubbleSpacing + NormalizeToPx(border_.TopLeftRadius().GetY())); in PaintBottomBubbleInJs() 421 arrowPosition_.GetY()); in PaintBottomBubbleInJs() 456 arrowPosition_.GetY() + bubbleSpacing + NormalizeToPx(border_.TopRightRadius().GetY())); in PaintBottomBubbleInJs() 469 arrowPosition_.GetY() + bubbleSpacing + NormalizeToPx(border_.TopLeftRadius().GetY())); in PaintBottomBubbleInJs() [all …]
|
H A D | render_bubble.cpp | 176 accessibilityNode->SetTop((offset.GetY()) * viewScale); in UpdateAccessibilityInfo() 482 targetOffset_.GetY() - marginBottom); in GetPositionWithPlacement() 499 targetOffset_.GetY() - marginBottom); in GetPositionWithPlacement() 641 childOffset_.GetX() + radius, childOffset_.GetY()); in BuildCornerPath() 669 childOffset_.GetY() + radius); in BuildCornerPath() 760 arrowPosition_.GetY() + arrowOffset); in BuildRightLinePath() 790 arrowPosition_.GetY() + arrowOffset); in BuildRightLinePath() 815 childOffset_.GetY() + childSize_.Height()); in BuildBottomLinePath() 845 childOffset_.GetY() + childSize_.Height()); in BuildBottomLinePath() 883 arrowPosition_.GetY() + arrowOffset); in BuildLeftLinePath() [all …]
|
/ohos5.0/foundation/arkui/ui_lite/test/unittest/layout/ |
H A D | grid_layout_unit_test.cpp | 31 EXPECT_EQ(view->GetY(), 0); in CreatView() 89 EXPECT_EQ(view1->GetY(), 25); // 25: view y after layout 91 EXPECT_EQ(view2->GetY(), view1->GetY()); 93 EXPECT_EQ(view3->GetY(), view1->GetY()); 130 EXPECT_EQ(view1->GetY(), 25); // 25: view y after layout 134 EXPECT_EQ(view3->GetY(), view1->GetY()); 136 EXPECT_EQ(view4->GetY(), view2->GetY()); 175 EXPECT_EQ(view3->GetY(), view1->GetY()); 177 EXPECT_EQ(view4->GetY(), view2->GetY()); 216 EXPECT_EQ(view3->GetY(), view1->GetY()); [all …]
|
H A D | flex_layout_unit_test.cpp | 31 EXPECT_EQ(view->GetY(), 0); in CreatView() 84 EXPECT_EQ(view1->GetY(), 0); 86 EXPECT_EQ(view2->GetY(), 0); 88 EXPECT_EQ(view3->GetY(), 0); 224 EXPECT_EQ(view1->GetY(), 0); 259 EXPECT_EQ(view1->GetY(), 0); 298 EXPECT_EQ(view3->GetY(), 0); 333 EXPECT_EQ(view3->GetY(), 0); 367 EXPECT_EQ(view1->GetY(), 0); 369 EXPECT_EQ(view2->GetY(), 0); [all …]
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/slider/ |
H A D | slider_tip_modifier.cpp | 144 if (sliderGlobalOffset_->Get().GetY() + vertex_.GetY() < bubbleSize_.Height()) { in PaintHorizontalBubble() 149 vertex_.GetY() + arrowVerticalOffset); in PaintHorizontalBubble() 161 vertex_.GetY() - arrowVerticalOffset); in PaintHorizontalBubble() 188 vertex_.GetY() - arrowHorizonOffset); in PaintVerticalBubble() 199 vertex_.GetY() + arrowWidth * HALF); in PaintVerticalBubble() 205 vertex_.GetY() + arrowHorizonOffset); in PaintVerticalBubble() 216 vertex_.GetY() - arrowWidth * HALF); in PaintVerticalBubble() 230 if (sliderGlobalOffset_->Get().GetY() + vertex_.GetY() < bubbleSize_.Height()) { in PaintHorizontalBubbleSuitableAging() 297 vertex_.GetY() - arrowHorizonOffset); in PaintVerticalBubbleSuitableAging() 318 vertex_.GetY() + arrowHorizonOffset); in PaintVerticalBubbleSuitableAging() [all …]
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/test/2d_graphics/unittest/utils/ |
H A D | point_test.cpp | 51 EXPECT_EQ(0.0f, pointf->GetY()); 95 EXPECT_EQ(2.0f, pointf->GetY()); 109 EXPECT_EQ(1.0f, pointf->GetY()); 151 EXPECT_EQ(1.0f, pointf->GetY()); 165 EXPECT_EQ(2.0f, pointf->GetY()); 181 EXPECT_EQ(2.0f, pointf1.GetY()); 197 EXPECT_EQ(1.0f, pointf1.GetY()); 244 EXPECT_EQ(6.0f, pointf1.GetY()); 274 EXPECT_EQ(3.0f, pointf1.GetY()); 289 EXPECT_EQ(4.0f, pointf1.GetY()); [all …]
|
H A D | point3_test.cpp | 51 EXPECT_EQ(0.0f, point3->GetY()); 96 EXPECT_EQ(2.0f, point3->GetY()); 111 EXPECT_EQ(5.0f, point3->GetY()); 154 EXPECT_EQ(1.0f, point3->GetY()); 168 EXPECT_EQ(2.0f, point3->GetY()); 212 EXPECT_EQ(2.0f, point1.GetY()); 229 EXPECT_EQ(2.0f, point1.GetY()); 279 EXPECT_EQ(4.0f, point3.GetY()); 295 EXPECT_EQ(4.0f, point3.GetY()); 311 EXPECT_EQ(2.0f, point3.GetY()); [all …]
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/track/ |
H A D | rosen_render_moon_track.cpp | 60 path.moveTo(center.GetX(), center.GetY() - radius); in Paint() 61 …path.addArc({ center.GetX() - radius, center.GetY() - radius, center.GetX() + radius, center.GetY(… in Paint() 65 center.GetY() + radius }, in Paint() 70 path.moveTo(center.GetX(), center.GetY() - radius); in Paint() 71 …path.addArc({ center.GetX() - radius, center.GetY() - radius, center.GetX() + radius, center.GetY(… in Paint() 75 center.GetY() + radius }, in Paint() 90 path.MoveTo(center.GetX(), center.GetY() - radius); in Paint() 92 … center.GetX() - radius, center.GetY() - radius, center.GetX() + radius, center.GetY() + radius), in Paint() 96 center.GetY() - radius, center.GetX() + progressOffset, center.GetY() + radius), in Paint() 105 … center.GetX() - radius, center.GetY() - radius, center.GetX() + radius, center.GetY() + radius), in Paint() [all …]
|
H A D | rosen_render_linear_track.cpp | 135 startRect = isReverse_ ? offset.GetY() + GetLayoutSize().Height() : offset.GetY(); in Paint() 166 … RSRoundRect cachedRect(RSRect(startRect, offset.GetY(), endRect, offset.GetY() + trackHeight), in Paint() 180 startRect = isReverse_ ? offset.GetY() + GetLayoutSize().Height() : offset.GetY(); in Paint() 199 … RSRoundRect selectRect(RSRect(startRect, offset.GetY(), endRect, offset.GetY() + trackHeight), in Paint() 237 double current = offset.GetY(); in PaintSliderSteps() 249 dyOffset = std::clamp(current, offset.GetY(), offset.GetY() + trackLength); in PaintSliderSteps() 294 dyOffset = std::clamp(current, offset.GetY(), offset.GetY() + trackLength); in PaintSliderSteps() 361 canvas->drawLine(dxOffset, offset.GetY(), dxOffset, offset.GetY() + trackLength, railPaint); in PaintSliderTrack() 373 …canvas->DrawLine(RSPoint(dxOffset, offset.GetY()), RSPoint(dxOffset, offset.GetY() + trackLength)); in PaintSliderTrack() 395 fromOffset = isReverse_ ? offset.GetY() + trackLength : offset.GetY(); in PaintSliderTrack() [all …]
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/checkable/ |
H A D | rosen_render_checkbox.cpp | 191 double originY = origin.GetY(); in DrawPartSelect() 208 double originY = origin.GetY(); in DrawPartSelect() 276 double originY = origin.GetY(); in DrawCheck() 381 double deltaY = middle.GetY() - start.GetY(); in DrawAnimationOffToOn() 395 deltaY = middle.GetY() - end.GetY(); in DrawAnimationOffToOn() 425 deltaY = middle.GetY() - end.GetY(); in DrawAnimationOffToOn() 470 double deltaY = middlePoint.GetY() - start.GetY(); in DrawAnimationOnToOff() 475 deltaY = middle.GetY() - middlePoint.GetY(); in DrawAnimationOnToOff() 481 deltaY = middlePoint.GetY() - end.GetY(); in DrawAnimationOnToOff() 488 deltaY = middle.GetY() - middlePoint.GetY(); in DrawAnimationOnToOff() [all …]
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/chart/ |
H A D | rosen_render_chart.cpp | 70 paintRegion.GetOffset().GetY() + paintRegion.Height() - in ConvertDataToPosition() 221 pointPosition.GetY() + TEXT_PADDING); in PaintText() 695 cur.GetY() + (next.GetY() - prev.GetY()) / BEZIER_CONSTANT); in CalculateControlA() 701 next.GetY() - (nextNext.GetY() - cur.GetY()) / BEZIER_CONSTANT); in CalculateControlB() 718 point.GetY() < vertical_.min) { in PaintLine() 726 path.lineTo(position.GetX(), position.GetY()); in PaintLine() 799 …path.cubicTo(controlA.GetX(), controlA.GetY(), controlB.GetX(), controlB.GetY(), next.GetX(), next… in AddCubicPath() 801 …path.CubicTo(controlA.GetX(), controlA.GetY(), controlB.GetX(), controlB.GetY(), next.GetX(), next… in AddCubicPath() 842 offset.GetY() + TICK_LENGTH, paint); in PaintHorizontalAxis() 847 offset.GetY() + 0.5 * TICK_LENGTH, paint); in PaintHorizontalAxis() [all …]
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/swiper/ |
H A D | rosen_render_swiper.cpp | 428 offset.GetY() + indicatorPosition_.GetY() + NormalizeToPx(15.0_vp))); in PaintMask() 478 rRect.offset(position.GetX() + offset.GetX(), position.GetY() + offset.GetY()); in DrawIndicatorBackground() 491 rRect.Offset(position.GetX() + offset.GetX(), position.GetY() + offset.GetY()); in DrawIndicatorBackground() 520 position.GetY() + offset.GetY() - NormalizeToPx(INDICATOR_FOCUS_OFFSET_Y)); in DrawIndicatorFocus() 529 position.GetY() + offset.GetY() - NormalizeToPx(INDICATOR_FOCUS_OFFSET_Y)); in DrawIndicatorFocus() 606 pointInfo.center.GetY() + offset.GetY() - pointInfo.animationMove.GetY(), in DrawIndicatorItems() 635 … pointInfo.center.GetY() + offset.GetY() - pointInfo.animationMove.GetY()), in DrawIndicatorItems() 694 …tion.GetX() + offset.GetX() + focusMove.GetX(), position.GetY() + offset.GetY() + focusMove.GetY()… in GetRRect() 700 …tion.GetX() + offset.GetX() + focusMove.GetX(), position.GetY() + offset.GetY() + focusMove.GetY()… in GetRRect() 708 startOffset = position.GetY() + offset.GetY() + focusMove.GetY(); in GetRRect() [all …]
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/badge/ |
H A D | rosen_render_badge.cpp | 73 boundaryStartY = offset.GetY(); in DrawCircleBadge() 121 boundaryStartY = offset.GetY(); in DrawCircleBadge() 299 …rRect.offset(offset.GetX() + textInitialOffset_.GetX(), offset.GetY() + textInitialOffset_.GetY()); in SetBoundaryForNumericalBadge() 301 …rRect.Offset(offset.GetX() + textInitialOffset_.GetX(), offset.GetY() + textInitialOffset_.GetY()); in SetBoundaryForNumericalBadge() 304 boundaryStartY = offset.GetY() + textInitialOffset_.GetY(); in SetBoundaryForNumericalBadge() 308 …rRect.offset(offset.GetX() + textInitialOffset_.GetX(), offset.GetY() + textInitialOffset_.GetY()); in SetBoundaryForNumericalBadge() 310 …rRect.Offset(offset.GetX() + textInitialOffset_.GetX(), offset.GetY() + textInitialOffset_.GetY()); in SetBoundaryForNumericalBadge() 313 boundaryStartY = offset.GetY() + textInitialOffset_.GetY(); in SetBoundaryForNumericalBadge() 317 rRect.offset(offset.GetX(), offset.GetY() + textInitialOffset_.GetY()); in SetBoundaryForNumericalBadge() 319 rRect.Offset(offset.GetX(), offset.GetY() + textInitialOffset_.GetY()); in SetBoundaryForNumericalBadge() [all …]
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/data_panel/ |
H A D | rosen_render_data_panel.cpp | 203 canvas->rotate(startAngle, center.GetX(), center.GetY()); in PaintProgress() 230 canvas->rotate(startAngle, center.GetX(), center.GetY()); in PaintProgress() 357 center.GetY() - radius + thickness); in PaintProgress() 566 canvas->rotate(startAngle, center.GetX(), center.GetY()); in PaintRainbowFilterMask() 636 canvas->Rotate(startAngle, center.GetX(), center.GetY()); 881 rRect.offset(leftTop.GetX(), leftTop.GetY()); in PaintBackground() 887 …{ leftTop.GetX(), leftTop.GetY(), totalWidth + leftTop.GetX(), height + leftTop.GetY() }, backgrou… in PaintBackground() 891 rRect.Offset(leftTop.GetX(), leftTop.GetY()); in PaintBackground() 896 …anvas->DrawRect(RSRect(leftTop.GetX(), leftTop.GetY(), totalWidth + leftTop.GetX(), height + leftT… in PaintBackground() 917 RSRect rect = RSRect(xSpace, leftTop.GetY(), spaceWidth + xSpace, height + leftTop.GetY()); in PaintSpace() [all …]
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/render/ |
H A D | rect_painter.cpp | 33 …radiusXY[0].SetY(static_cast<float>(rectPaintProperty.GetTopLeftRadiusValue().GetY().ConvertToPx()… in DrawRect() 37 …radiusXY[1].SetY(static_cast<float>(rectPaintProperty.GetTopRightRadiusValue().GetY().ConvertToPx(… in DrawRect() 41 …radiusXY[2].SetY(static_cast<float>(rectPaintProperty.GetBottomRightRadiusValue().GetY().ConvertTo… in DrawRect() 45 …radiusXY[3].SetY(static_cast<float>(rectPaintProperty.GetBottomLeftRadiusValue().GetY().ConvertToP… in DrawRect() 49 if (Negative(radius.GetX()) && NonNegative(radius.GetY())) { in DrawRect() 50 radius.SetX(radius.GetY()); in DrawRect() 53 if (Negative(radius.GetY()) && NonNegative(radius.GetX())) { in DrawRect() 60 …RSRect(rect.GetX(), rect.GetY(), rect.Width() + rect.GetX(), rect.Height() + rect.GetY()), radiusX… in DrawRect()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/text_overlay/ |
H A D | rosen_render_text_overlay.cpp | 108 skCanvas->translate(centerOffset.GetX(), centerOffset.GetY()); in PaintHandle() 129 … skCanvas->drawLine(startPoint.GetX(), startPoint.GetY(), endPoint.GetX(), endPoint.GetY(), paint); in PaintHandle() 142 canvas->Translate(centerOffset.GetX(), centerOffset.GetY()); in PaintHandle() 169 …nvas->DrawLine(RSPoint(startPoint.GetX(), startPoint.GetY()), RSPoint(endPoint.GetX(), endPoint.Ge… in PaintHandle() 195 …globalY = textFieldGlobalOffset.GetY() + caretRect.GetOffset().GetY() - NormalizeToPx(MAGNIFIER_WI… in PaintMagnifier() 207 …globalY = textFieldGlobalOffset.GetY() + caretRect.GetOffset().GetY() - NormalizeToPx(MAGNIFIER_WI… in PaintMagnifier() 408 canvas->translate(moreOffset.GetX() + center.GetX(), moreOffset.GetY() + center.GetY()); in PaintMore() 414 canvas->translate(-center.GetX(), -center.GetY()); in PaintMore() 429 path.moveTo(SkDoubleToScalar(topLeft.GetX()), SkDoubleToScalar(topLeft.GetY())); in PaintMore() 443 canvas->Translate(moreOffset.GetX() + center.GetX(), moreOffset.GetY() + center.GetY()); in PaintMore() [all …]
|
/ohos5.0/foundation/arkui/ui_lite/test/unittest/components/ |
H A D | ui_view_unit_test.cpp | 365 EXPECT_EQ(view_->GetY(), 0); 367 EXPECT_EQ(view_->GetY(), POS_Y); 384 EXPECT_EQ(view_->GetY(), 0); 387 EXPECT_EQ(view_->GetY(), POS_Y); 406 EXPECT_EQ(view_->GetY(), 0); 411 EXPECT_EQ(view_->GetY(), POS_Y); 430 EXPECT_EQ(view_->GetY(), POS_Y); 872 EXPECT_EQ(view_->GetY(), 0); 1065 EXPECT_EQ(0, view_->GetY()); 1095 EXPECT_EQ(0, rect.GetY()); [all …]
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_v2/pattern_lock/ |
H A D | rosen_render_pattern_lock.cpp | 52 double offsetY = cellcenter.GetY(); in PaintLockCircle() 90 double offsetY = cellcenter.GetY(); in PaintLockCircle() 162 …canvas->drawLine(pointBegin.GetX(), pointBegin.GetY(), pointEnd.GetX(), pointEnd.GetY(), skPaintSt… in PaintLockLine() 168 double y1 = pointBegin.GetY(); in PaintLockLine() 170 double y2 = offset.GetY() + cellCenter_.GetY(); in PaintLockLine() 173 …y2 = y2 > offset.GetY() + NormalizeToPx(sideLength_) ? offset.GetY() + NormalizeToPx(sideLength_) … in PaintLockLine() 174 y2 = y2 < offset.GetY() ? offset.GetY() : y2; in PaintLockLine() 223 double y1 = pointBegin.GetY(); in PaintLockLine() 225 double y2 = offset.GetY() + cellCenter_.GetY(); in PaintLockLine() 228 …y2 = y2 > offset.GetY() + NormalizeToPx(sideLength_) ? offset.GetY() + NormalizeToPx(sideLength_) … in PaintLockLine() [all …]
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/drag_bar/ |
H A D | rosen_render_drag_bar.cpp | 76 SkDoubleToScalar(barLeftPoint_.GetY() * scaleY_ + totalOffset.GetY())); in Paint() 78 SkDoubleToScalar(barCenterPoint_.GetY() * scaleY_ + totalOffset.GetY())); in Paint() 80 SkDoubleToScalar(barRightPoint_.GetY() * scaleY_ + totalOffset.GetY())); in Paint() 107 static_cast<RSScalar>(barLeftPoint_.GetY() * scaleY_ + totalOffset.GetY())); in Paint() 109 static_cast<RSScalar>(barCenterPoint_.GetY() * scaleY_ + totalOffset.GetY())); in Paint() 111 static_cast<RSScalar>(barRightPoint_.GetY() * scaleY_ + totalOffset.GetY())); in Paint()
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/engine/functions/ |
H A D | js_click_function.cpp | 41 … obj->SetProperty<double>("displayY", PipelineBase::Px2VpWithCurrentDensity(screenOffset.GetY())); in Execute() 43 obj->SetProperty<double>("windowY", PipelineBase::Px2VpWithCurrentDensity(globalOffset.GetY())); in Execute() 45 obj->SetProperty<double>("screenY", PipelineBase::Px2VpWithCurrentDensity(globalOffset.GetY())); in Execute() 47 obj->SetProperty<double>("y", PipelineBase::Px2VpWithCurrentDensity(localOffset.GetY())); in Execute() 77 obj->SetProperty<double>("windowY", PipelineBase::Px2VpWithCurrentDensity(globalOffset.GetY())); in Execute() 79 obj->SetProperty<double>("screenY", PipelineBase::Px2VpWithCurrentDensity(globalOffset.GetY())); in Execute() 81 obj->SetProperty<double>("y", PipelineBase::Px2VpWithCurrentDensity(localOffset.GetY())); in Execute() 118 obj->SetProperty<double>("y", PipelineBase::Px2VpWithCurrentDensity(localOffset.GetY())); in Execute() 164 obj->SetProperty<double>("y", PipelineBase::Px2VpWithCurrentDensity(localOffset.GetY())); in Execute() 198 obj->SetProperty<double>("y", PipelineBase::Px2VpWithCurrentDensity(localOffset.GetY())); in Execute() [all …]
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/manager/drag_drop/ |
H A D | drag_drop_proxy.cpp | 43 …auto point = Point(info.GetGlobalPoint().GetX(), info.GetGlobalPoint().GetY(), info.GetScreenLocat… in OnDragStart() 44 info.GetScreenLocation().GetY()); in OnDragStart() 45 auto pointerEvent = PointerEvent(info.GetGlobalPoint().GetX(), info.GetGlobalPoint().GetY(), in OnDragStart() 46 info.GetScreenLocation().GetX(), info.GetScreenLocation().GetY()); in OnDragStart() 61 manager->OnDragMove(PointerEvent(info.GetGlobalPoint().GetX(), info.GetGlobalPoint().GetY(), in OnDragMove() 62 info.GetScreenLocation().GetX(), info.GetScreenLocation().GetY()), extraInfo); in OnDragMove() 75 static_cast<float>(info.GetGlobalPoint().GetY()), extraInfo); in OnDragEnd() 77 manager->OnDragEnd(PointerEvent(info.GetGlobalPoint().GetX(), info.GetGlobalPoint().GetY(), in OnDragEnd() 78 info.GetScreenLocation().GetX(), info.GetScreenLocation().GetY()), extraInfo); in OnDragEnd() 113 static_cast<float>(info.GetGlobalPoint().GetY()), draggedIndex, dragType); in OnItemDragMove() [all …]
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/refresh/ |
H A D | render_refresh.cpp | 264 if (NearEqual(scrollableOffset_.GetY(), 0.0f)) { in HandleDragEnd() 272 double start = scrollableOffset_.GetY(); in HandleDragEnd() 278 double start = scrollableOffset_.GetY(); in HandleDragEnd() 299 loading_->SetDragDistance(scrollableOffset_.GetY()); in ResetStatus() 373 } else if (NearEqual(scrollableOffset_.GetY(), 0.0f)) { in HandleStopListener() 391 if (LessOrEqual(scrollableOffset_.GetY(), 0.0)) { in GetNextStatus() 399 if (LessOrEqual(scrollableOffset_.GetY(), 0.0)) { in GetNextStatus() 429 if (scrollableOffset_.GetY() > 0.0) { in GetNextStatus() 483 if (scrollableOffset_.GetY() < triggerLoadingDistance_) { in GetLoadingDiameter() 505 if (scrollableOffset_.GetY() < triggerLoadingDistance_) { in GetLoadingOffset() [all …]
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/piece/ |
H A D | rosen_render_piece.cpp | 89 SkRect rect = SkRect::MakeXYWH(offset.GetX(), offset.GetY(), size.Width(), size.Height()); in MakeRRect() 93 …::Make(NormalizeToPx(border.TopLeftRadius().GetX()), NormalizeToPx(border.TopLeftRadius().GetY())); in MakeRRect() 95 …Make(NormalizeToPx(border.TopRightRadius().GetX()), NormalizeToPx(border.TopRightRadius().GetY())); in MakeRRect() 97 …ormalizeToPx(border.BottomRightRadius().GetX()), NormalizeToPx(border.BottomRightRadius().GetY())); in MakeRRect() 99 …(NormalizeToPx(border.BottomLeftRadius().GetX()), NormalizeToPx(border.BottomLeftRadius().GetY())); in MakeRRect() 108 … RSRect(offset.GetX(), offset.GetY(), size.Width() + offset.GetX(), size.Height() + offset.GetY()); in MakeRRect() 113 NormalizeToPx(border.TopLeftRadius().GetX()), NormalizeToPx(border.TopLeftRadius().GetY())); in MakeRRect() 116 … NormalizeToPx(border.TopRightRadius().GetX()), NormalizeToPx(border.TopRightRadius().GetY())); in MakeRRect() 119 …ormalizeToPx(border.BottomRightRadius().GetX()), NormalizeToPx(border.BottomRightRadius().GetY())); in MakeRRect() 122 … NormalizeToPx(border.BottomLeftRadius().GetX()), NormalizeToPx(border.BottomLeftRadius().GetY())); in MakeRRect()
|