/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/tip/ |
H A D | rosen_render_tip.cpp | 111 …path_.lineTo(globalArrowPosition.GetX() + (childHalfWidth - NormalizeToPx(border_.BottomRightRadiu… in PaintTopTip() 120 … globalArrowPosition.GetX() + childHalfWidth - NormalizeToPx(border_.TopRightRadius().GetX()), in PaintTopTip() 122 …path_.lineTo(globalArrowPosition.GetX() - (childHalfWidth - NormalizeToPx(border_.TopLeftRadius().… in PaintTopTip() 131 … globalArrowPosition.GetX() - (childHalfWidth - NormalizeToPx(border_.BottomLeftRadius().GetX())), in PaintTopTip() 179 … globalArrowPosition.GetX() + childHalfWidth - NormalizeToPx(border_.TopRightRadius().GetX()), in PaintTopTip() 181 …path_.LineTo(globalArrowPosition.GetX() - (childHalfWidth - NormalizeToPx(border_.TopLeftRadius().… in PaintTopTip() 190 … globalArrowPosition.GetX() - (childHalfWidth - NormalizeToPx(border_.BottomLeftRadius().GetX())), in PaintTopTip() 237 globalArrowPosition.GetX() - bubbleSpacing - NormalizeToPx(border_.TopRightRadius().GetX()), in PaintLeftTip() 251 …path_.lineTo(globalArrowPosition.GetX() - bubbleSpacing - NormalizeToPx(border_.BottomRightRadius(… in PaintLeftTip() 297 globalArrowPosition.GetX() - bubbleSpacing - NormalizeToPx(border_.TopRightRadius().GetX()), in PaintLeftTip() [all …]
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/bubble/ |
H A D | rosen_render_bubble.cpp | 66 …RSRect rect = RSRect(childOffset_.GetX(), childOffset_.GetY(), childSize_.Width() + childOffset_.G… in MakeRRect() 274 arrowPosition_.GetX() + childHalfWidth - NormalizeToPx(border_.TopRightRadius().GetX()), in PaintTopBubbleInJs() 276 …path_.lineTo(arrowPosition_.GetX() - (childHalfWidth - NormalizeToPx(border_.TopLeftRadius().GetX(… in PaintTopBubbleInJs() 285 arrowPosition_.GetX() - (childHalfWidth - NormalizeToPx(border_.BottomLeftRadius().GetX())), in PaintTopBubbleInJs() 335 arrowPosition_.GetX() + childHalfWidth - NormalizeToPx(border_.TopRightRadius().GetX()), in PaintTopBubbleInJs() 337 …path_.LineTo(arrowPosition_.GetX() - (childHalfWidth - NormalizeToPx(border_.TopLeftRadius().GetX(… in PaintTopBubbleInJs() 346 arrowPosition_.GetX() - (childHalfWidth - NormalizeToPx(border_.BottomLeftRadius().GetX())), in PaintTopBubbleInJs() 400 arrowPosition_.GetX() + childHalfWidth - NormalizeToPx(border_.BottomRightRadius().GetX()), in PaintBottomBubbleInJs() 411 arrowPosition_.GetX() - (childHalfWidth - NormalizeToPx(border_.TopLeftRadius().GetX())), in PaintBottomBubbleInJs() 461 arrowPosition_.GetX() + childHalfWidth - NormalizeToPx(border_.BottomRightRadius().GetX()), in PaintBottomBubbleInJs() [all …]
|
H A D | render_bubble.cpp | 175 accessibilityNode->SetLeft((offset.GetX()) * viewScale); in UpdateAccessibilityInfo() 452 childPosition = Offset(targetOffset_.GetX() - marginRight, in GetPositionWithPlacement() 466 childPosition = Offset(targetOffset_.GetX() - marginRight, in GetPositionWithPlacement() 641 childOffset_.GetX() + radius, childOffset_.GetY()); in BuildCornerPath() 699 arrowPosition_.GetX() + arrowOffset, arrowPosition_.GetY()); in BuildTopLinePath() 752 path.lineTo(childOffset_.GetX() + childSize_.Width(), in BuildRightLinePath() 782 path.LineTo(childOffset_.GetX() + childSize_.Width(), in BuildRightLinePath() 896 path.lineTo(childOffset_.GetX(), childOffset_.GetY() + radius); in BuildLeftLinePath() 925 path.LineTo(childOffset_.GetX(), childOffset_.GetY() + radius); in BuildLeftLinePath() 939 path.moveTo(childOffset_.GetX() + radiusPx, childOffset_.GetY()); in BuildCompletePath() [all …]
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/test/2d_graphics/unittest/utils/ |
H A D | point_test.cpp | 50 EXPECT_EQ(0.0f, pointf->GetX()); 66 EXPECT_EQ(pointf1.GetX(), pointf2.GetX()); 81 EXPECT_EQ(pointf1.GetX(), pointf2.GetX()); 94 EXPECT_EQ(1.0f, pointf->GetX()); 108 EXPECT_EQ(2.0f, pointf->GetX()); 123 EXPECT_EQ(1.0f, pointf->GetX()); 137 EXPECT_EQ(2.0f, pointf->GetX()); 180 EXPECT_EQ(1.0f, pointf1.GetX()); 196 EXPECT_EQ(2.0f, pointf1.GetX()); 574 EXPECT_EQ(pointi1.GetX(), pointi2.GetX()); [all …]
|
H A D | point3_test.cpp | 50 EXPECT_EQ(0.0f, point3->GetX()); 95 EXPECT_EQ(1.0f, point3->GetX()); 110 EXPECT_EQ(4.0f, point3->GetX()); 126 EXPECT_EQ(1.0f, point3->GetX()); 140 EXPECT_EQ(2.0f, point3->GetX()); 211 EXPECT_EQ(1.0f, point1.GetX()); 228 EXPECT_EQ(3.0f, point1.GetX()); 278 EXPECT_EQ(2.0f, point3.GetX()); 294 EXPECT_EQ(6.0f, point3.GetX()); 310 EXPECT_EQ(1.0f, point3.GetX()); [all …]
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/slider/ |
H A D | slider_tip_modifier.cpp | 125 vertex_.GetX() + in PaintText() 129 vertex_.GetX() - in PaintText() 147 path.MoveTo(vertex_.GetX(), vertex_.GetY()); in PaintHorizontalBubble() 159 path.MoveTo(vertex_.GetX(), vertex_.GetY()); in PaintHorizontalBubble() 182 if (sliderGlobalOffset_->Get().GetX() + vertex_.GetX() < bubbleSize_.Width() || in PaintVerticalBubble() 186 path.MoveTo(vertex_.GetX(), vertex_.GetY()); in PaintVerticalBubble() 203 path.MoveTo(vertex_.GetX(), vertex_.GetY()); in PaintVerticalBubble() 233 path.MoveTo(vertex_.GetX(), vertex_.GetY()); in PaintHorizontalBubbleSuitableAging() 257 path.MoveTo(vertex_.GetX(), vertex_.GetY()); in PaintHorizontalBubbleSuitableAging() 291 if (sliderGlobalOffset_->Get().GetX() + vertex_.GetX() < bubbleSize_.Width() || in PaintVerticalBubbleSuitableAging() [all …]
|
/ohos5.0/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 90 EXPECT_EQ(view2->GetX(), 250); // 250: view x after layout 94 EXPECT_EQ(view4->GetX(), view1->GetX()); 129 EXPECT_EQ(view1->GetX(), 50); // 50: view x after layout 131 EXPECT_EQ(view2->GetX(), view1->GetX()); 135 EXPECT_EQ(view4->GetX(), view3->GetX()); 172 EXPECT_EQ(view2->GetX(), view1->GetX()); 176 EXPECT_EQ(view4->GetX(), view3->GetX()); 213 EXPECT_EQ(view2->GetX(), view1->GetX()); [all …]
|
H A D | flex_layout_unit_test.cpp | 30 EXPECT_EQ(view->GetX(), 0); in CreatView() 83 EXPECT_EQ(view1->GetX(), 0); 118 EXPECT_EQ(view1->GetX(), 0); 223 EXPECT_EQ(view1->GetX(), 0); 225 EXPECT_EQ(view2->GetX(), 0); 227 EXPECT_EQ(view3->GetX(), 0); 258 EXPECT_EQ(view1->GetX(), 0); 260 EXPECT_EQ(view2->GetX(), 0); 262 EXPECT_EQ(view3->GetX(), 0); 293 EXPECT_EQ(view1->GetX(), 0); [all …]
|
/ohos5.0/foundation/arkui/ace_engine/adapter/ohos/entrance/window/ |
H A D | drag_window_ohos.cpp | 567 path.moveTo(textPattern->GetStartOffset().GetX() - globalOffset.GetX(), in DrawTextNG() 569 path.lineTo(textPattern->GetEndOffset().GetX() - globalOffset.GetX(), in DrawTextNG() 571 path.lineTo(textPattern->GetEndOffset().GetX() - globalOffset.GetX(), in DrawTextNG() 573 path.lineTo(textPattern->GetStartOffset().GetX() - globalOffset.GetX(), in DrawTextNG() 575 path.lineTo(textPattern->GetStartOffset().GetX() - globalOffset.GetX(), in DrawTextNG() 584 path.lineTo(textPattern->GetEndOffset().GetX() - globalOffset.GetX(), in DrawTextNG() 586 path.lineTo(textPattern->GetEndOffset().GetX() - globalOffset.GetX(), in DrawTextNG() 608 path.LineTo(textPattern->GetEndOffset().GetX() - globalOffset.GetX(), in DrawTextNG() 610 path.LineTo(textPattern->GetEndOffset().GetX() - globalOffset.GetX(), in DrawTextNG() 623 path.LineTo(textPattern->GetEndOffset().GetX() - globalOffset.GetX(), in DrawTextNG() [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() 64 …path.addArc({ center.GetX() - progressOffset, center.GetY() - radius, center.GetX() + progressOffs… 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() 74 …path.addArc({ center.GetX() - progressOffset, center.GetY() - radius, center.GetX() + progressOffs… 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() 95 path.AddArc(RSRect(center.GetX() - progressOffset, 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 | 119 … const double startRect = leftToRight_ ? offset.GetX() : offset.GetX() + GetLayoutSize().Width(); in Paint() 146 startRect = offset.GetX(); in Paint() 163 … const double startRect = leftToRight_ ? offset.GetX() : offset.GetX() + GetLayoutSize().Width(); in Paint() 183 … RSRoundRect selectRect(RSRect(offset.GetX(), startRect, offset.GetX() + trackHeight, endRect), in Paint() 193 startRect = offset.GetX(); in Paint() 259 double current = offset.GetX(); in PaintSliderSteps() 271 dxOffset = std::clamp(current, offset.GetX(), offset.GetX() + trackLength); in PaintSliderSteps() 306 double current = offset.GetX(); in PaintSliderSteps() 317 dxOffset = std::clamp(current, offset.GetX(), offset.GetX() + trackLength); in PaintSliderSteps() 363 canvas->drawLine(offset.GetX(), dyOffset, offset.GetX() + trackLength, dyOffset, railPaint); in PaintSliderTrack() [all …]
|
/ohos5.0/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.Widt… in ConvertDataToPosition() 579 double end = startGradientPoint_.GetX(); in PaintLineEdge() 581 end = startOffset_.GetX() + paintWidth_; in PaintLineEdge() 615 double end = startGradientPoint_.GetX(); in PaintLineEdge() 694 return Offset(cur.GetX() + (next.GetX() - prev.GetX()) / BEZIER_CONSTANT, in CalculateControlA() 700 return Offset(next.GetX() - (nextNext.GetX() - cur.GetX()) / BEZIER_CONSTANT, in CalculateControlB() 717 …if (point.GetX() > horizontal_.max || point.GetX() < horizontal_.min || point.GetY() > vertical_.m… 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() 841 canvas->drawLine(offset.GetX() + tickPosition, offset.GetY(), offset.GetX() + tickPosition, in PaintHorizontalAxis() [all …]
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/checkable/ |
H A D | rosen_render_checkbox.cpp | 190 double originX = origin.GetX(); in DrawPartSelect() 207 double originX = origin.GetX(); in DrawPartSelect() 275 double originX = origin.GetX(); in DrawCheck() 380 double deltaX = middle.GetX() - start.GetX(); in DrawAnimationOffToOn() 394 deltaX = end.GetX() - middle.GetX(); in DrawAnimationOffToOn() 424 deltaX = end.GetX() - middle.GetX(); in DrawAnimationOffToOn() 469 double deltaX = middlePoint.GetX() - start.GetX(); in DrawAnimationOnToOff() 474 deltaX = middlePoint.GetX() - middle.GetX(); in DrawAnimationOnToOff() 480 deltaX = end.GetX() - middlePoint.GetX(); in DrawAnimationOnToOff() 487 deltaX = middlePoint.GetX() - middle.GetX(); in DrawAnimationOnToOff() [all …]
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/swiper/ |
H A D | rosen_render_swiper.cpp | 431 offset.GetX() + indicatorPosition_.GetX() + 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() 556 rRect.offset(position.GetX() + offset.GetX(), position.GetY() + offset.GetY()); in DrawIndicatorHoverBackground() 569 rRect.Offset(position.GetX() + offset.GetX(), position.GetY() + offset.GetY()); in DrawIndicatorHoverBackground() 605 canvas->drawCircle(pointInfo.center.GetX() + offset.GetX() - pointInfo.animationMove.GetX(), in DrawIndicatorItems() 634 …canvas->DrawCircle(RSPoint(pointInfo.center.GetX() + offset.GetX() - pointInfo.animationMove.GetX(… in DrawIndicatorItems() 694 …position.GetX() + offset.GetX() + focusMove.GetX(), position.GetY() + offset.GetY() + focusMove.Ge… in GetRRect() 700 …position.GetX() + offset.GetX() + focusMove.GetX(), position.GetY() + offset.GetY() + focusMove.Ge… in GetRRect() 705 startOffset = position.GetX() + offset.GetX() + focusMove.GetX(); in GetRRect() [all …]
|
/ohos5.0/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); 177 EXPECT_NE(point.GetX(), 0.0f); 280 EXPECT_EQ(velocityCtrlPointUpper[0].GetX(), 0.5f); 343 EXPECT_NE(upperControlPointOfVertex1[0].GetX(), upperControlPointOfVertex2[0].GetX()); 344 EXPECT_EQ(upperControlPointOfVertex1[1].GetX(), upperControlPointOfVertex2[1].GetX()); 345 EXPECT_NE(upperControlPointOfVertex1[2].GetX(), upperControlPointOfVertex2[2].GetX()); 346 EXPECT_EQ(upperControlPointOfVertex1[3].GetX(), upperControlPointOfVertex2[3].GetX()); 375 EXPECT_NE(upperControlPointOfVertex1[0].GetX(), upperControlPointOfVertex2[0].GetX()); 376 EXPECT_NE(upperControlPointOfVertex1[1].GetX(), upperControlPointOfVertex2[1].GetX()); 377 EXPECT_NE(upperControlPointOfVertex1[2].GetX(), upperControlPointOfVertex2[2].GetX()); [all …]
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/bubble/ |
H A D | bubble_paint_method.cpp | 345 …rect.GetRect(), border_.TopLeftRadius().GetX().ConvertToPx(), border_.TopRightRadius().GetX().Conv… in PaintDefaultBubble() 355 …auto rect = RSRect(childOffset_.GetX(), childOffset_.GetY(), childOffset_.GetX() + childSize_.Widt… in MakeRRect() 467 …childOffset_.GetX() + popupTheme->GetRadius().GetX().ConvertToPx() + ARROW_WIDTH.ConvertToPx() / 2; in BuildTopLinePath() 468 …auto rightOffset = childOffset_.GetX() + childSize_.Width() - popupTheme->GetRadius().GetX().Conve… in BuildTopLinePath() 546 childOffset_.GetX() + childSize_.Width() - radius, in BuildCornerPath() 551 childOffset_.GetX() + borderOffset, in BuildCornerPath() 635 …childOffset_.GetX() + popupTheme->GetRadius().GetX().ConvertToPx() + ARROW_WIDTH.ConvertToPx() / H… in BuildBottomLinePath() 636 …auto rightOffset = childOffset_.GetX() + childSize_.Width() - popupTheme->GetRadius().GetX().Conve… in BuildBottomLinePath() 702 path.LineTo(childOffset_.GetX() + borderOffset, in BuildLeftDoubleBorderPath() 727 path.LineTo(childOffset_.GetX() + borderOffset, in BuildLeftLinePath() [all …]
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/badge/ |
H A D | rosen_render_badge.cpp | 81 boundaryStartX = offset.GetX(); in DrawCircleBadge() 87 boundaryStartX = offset.GetX() + badgePositionX.ConvertToPx(); in DrawCircleBadge() 129 boundaryStartX = offset.GetX(); in DrawCircleBadge() 135 boundaryStartX = offset.GetX() + badgePositionX.ConvertToPx(); 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() 303 boundaryStartX = offset.GetX() + textInitialOffset_.GetX(); 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() 312 boundaryStartX = offset.GetX() + textInitialOffset_.GetX(); 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() 314 canvas->Rotate(startAngle, center.GetX(), center.GetY()); in PaintProgress() 356 …RSRect endOval(center.GetX() - thickness / 2, center.GetY() - radius, center.GetX() - 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 …canvas->DrawRect(RSRect(leftTop.GetX(), leftTop.GetY(), totalWidth + leftTop.GetX(), height + left… in PaintBackground() [all …]
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/text_field/ |
H A D | text_input_ai_checker.cpp | 56 if (textRect.GetX() - FLOAT_DIFF_COMPARE <= handleOffset.GetX() && in IsMultiClickAtBoundary() 57 handleOffset.GetX() <= textRect.GetX() + FLOAT_DIFF_COMPARE) { in IsMultiClickAtBoundary() 59 handleOffset.GetX(), textRect.GetX()); in IsMultiClickAtBoundary() 63 auto edge = textRect.GetX() + textRect.Width(); in IsMultiClickAtBoundary() 64 if (handleOffset.GetX() >= edge - FLOAT_DIFF_COMPARE) { in IsMultiClickAtBoundary() 66 handleOffset.GetX(), edge); in IsMultiClickAtBoundary()
|
/ohos5.0/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().ConvertTo… in DrawRect() 44 …radiusXY[3].SetX(static_cast<float>(rectPaintProperty.GetBottomLeftRadiusValue().GetX().ConvertToP… 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()), 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 …canvas->DrawLine(RSPoint(startPoint.GetX(), startPoint.GetY()), RSPoint(endPoint.GetX(), endPoint.… in PaintHandle() 193 … globalX = textFieldGlobalOffset.GetX() + caretRect.GetOffset().GetX() + caretRect.Width() / 2 - in PaintMagnifier() 205 … globalX = textFieldGlobalOffset.GetX() + caretRect.GetOffset().GetX() + caretRect.Width() / 2 - 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/ace_engine/frameworks/core/components_ng/pattern/rating/ |
H A D | rating_modifier.cpp | 84 …const RSRect rsRect(offset.GetX() + singleStarWidth * static_cast<float>(touchStar), offset.GetY(), in PaintBoard() 117 auto clipRect1 = RSRect(offset.GetX(), offsetTemp.GetY(), in PaintStar() 118 …static_cast<float>(offset.GetX() + singleStarWidth * drawScore), offset.GetY() + singleStarHeight); in PaintStar() 122 offsetTemp.SetX(static_cast<float>(offsetTemp.GetX() + singleStarWidth)); in PaintStar() 130 …static_cast<float>(offset.GetX() + singleStarWidth * static_cast<float>(foregroundImageRepeatNum)), in PaintStar() 134 offsetTemp.SetX(static_cast<float>(offsetTemp.GetX() - singleStarWidth)); in PaintStar() 136 offsetTemp.SetX(offsetTemp.GetX() + singleStarWidth); in PaintStar() 144 offsetTemp.SetX(offsetTemp.GetX() + singleStarWidth); in PaintStar() 171 offsetTemp.SetX(offsetTemp.GetX() + singleStarWidth); in PaintReverseStar() 185 … offsetTemp.GetY(), offset.GetX() + singleStarWidth * starNum, offset.GetY() + singleStarHeight); in PaintReverseStar() [all …]
|
/ohos5.0/foundation/arkui/ui_lite/test/unittest/components/ |
H A D | ui_view_unit_test.cpp | 347 EXPECT_EQ(view_->GetX(), 0); 349 EXPECT_EQ(view_->GetX(), POS_X); 383 EXPECT_EQ(view_->GetX(), 0); 386 EXPECT_EQ(view_->GetX(), POS_X); 405 EXPECT_EQ(view_->GetX(), 0); 410 EXPECT_EQ(view_->GetX(), POS_X); 429 EXPECT_EQ(view_->GetX(), POS_X); 865 EXPECT_EQ(view_->GetX(), 0); 1064 EXPECT_EQ(0, view_->GetX()); 1094 EXPECT_EQ(0, rect.GetX()); [all …]
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_v2/pattern_lock/ |
H A D | rosen_render_pattern_lock.cpp | 51 double offsetX = cellcenter.GetX(); in PaintLockCircle() 89 double offsetX = cellcenter.GetX(); in PaintLockCircle() 162 …canvas->drawLine(pointBegin.GetX(), pointBegin.GetY(), pointEnd.GetX(), pointEnd.GetY(), skPaintSt… in PaintLockLine() 167 double x1 = pointBegin.GetX(); in PaintLockLine() 169 double x2 = offset.GetX() + cellCenter_.GetX(); in PaintLockLine() 171 …x2 = x2 > offset.GetX() + NormalizeToPx(sideLength_) ? offset.GetX() + NormalizeToPx(sideLength_) … in PaintLockLine() 172 x2 = x2 < offset.GetX() ? offset.GetX() : x2; in PaintLockLine() 222 double x1 = pointBegin.GetX(); in PaintLockLine() 224 double x2 = offset.GetX() + cellCenter_.GetX(); in PaintLockLine() 226 …x2 = x2 > offset.GetX() + NormalizeToPx(sideLength_) ? offset.GetX() + NormalizeToPx(sideLength_) … in PaintLockLine() [all …]
|
/ohos5.0/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() 110 path.LineTo(static_cast<RSScalar>(barRightPoint_.GetX() * scaleX_ + totalOffset.GetX()), in Paint()
|