/foundation/arkui/ace_engine/frameworks/core/components/tip/ |
H A D | rosen_render_tip.cpp | 98 path_.moveTo(globalArrowPosition.GetX() + arrowOffset, globalArrowPosition.GetY()); in PaintTopTip() 99 path_.quadTo(globalArrowPosition.GetX() + NormalizeToPx(BEZIER_HORIZON_OFFSET_FIRST) + arrowOffset, in PaintTopTip() 101 globalArrowPosition.GetX() + NormalizeToPx(BEZIER_HORIZON_OFFSET_SECOND) + arrowOffset, in PaintTopTip() 103 path_.quadTo(globalArrowPosition.GetX() + NormalizeToPx(BEZIER_HORIZON_OFFSET_THIRD) + arrowOffset, in PaintTopTip() 105 globalArrowPosition.GetX() + NormalizeToPx(BEZIER_HORIZON_OFFSET_FOURTH) + arrowOffset, in PaintTopTip() 107 path_.lineTo(globalArrowPosition.GetX() + (childHalfWidth - NormalizeToPx(border_.BottomRightRadius().GetX())), in PaintTopTip() 109 path_.arcTo(NormalizeToPx(border_.BottomRightRadius().GetX()), NormalizeToPx(border_.BottomRightRadius().GetY()), in PaintTopTip() 110 0.0f, SkPath::ArcSize::kSmall_ArcSize, SkPathkCCWDirection, globalArrowPosition.GetX() + childHalfWidth, in PaintTopTip() 112 path_.lineTo(globalArrowPosition.GetX() in PaintTopTip() [all...] |
/foundation/arkui/ace_engine/frameworks/core/components/track/ |
H A D | rosen_render_moon_track.cpp | 57 canvas->drawCircle(center.GetX(), center.GetY(), radius, backgroundPaint); in Paint() 60 path.moveTo(center.GetX(), center.GetY() - radius); in Paint() 61 path.addArc({ center.GetX() - radius, center.GetY() - radius, center.GetX() + radius, center.GetY() + radius }, in Paint() 64 path.addArc({ center.GetX() - progressOffset, center.GetY() - radius, center.GetX() + progressOffset, 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() + radius }, in Paint() 74 path.addArc({ center.GetX() in Paint() [all...] |
H A D | rosen_render_linear_track.cpp | 69 const RSPoint gradientPoints[2] = { { pts.GetX() - scanLeftOffset, pts.GetY() }, 70 { pts.GetX() + scanRightOffset, pts.GetY() } }; 118 const double startRect = leftToRight_ ? offset.GetX() : offset.GetX() + GetLayoutSize().Width(); in Paint() 137 SkRRect selectRect = SkRRect::MakeRectXY({ offset.GetX(), startRect, offset.GetX() + trackHeight, endRect }, in Paint() 140 BlendSkShader({ offset.GetX(), startRect }, GetSelectColor().GetValue(), playAnimation_)); in Paint() 145 startRect = offset.GetX(); in Paint() 148 startRect = offset.GetX() + GetLayoutSize().Width(); in Paint() 162 const double startRect = leftToRight_ ? offset.GetX() in Paint() [all...] |
/foundation/arkui/ui_lite/test/unittest/layout/ |
H A D | grid_layout_unit_test.cpp | 30 EXPECT_EQ(view->GetX(), 0);
in CreatView() 88 EXPECT_EQ(view1->GetX(), 50); // 50: view x after layout
in HWTEST_F() 90 EXPECT_EQ(view2->GetX(), 250); // 250: view x after layout
in HWTEST_F() 92 EXPECT_EQ(view3->GetX(), 450); // 450: view x after layout
in HWTEST_F() 94 EXPECT_EQ(view4->GetX(), view1->GetX());
in HWTEST_F() 129 EXPECT_EQ(view1->GetX(), 50); // 50: view x after layout
in HWTEST_F() 131 EXPECT_EQ(view2->GetX(), view1->GetX());
in HWTEST_F() 133 EXPECT_EQ(view3->GetX(), 25 in HWTEST_F() [all...] |
H A D | flex_layout_unit_test.cpp | 30 EXPECT_EQ(view->GetX(), 0);
in CreatView() 83 EXPECT_EQ(view1->GetX(), 0);
in HWTEST_F() 85 EXPECT_EQ(view2->GetX(), 100); // 100: view x after layout
in HWTEST_F() 87 EXPECT_EQ(view3->GetX(), 200); // 200: view x after layout
in HWTEST_F() 118 EXPECT_EQ(view1->GetX(), 0);
in HWTEST_F() 120 EXPECT_EQ(view2->GetX(), 100); // 100: view x after layout
in HWTEST_F() 122 EXPECT_EQ(view3->GetX(), 200); // 200: view x after layout
in HWTEST_F() 153 EXPECT_EQ(view1->GetX(), 500); // 500: view x after layout
in HWTEST_F() 155 EXPECT_EQ(view2->GetX(), 400); // 400: view x after layout
in HWTEST_F() 157 EXPECT_EQ(view3->GetX(), 30 in HWTEST_F() [all...] |
/foundation/arkui/ace_engine/frameworks/core/components/bubble/ |
H A D | rosen_render_bubble.cpp | 49 SkRect rect = SkRect::MakeXYWH(childOffset_.GetX(), childOffset_.GetY(), childSize_.Width(), childSize_.Height()); in MakeRRect() 53 SkPoint::Make(NormalizeToPx(border_.TopLeftRadius().GetX()), NormalizeToPx(border_.TopLeftRadius().GetY())); in MakeRRect() 55 SkPoint::Make(NormalizeToPx(border_.TopRightRadius().GetX()), NormalizeToPx(border_.TopRightRadius().GetY())); in MakeRRect() 57 NormalizeToPx(border_.BottomRightRadius().GetX()), NormalizeToPx(border_.BottomRightRadius().GetY())); in MakeRRect() 59 NormalizeToPx(border_.BottomLeftRadius().GetX()), NormalizeToPx(border_.BottomLeftRadius().GetY())); in MakeRRect() 66 RSRect rect = RSRect(childOffset_.GetX(), childOffset_.GetY(), childSize_.Width() + childOffset_.GetX(), in MakeRRect() 71 RSPoint(NormalizeToPx(border_.TopLeftRadius().GetX()), NormalizeToPx(border_.TopLeftRadius().GetY()))); in MakeRRect() 73 RSPoint(NormalizeToPx(border_.TopRightRadius().GetX()), NormalizeToPx(border_.TopRightRadius().GetY()))); in MakeRRect() 75 RSPoint(NormalizeToPx(border_.BottomRightRadius().GetX()), NormalizeToP in MakeRRect() [all...] |
H A D | render_bubble.cpp | 175 accessibilityNode->SetLeft((offset.GetX()) * viewScale); in UpdateAccessibilityInfo() 353 std::max(NormalizePercentToPx(padding_.Left(), false), NormalizeToPx(border_.TopLeftRadius().GetX())) - in InitArrowState() 354 std::max(NormalizePercentToPx(padding_.Right(), false), NormalizeToPx(border_.TopRightRadius().GetX())), in InitArrowState() 358 std::max(NormalizePercentToPx(padding_.Left(), false), NormalizeToPx(border_.BottomLeftRadius().GetX())) - in InitArrowState() 359 std::max(NormalizePercentToPx(padding_.Right(), false), NormalizeToPx(border_.BottomRightRadius().GetX())), in InitArrowState() 370 NormalizeToPx(border_.TopLeftRadius().GetX())) + in InitArrowTopAndBottomPosition() 374 NormalizeToPx(border_.BottomLeftRadius().GetX())) + in InitArrowTopAndBottomPosition() 379 topArrowPosition = Offset(targetOffset_.GetX() + targetSize_.Width() / 2.0, in InitArrowTopAndBottomPosition() 381 bottomArrowPosition = Offset(targetOffset_.GetX() + targetSize_.Width() / 2.0, in InitArrowTopAndBottomPosition() 389 Offset bottomPosition = Offset(targetOffset_.GetX() in GetChildPosition() [all...] |
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/slider/ |
H A D | slider_tip_modifier.cpp | 115 textOffset_.SetX(vertex_.GetX() - textSize.Width() * HALF); in PaintText() 125 vertex_.GetX() + in PaintText() 129 vertex_.GetX() - in PaintText() 133 paragraph_->Paint(context.canvas, textOffset_.GetX(), textOffset_.GetY()); in PaintText() 147 path.MoveTo(vertex_.GetX(), vertex_.GetY()); in PaintHorizontalBubble() 148 path.ArcTo(arrowRadius, arrowRadius, 0.0f, RSPathDirection::CW_DIRECTION, vertex_.GetX() + arrowHorizonOffset, in PaintHorizontalBubble() 150 path.LineTo(vertex_.GetX() + arrowSizeWidth * HALF, vertex_.GetY() + arrowSizeHeight); in PaintHorizontalBubble() 152 vertex_.GetX() + arrowSizeWidth * HALF, vertex_.GetY() + bubbleSize_.Height()); in PaintHorizontalBubble() 153 path.LineTo(vertex_.GetX() - arrowSizeWidth * HALF, vertex_.GetY() + bubbleSize_.Height()); in PaintHorizontalBubble() 155 vertex_.GetX() in PaintHorizontalBubble() [all...] |
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/text_field/ |
H A D | text_input_ai_checker.cpp | 54 if (textRect.GetX() - FLOAT_DIFF_COMPARE <= handleOffset.GetX() && in IsMultiClickAtBoundary() 55 handleOffset.GetX() <= textRect.GetX() + FLOAT_DIFF_COMPARE) { in IsMultiClickAtBoundary() 57 handleOffset.GetX(), textRect.GetX()); in IsMultiClickAtBoundary() 61 auto edge = textRect.GetX() + textRect.Width(); in IsMultiClickAtBoundary() 62 if (handleOffset.GetX() >= edge - FLOAT_DIFF_COMPARE) { in IsMultiClickAtBoundary() 64 handleOffset.GetX(), edge); in IsMultiClickAtBoundary()
|
/foundation/graphic/graphic_2d/rosen/test/2d_graphics/unittest/utils/ |
H A D | point_test.cpp | 50 EXPECT_EQ(0.0f, pointf->GetX()); in HWTEST_F() 66 EXPECT_EQ(pointf1.GetX(), pointf2.GetX()); in HWTEST_F() 81 EXPECT_EQ(pointf1.GetX(), pointf2.GetX()); in HWTEST_F() 94 EXPECT_EQ(1.0f, pointf->GetX()); in HWTEST_F() 108 EXPECT_EQ(2.0f, pointf->GetX()); in HWTEST_F() 123 EXPECT_EQ(1.0f, pointf->GetX()); in HWTEST_F() 137 EXPECT_EQ(2.0f, pointf->GetX()); in HWTEST_F() 180 EXPECT_EQ(1.0f, pointf1.GetX()); in HWTEST_F() [all...] |
H A D | point3_test.cpp | 50 EXPECT_EQ(0.0f, point3->GetX()); in HWTEST_F() 95 EXPECT_EQ(1.0f, point3->GetX()); in HWTEST_F() 110 EXPECT_EQ(4.0f, point3->GetX()); in HWTEST_F() 126 EXPECT_EQ(1.0f, point3->GetX()); in HWTEST_F() 140 EXPECT_EQ(2.0f, point3->GetX()); in HWTEST_F() 211 EXPECT_EQ(1.0f, point1.GetX()); in HWTEST_F() 228 EXPECT_EQ(3.0f, point1.GetX()); in HWTEST_F() 245 EXPECT_EQ(-1.0f, point1.GetX()); in HWTEST_F() 262 EXPECT_EQ(-3.0f, point1.GetX()); in HWTEST_F() 278 EXPECT_EQ(2.0f, point3.GetX()); in HWTEST_F() [all...] |
/foundation/arkui/ace_engine/frameworks/core/components_ng/render/ |
H A D | rect_painter.cpp | 32 radiusXY[0].SetX(static_cast<float>(rectPaintProperty.GetTopLeftRadiusValue().GetX().ConvertToPx())); in DrawRect() 36 radiusXY[1].SetX(static_cast<float>(rectPaintProperty.GetTopRightRadiusValue().GetX().ConvertToPx())); in DrawRect() 40 radiusXY[2].SetX(static_cast<float>(rectPaintProperty.GetBottomRightRadiusValue().GetX().ConvertToPx())); in DrawRect() 44 radiusXY[3].SetX(static_cast<float>(rectPaintProperty.GetBottomLeftRadiusValue().GetX().ConvertToPx())); in DrawRect() 49 if (Negative(radius.GetX()) && NonNegative(radius.GetY())) { in DrawRect() 53 if (Negative(radius.GetY()) && NonNegative(radius.GetX())) { in DrawRect() 54 radius.SetY(radius.GetX()); in DrawRect() 60 RSRect(rect.GetX(), rect.GetY(), rect.Width() + rect.GetX(), rect.Height() + rect.GetY()), radiusXY); in DrawRect()
|
/foundation/arkui/ace_engine/frameworks/core/components/chart/ |
H A D | rosen_render_chart.cpp | 69 return Offset(paintRegion.GetOffset().GetX() + (point.GetX() - horizontal_.min) * paintRegion.Width() / xLength, in ConvertDataToPosition() 85 Rect(offset.GetX(), offset.GetY(), GetLayoutSize().Width() * 0.1, GetLayoutSize().Height()); in Paint() 87 Rect(offset.GetX(), offset.GetY() + GetLayoutSize().Height() - GetLayoutSize().Height() * 0.1, in Paint() 91 dataRegion = Rect(offset.GetX() + EDGE_PADDING, offset.GetY() + DOUBLE_TEXT_PADDING, in Paint() 96 dataRegion = Rect(offset.GetX() + tickHorizontalOffset_ + EDGE_PADDING, offset.GetY() + EDGE_PADDING, in Paint() 217 paragraph->Paint(canvas, pointPosition.GetX() - textSize.Width() / 2, in PaintText() 220 paragraph->Paint(canvas, pointPosition.GetX() - textSize.Width() / 2, in PaintText() 252 canvas->drawCircle(offset.GetX(), offset.GetY(), innerRadius, paint); in PaintPoint() 254 canvas->drawCircle(offset.GetX(), offse in PaintPoint() [all...] |
/foundation/arkui/ace_engine/frameworks/core/components/checkable/ |
H A D | rosen_render_checkbox.cpp | 153 double originX = origin.GetX(); in DrawPartSelect() 160 path.MoveTo(originX + start.GetX(), originY + start.GetY()); in DrawPartSelect() 161 path.LineTo(originX + end.GetX(), originY + end.GetY()); in DrawPartSelect() 201 double originX = origin.GetX(); in DrawCheck() 210 path.MoveTo(originX + start.GetX(), originY + start.GetY()); in DrawCheck() 211 path.LineTo(originX + middle.GetX(), originY + middle.GetY()); in DrawCheck() 221 path.MoveTo(originX + middle.GetX(), originY + middle.GetY()); in DrawCheck() 222 path.LineTo(originX + end.GetX(), originY + end.GetY()); in DrawCheck() 235 double originX = origin.GetX(); in DrawBorder() 248 double originX = origin.GetX(); in DrawAnimationOffToOn() [all...] |
/foundation/arkui/ace_engine/frameworks/core/components/badge/ |
H A D | rosen_render_badge.cpp | 71 rRect.offset(offset.GetX() + width_ - badgeCircleDiameter_, offset.GetY()); in DrawCircleBadge() 72 boundaryStartX = offset.GetX() + width_ - badgeCircleDiameter_; in DrawCircleBadge() 76 offset.GetX() + width_ - badgeCircleDiameter_, offset.GetY() + height_ / 2 - badgeCircleRadius_); in DrawCircleBadge() 77 boundaryStartX = offset.GetX() + width_ - badgeCircleDiameter_; in DrawCircleBadge() 80 rRect.offset(offset.GetX(), offset.GetY() + height_ / 2 - badgeCircleRadius_); in DrawCircleBadge() 81 boundaryStartX = offset.GetX(); in DrawCircleBadge() 87 boundaryStartX = offset.GetX() + badgePositionX.ConvertToPx(); in DrawCircleBadge() 119 rRect.Offset(offset.GetX() + width_ - badgeCircleDiameter_, offset.GetY()); in DrawCircleBadge() 120 boundaryStartX = offset.GetX() + width_ - badgeCircleDiameter_; in DrawCircleBadge() 124 offset.GetX() in DrawCircleBadge() [all...] |
/foundation/arkui/ace_engine/frameworks/core/components_ng/manager/drag_drop/ |
H A D | drag_drop_proxy.cpp | 40 auto point = Point(info.GetGlobalPoint().GetX(), info.GetGlobalPoint().GetY(), info.GetScreenLocation().GetX(), in OnDragStart() 42 auto pointerEvent = PointerEvent(info.GetGlobalPoint().GetX(), info.GetGlobalPoint().GetY(), in OnDragStart() 43 info.GetScreenLocation().GetX(), info.GetScreenLocation().GetY()); in OnDragStart() 58 manager->OnDragMove(PointerEvent(info.GetGlobalPoint().GetX(), info.GetGlobalPoint().GetY(), in OnDragMove() 59 info.GetScreenLocation().GetX(), info.GetScreenLocation().GetY()), extraInfo); in OnDragMove() 71 manager->OnTextDragEnd(static_cast<float>(info.GetGlobalPoint().GetX()), in OnDragEnd() 74 manager->OnDragEnd(PointerEvent(info.GetGlobalPoint().GetX(), info.GetGlobalPoint().GetY(), in OnDragEnd() 75 info.GetScreenLocation().GetX(), info.GetScreenLocation().GetY()), extraInfo); in OnDragEnd() 98 static_cast<float>(info.GetGlobalPoint().GetX()), static_cas in OnItemDragStart() [all...] |
/foundation/arkui/ace_engine/frameworks/core/components/drag_bar/ |
H A D | rosen_render_drag_bar.cpp | 75 path.moveTo(SkDoubleToScalar(barLeftPoint_.GetX() * scaleX_ + totalOffset.GetX()), in Paint() 77 path.lineTo(SkDoubleToScalar(barCenterPoint_.GetX() * scaleX_ + totalOffset.GetX()), in Paint() 79 path.lineTo(SkDoubleToScalar(barRightPoint_.GetX() * scaleX_ + totalOffset.GetX()), in Paint() 106 path.MoveTo(static_cast<RSScalar>(barLeftPoint_.GetX() * scaleX_ + totalOffset.GetX()), in Paint() 108 path.LineTo(static_cast<RSScalar>(barCenterPoint_.GetX() * scaleX_ + totalOffset.GetX()), in Paint() [all...] |
/foundation/arkui/ace_engine/frameworks/core/components/shadow/ |
H A D | rosen_render_shadow.cpp | 52 canvas->clipRect(SkRect::MakeXYWH(clipRect_.GetOffset().GetX() - NormalizeToPx(SHADOW_OFFSET) / 2, in Paint() 57 clipRect_.GetOffset().GetX() - NormalizeToPx(SHADOW_OFFSET) / 2, in Paint() 59 clipRect_.Width() + NormalizeToPx(SHADOW_OFFSET) / 2 + clipRect_.GetOffset().GetX(), in Paint() 65 double radiusX = NormalizeToPx(rrect_.GetCorner().bottomLeftRadius.GetX()); in Paint() 73 SkRect rect = SkRect::MakeXYWH(offset_.GetX(), offset_.GetY(), rrect_.Width(), rrect_.Height()); in Paint() 76 offset_.GetX(), offset_.GetY() + NormalizeToPx(SHADOW_OFFSET), rrect_.Width(), rrect_.Height()); in Paint() 89 offset_.GetX(), offset_.GetY(), offset_.GetX() + rrect_.Width(), offset_.GetY() + rrect_.Height()); in Paint() 91 rect = RSRect(offset_.GetX(), offset_.GetY() + NormalizeToPx(SHADOW_OFFSET), in Paint() 92 rrect_.Width() + offset_.GetX(), rrect in Paint() [all...] |
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/bubble/ |
H A D | bubble_paint_method.cpp | 129 canvas.Translate(childOffset_.GetX() + childSize_.Width() / 2.0, childOffset_.GetY() + childSize_.Height() / 2.0); in PaintBorder() 132 -(childOffset_.GetX() + childSize_.Width() / 2.0), -(childOffset_.GetY() + childSize_.Height() / 2.0)); in PaintBorder() 338 rsPath.Offset(shadow.GetOffset().GetX(), shadow.GetOffset().GetY()); in PaintShadow() 359 rect.GetRect(), border_.TopLeftRadius().GetX().ConvertToPx(), border_.TopRightRadius().GetX().ConvertToPx()); in PaintDefaultBubble() 369 auto rect = RSRect(childOffset_.GetX(), childOffset_.GetY(), childOffset_.GetX() + childSize_.Width(), in MakeRRect() 374 RSPoint(border_.TopLeftRadius().GetX().ConvertToPx(), border_.TopLeftRadius().GetY().ConvertToPx()); in MakeRRect() 376 RSPoint(border_.TopRightRadius().GetX().ConvertToPx(), border_.TopRightRadius().GetY().ConvertToPx()); in MakeRRect() 378 RSPoint(border_.BottomRightRadius().GetX() in MakeRRect() [all...] |
/foundation/arkui/ace_engine/adapter/ohos/entrance/window/ |
H A D | drag_window_ohos.cpp | 340 path.MoveTo(renderText->GetStartOffset().GetX() - renderText->GetGlobalOffset().GetX(), in DrawText() 342 path.LineTo(renderText->GetEndOffset().GetX() - renderText->GetGlobalOffset().GetX(), in DrawText() 344 path.LineTo(renderText->GetEndOffset().GetX() - renderText->GetGlobalOffset().GetX(), in DrawText() 346 path.LineTo(renderText->GetStartOffset().GetX() - renderText->GetGlobalOffset().GetX(), in DrawText() 348 path.LineTo(renderText->GetStartOffset().GetX() - renderText->GetGlobalOffset().GetX(), in DrawText() [all...] |
/foundation/arkui/ace_engine/frameworks/core/components/clip/ |
H A D | rosen_render_clip.cpp | 58 topLeftRadius_.GetX().ConvertToPx(dipScale), in SyncGeometryProperties() 59 topRightRadius_.GetX().ConvertToPx(dipScale), in SyncGeometryProperties() 60 bottomRightRadius_.GetX().ConvertToPx(dipScale), in SyncGeometryProperties() 61 bottomLeftRadius_.GetX().ConvertToPx(dipScale) in SyncGeometryProperties() 71 rsNode->SetBounds(clipOffset.GetX(), clipOffset.GetY(), clipWidth, clipHeight); in SyncGeometryProperties() 73 rsNode->SetFrame(paintOffset.GetX(), paintOffset.GetY(), paintSize.Width(), paintSize.Height()); in SyncGeometryProperties()
|
/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 SkPoint::Make(NormalizeToPx(border.TopLeftRadius().GetX()), NormalizeToPx(border.TopLeftRadius().GetY())); in MakeRRect() 95 SkPoint::Make(NormalizeToPx(border.TopRightRadius().GetX()), NormalizeToPx(border.TopRightRadius().GetY())); in MakeRRect() 97 NormalizeToPx(border.BottomRightRadius().GetX()), NormalizeToPx(border.BottomRightRadius().GetY())); in MakeRRect() 99 SkPoint::Make(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 NormalizeToPx(border.BottomRightRadius().GetX()), NormalizeToP in MakeRRect() [all...] |
/foundation/arkui/ace_engine/frameworks/bridge/cj_frontend/interfaces/cj_ffi/ |
H A D | cj_common_ffi.cpp | 45 ffiTouches.globalX = PipelineBase::Px2VpWithCurrentDensity(globalLoc.GetX()); in TransformNativeTouchLocationInfo() 48 ffiTouches.localX = PipelineBase::Px2VpWithCurrentDensity(localLoc.GetX()); in TransformNativeTouchLocationInfo() 61 ffiFingers.globalX = PipelineBase::Px2VpWithCurrentDensity(globalLoc.GetX()); in TransformNativeCJFingerInfo() 64 ffiFingers.localX = PipelineBase::Px2VpWithCurrentDensity(localLoc.GetX()); in TransformNativeCJFingerInfo() 77 position.x = localOffset.GetX().ConvertToVp(); in AssambleCJEventTarget() 79 globalPosition.x = origin.GetX().ConvertToVp() + localOffset.GetX().ConvertToVp(); in AssambleCJEventTarget() 80 globalPosition.y = origin.GetX().ConvertToVp() + localOffset.GetY().ConvertToVp(); in AssambleCJEventTarget() 96 clickInfo.x = localOffset.GetX() / currtDensity; in AssambleCJClickInfo() 98 clickInfo.windowX = globalOffset.GetX() / currtDensit in AssambleCJClickInfo() [all...] |
/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_base/unittest/render/ |
H A D | rs_attraction_effect_filter_test.cpp | 159 EXPECT_EQ(point.GetX(), 5.0f); in HWTEST_F() 177 EXPECT_NE(point.GetX(), 0.0f); in HWTEST_F() 279 EXPECT_EQ(velocityCtrlPointUpper[0].GetX(), 0.5f); in HWTEST_F() 280 EXPECT_EQ(velocityCtrlPointUpper[1].GetX(), 0.2f); in HWTEST_F() 285 EXPECT_EQ(velocityCtrlPointUpperBelow[0].GetX(), 0.5f); in HWTEST_F() 286 EXPECT_EQ(velocityCtrlPointUpperBelow[1].GetX(), 0.0f); in HWTEST_F() 303 EXPECT_EQ(velocityCtrlPointUpper[0].GetX(), 0.5f); in HWTEST_F() 304 EXPECT_EQ(velocityCtrlPointUpper[1].GetX(), 0.2f); in HWTEST_F() 309 EXPECT_EQ(velocityCtrlPointUpperBelow[0].GetX(), 0.5f); in HWTEST_F() 310 EXPECT_EQ(velocityCtrlPointUpperBelow[1].GetX(), 0. in HWTEST_F() [all...] |
/foundation/arkui/ace_engine/frameworks/core/components/text_overlay/ |
H A D | rosen_render_text_overlay.cpp | 79 if (isSingleHandle_ && clipRect_.IsInRegion(Point(startHandleOffset_.GetX(), startHandleOffset_.GetY()))) { in PaintHandles() 86 clipRect_.IsInRegion(Point(startHandleOffset_.GetX(), startHandleOffset_.GetY()))) { in PaintHandles() 93 if (showOption_.showEndHandle && clipRect_.IsInRegion(Point(endHandleOffset_.GetX(), endHandleOffset_.GetY()))) { in PaintHandles() 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 canvas->DrawLine(RSPoint(startPoint.GetX(), startPoint.GetY()), RSPoint(endPoint.GetX(), endPoint.GetY())); in PaintHandle() 193 globalX = textFieldGlobalOffset.GetX() in PaintMagnifier() [all...] |