/ohos5.0/foundation/graphic/graphic_2d/rosen/samples/2d_graphics/test/src/ |
H A D | path_test.cpp | 188 …path.CubicTo(rect.GetLeft(), rect.GetBottom(), rect.GetRight(), rect.GetTop(), rect.GetRight(), re… in TestCubicTo() 213 …path.QuadTo(rect.GetLeft() + rect.GetWidth() / 2.0f, rect.GetBottom(), rect.GetRight(), rect.GetTo… in TestQuadTo() 319 …Point(rect.GetLeft() + rect.GetWidth() / 2.0f, rect.GetBottom()), Point(rect.GetRight(), rect.GetT… in TestAddPoly() 405 …Rect rect1(rect.GetLeft(), rect.GetTop(), rect.GetRight(), rect.GetBottom() - rect.GetHeight() / 4… in TestFillStyle() 406 …Rect rect2(rect.GetLeft(), rect.GetTop() + rect.GetHeight() / 4.0f, rect.GetRight(), rect.GetBotto… in TestFillStyle() 428 …Rect rect1(rect.GetLeft(), rect.GetTop(), rect.GetRight(), rect.GetBottom() - rect.GetHeight() / 4… in TestFillStyle2() 429 …Rect rect2(rect.GetLeft(), rect.GetTop() + rect.GetHeight() / 4.0f, rect.GetRight(), rect.GetBotto… in TestFillStyle2() 451 …Rect rect1(rect.GetLeft(), rect.GetTop(), rect.GetRight(), rect.GetBottom() - rect.GetHeight() / 4… in TestFillStyle3() 452 …Rect rect2(rect.GetLeft(), rect.GetTop() + rect.GetHeight() / 4.0f, rect.GetRight(), rect.GetBotto… in TestFillStyle3() 474 …Rect rect1(rect.GetLeft(), rect.GetTop(), rect.GetRight(), rect.GetBottom() - rect.GetHeight() / 4… in TestFillStyle4() [all …]
|
H A D | pen_test.cpp | 154 Point a(rect.GetLeft() + rect.GetWidth() / 4.0f, rect.GetTop() + rect.GetHeight() / 4.0f); in TestPenCapStyle() 156 Point b(rect.GetRight() - rect.GetWidth() / 4.0f, rect.GetTop() + rect.GetHeight() / 4.0f); in TestPenCapStyle() 161 Point c(rect.GetLeft() + rect.GetWidth() / 4.0f, rect.GetTop() + rect.GetHeight() / 2.0f); in TestPenCapStyle() 163 Point d(rect.GetRight() - rect.GetWidth() / 4.0f, rect.GetTop() + rect.GetHeight() / 2.0f); in TestPenCapStyle() 168 Point e(rect.GetLeft() + rect.GetWidth() / 4.0f, rect.GetBottom() - rect.GetHeight() / 4.0f); in TestPenCapStyle() 170 Point f(rect.GetRight() - rect.GetWidth() / 4.0f, rect.GetBottom() - rect.GetHeight() / 4.0f); in TestPenCapStyle() 212 rect.GetRight() - rect.GetWidth() / 4.0f, rect.GetBottom() - rect.GetHeight() / 4.0f); in TestPenBlendMode() 221 Rect rect2(rect.GetLeft() + rect.GetWidth() / 4.0f, rect.GetTop() + rect.GetHeight() / 4.0f, in TestPenBlendMode() 239 Point a(rect.GetLeft() + rect.GetWidth() / 4.0f, rect.GetTop() + rect.GetHeight() / 4.0f); in TestPenAntiAlias() 240 Point b(rect.GetRight() - rect.GetWidth() / 4.0f, rect.GetTop() + rect.GetHeight() / 4.0f); in TestPenAntiAlias() [all …]
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/test/2d_graphics/unittest/ndk/ |
H A D | drawing_rect_test.cpp | 53 EXPECT_NE(nullptr, rect); 54 OH_Drawing_RectDestroy(rect); 66 EXPECT_NE(nullptr, rect); 80 OH_Drawing_RectDestroy(rect); 97 OH_Drawing_RectDestroy(rect); 113 OH_Drawing_RectDestroy(rect); 154 OH_Drawing_RectDestroy(rect); 198 OH_Drawing_RectDestroy(rect); 211 EXPECT_NE(nullptr, rect); 249 EXPECT_NE(nullptr, rect); [all …]
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_base/unittest/common/ |
H A D | rs_rect_test.cpp | 48 RectI rect; variable 65 RectI rect; variable 82 RectI rect; variable 97 RectF rect; variable 113 RectF rect; variable 126 RectF rect; variable 138 RectF rect; variable 151 RectF rect; variable 163 RectF rect; variable 175 RectF rect; variable [all …]
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/drawing_ndk/src/ |
H A D | drawing_rect.cpp | 61 if (rect == nullptr) { in OH_Drawing_RectSetTop() 65 rect->SetTop(top); in OH_Drawing_RectSetTop() 71 if (rect == nullptr) { in OH_Drawing_RectSetBottom() 81 if (rect == nullptr) { in OH_Drawing_RectSetLeft() 85 rect->SetLeft(left); in OH_Drawing_RectSetLeft() 91 if (rect == nullptr) { in OH_Drawing_RectSetRight() 95 rect->SetRight(right); in OH_Drawing_RectSetRight() 101 if (rect == nullptr) { in OH_Drawing_RectGetTop() 105 return rect->GetTop(); in OH_Drawing_RectGetTop() 111 if (rect == nullptr) { in OH_Drawing_RectGetBottom() [all …]
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/render/adapter/ |
H A D | focus_state_modifier.h | 64 void SetRoundRect(const RoundRect& rect, float borderWidth) in SetRoundRect() argument 69 …rosen::Rect(rect.GetRect().Left(), rect.GetRect().Top(), rect.GetRect().Right(), rect.GetRect().Bo… in SetRoundRect() 71 rect.GetCornerRadius(RoundRect::CornerPos::TOP_LEFT_POS).x, in SetRoundRect() 72 rect.GetCornerRadius(RoundRect::CornerPos::TOP_LEFT_POS).y); in SetRoundRect() 84 …RSRect(rect.GetRect().Left(), rect.GetRect().Top(), rect.GetRect().Right(), rect.GetRect().Bottom(… in SetRoundRect() 86 rect.GetCornerRadius(RoundRect::CornerPos::TOP_LEFT_POS).x, in SetRoundRect() 100 …RSRect(rect.GetRect().Left(), rect.GetRect().Top(), rect.GetRect().Right(), rect.GetRect().Bottom(… in SetRoundRect() 117 rect_->Set(rect.GetRect()); in SetRoundRect() 124 animationRect_->Set(rect.GetRect()); in SetRoundRect() 128 rect.GetRect().Left() - borderWidth / 2, rect.GetRect().Top() - borderWidth / 2, in SetRoundRect() [all …]
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/test/2d_graphics/drawing_ndk/cpp/interface/ |
H A D | canvas_test.cpp | 50 OH_Drawing_RectDestroy(rect); in OnTestPerformance() 73 OH_Drawing_RectDestroy(rect); in OnTestPerformance() 93 OH_Drawing_RectDestroy(rect); in OnTestPerformance() 102 OH_Drawing_RectDestroy(rect); in OnTestPerformance() 112 OH_Drawing_RectDestroy(rect); in OnTestPerformance() 134 OH_Drawing_RectDestroy(rect); in OnTestPerformance() 145 OH_Drawing_RectDestroy(rect); in OnTestPerformance() 155 OH_Drawing_RectDestroy(rect); in OnTestPerformance() 165 OH_Drawing_RectDestroy(rect); in OnTestPerformance() 175 OH_Drawing_RectDestroy(rect); in OnTestPerformance() [all …]
|
H A D | color_test.cpp | 47 OH_Drawing_CanvasDrawRect(canvas, rect); in OnTestPerformance() 49 OH_Drawing_RectDestroy(rect); in OnTestPerformance() 66 OH_Drawing_CanvasDrawRect(canvas, rect); in OnTestPerformance() 67 OH_Drawing_RectDestroy(rect); in OnTestPerformance() 89 OH_Drawing_CanvasDrawRect(canvas, rect); in OnTestPerformance() 90 OH_Drawing_RectDestroy(rect); in OnTestPerformance() 107 OH_Drawing_RectDestroy(rect); in OnTestPerformance() 124 OH_Drawing_RectDestroy(rect); in OnTestPerformance() 141 OH_Drawing_RectDestroy(rect); in OnTestPerformance() 154 OH_Drawing_RectDestroy(rect); in OnTestPerformance() [all …]
|
/ohos5.0/docs/zh-cn/application-dev/reference/apis-arkui/arkui-ts/ |
H A D | ts-universal-attributes-component-id.md | 250 x: rect.left + (rect.right - rect.left) / 2, // 相对于组件左上角的水平方向坐标 251 y: rect.top + (rect.bottom - rect.top) / 2, // 相对于组件左上角的垂直方向坐标 254 windowX: rect.left + (rect.right - rect.left) / 2, // 相对于应用窗口左上角的水平方向坐标 255 windowY: rect.left + (rect.right - rect.left) / 2, // 相对于应用窗口左上角的垂直方向坐标 256 displayX: rect.left + (rect.right - rect.left) / 2, // 相对于设备屏幕左上角的水平方向坐标 257 displayY: rect.left + (rect.right - rect.left) / 2, // 相对于设备屏幕左上角的垂直方向坐标 276 x: rect.left + (rect.right - rect.left) / 2, // 相对于组件左上角的水平方向坐标 277 y: rect.top + (rect.bottom - rect.top) / 2, // 相对于组件左上角的垂直方向坐标 280 windowX: rect.left + (rect.right - rect.left) / 2, // 相对于应用窗口左上角的水平方向坐标 281 windowY: rect.left + (rect.right - rect.left) / 2, // 相对于应用窗口左上角的垂直方向坐标 [all …]
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/pipeline/ |
H A D | rs_dirty_region_manager.cpp | 44 if (rect.IsEmpty()) { in MergeDirtyRect() 56 debugRect_ = rect; in MergeDirtyRect() 62 if (rect.IsEmpty()) { in MergeHwcDirtyRect() 86 if (rect.IsEmpty()) { in MergeDirtyRectAfterMergeHistory() 90 dirtyRegion_ = rect; in MergeDirtyRectAfterMergeHistory() 119 if (rect.IsEmpty()) { in UpdateCacheableFilterRect() 201 RectI glRect = rect; in GetRectFlipWithinSurface() 204 glRect.top_ = surfaceRect_.height_ - rect.top_ - rect.height_; in GetRectFlipWithinSurface() 219 RectI newRect = rect; in GetPixelAlignedRect() 396 rect = rect.JoinRect(subRect); in MergeHistory() [all …]
|
/ohos5.0/foundation/arkui/ui_lite/frameworks/draw/ |
H A D | draw_rect.cpp | 27 if ((rect.GetWidth() <= 0) || (rect.GetHeight() <= 0)) { in Draw() 86 if ((rect.GetWidth() > rect.GetHeight()) && (style.borderRadius_ >= rect.GetHeight() / 2)) { in DrawRectRadiusWithoutBorder() 88 … } else if ((rect.GetWidth() < rect.GetHeight()) && (style.borderRadius_ >= rect.GetWidth() / 2)) { in DrawRectRadiusWithoutBorder() 90 …} else if ((rect.GetWidth() == rect.GetHeight()) && (style.borderRadius_ >= rect.GetWidth() / 2)) { in DrawRectRadiusWithoutBorder() 104 int16_t row1Y = rect.GetTop(); in DrawRectRadiusWithoutBorderCon1() 144 int16_t col1X = rect.GetLeft(); in DrawRectRadiusWithoutBorderCon2() 209 int16_t row1Y = rect.GetTop(); in DrawRectRadiusWithoutBorderCon4() 270 int16_t row1Y = rect.GetTop(); in DrawRectBorderWithoutRadius() 456 if ((rect.GetWidth() > rect.GetHeight()) && (style.borderRadius_ >= rect.GetHeight() / 2)) { in DrawRectRadiusBiggerThanBorder() 458 … } else if ((rect.GetWidth() < rect.GetHeight()) && (style.borderRadius_ >= rect.GetWidth() / 2)) { in DrawRectRadiusBiggerThanBorder() [all …]
|
H A D | draw_rect.h | 32 static void Draw(BufferInfo& gfxDstBuffer, const Rect& rect, const Rect& dirtyRect, 36 …static void DrawRectRadiusWithoutBorder(BufferInfo& gfxDstBuffer, const Rect& rect, const Rect& di… 39 …static void DrawRectBorderWithoutRadius(BufferInfo& gfxDstBuffer, const Rect& rect, const Rect& di… 42 …static void DrawRectRadiusEqualBorder(BufferInfo& gfxDstBuffer, const Rect& rect, const Rect& dirt… 45 …static void DrawRectRadiusSmallThanBorder(BufferInfo& gfxDstBuffer, const Rect& rect, const Rect& … 48 …static void DrawRectRadiusBiggerThanBorder(BufferInfo& gfxDstBuffer, const Rect& rect, const Rect&… 51 …static void DrawRectRadiusWithoutBorderCon1(BufferInfo& gfxDstBuffer, const Rect& rect, const Rect… 54 …static void DrawRectRadiusWithoutBorderCon2(BufferInfo& gfxDstBuffer, const Rect& rect, const Rect… 57 …static void DrawRectRadiusWithoutBorderCon3(BufferInfo& gfxDstBuffer, const Rect& rect, const Rect… 60 …static void DrawRectRadiusWithoutBorderCon4(BufferInfo& gfxDstBuffer, const Rect& rect, const Rect… [all …]
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/test/2d_graphics/fuzztest/ndk/ndkrect_fuzzer/ |
H A D | rect_fuzzer.cpp | 46 OH_Drawing_RectSetTop(rect, top); in RectFuzzTest000() 48 OH_Drawing_RectGetTop(rect); in RectFuzzTest000() 53 OH_Drawing_RectGetBottom(rect); in RectFuzzTest000() 58 OH_Drawing_RectGetLeft(rect); in RectFuzzTest000() 63 OH_Drawing_RectGetRight(rect); in RectFuzzTest000() 66 OH_Drawing_RectGetHeight(rect); in RectFuzzTest000() 68 OH_Drawing_RectGetWidth(rect); in RectFuzzTest000() 70 OH_Drawing_RectDestroy(rect); in RectFuzzTest000() 89 OH_Drawing_RectCopy(rect, rect1); in RectFuzzTest001() 97 OH_Drawing_RectJoin(rect, rect1); in RectFuzzTest001() [all …]
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/base/geometry/ |
H A D | rrect.h | 40 explicit RRect(const Rect& rect) : rect_(rect) {} in RRect() argument 46 static RRect MakeRect(const Rect& rect) in MakeRect() argument 49 rrect.SetRect(rect); in MakeRect() 67 static RRect MakeOval(const Rect& rect) in MakeOval() argument 70 rrect.SetOval(rect); in MakeOval() 84 void SetRect(const Rect& rect) in SetRect() argument 86 rect_ = rect; in SetRect() 96 rect_ = rect; in SetRectWithSimpleRadius() 101 … double scale = std::min(rect.Width() / (xRadius + xRadius), rect.Height() / (yRadius + yRadius)); in SetRectWithSimpleRadius() 118 void SetOval(const Rect& rect) in SetOval() argument [all …]
|
/ohos5.0/foundation/distributedhardware/distributed_screen/services/common/utils/src/ |
H A D | dscreen_maprelation.cpp | 94 void to_json(json &j, const DisplayRect &rect) in to_json() argument 97 {KEY_POINT_START_X, rect.startX}, in to_json() 98 {KEY_POINT_START_Y, rect.startY}, in to_json() 99 {KEY_WIDTH, rect.width}, in to_json() 100 {KEY_HEIGHT, rect.height} in to_json() 112 rect.width = j[KEY_WIDTH].get<int32_t>(); in from_json() 116 void to_json(json &j, const ScreenRect &rect) in to_json() argument 119 {KEY_POINT_START_X, rect.startX}, in to_json() 120 {KEY_POINT_START_Y, rect.startY}, in to_json() 121 {KEY_WIDTH, rect.width}, in to_json() [all …]
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/picker/ |
H A D | rosen_render_picker_base.cpp | 115 double upperLine = rect.Top() + rect.Height() / 2.0 - dividerSpacing / 2.0; in Paint() 116 double downLine = rect.Top() + rect.Height() / 2.0 + dividerSpacing / 2.0; in Paint() 117 double leftLine = rect.Left(); in Paint() 118 double rightLine = rect.Right(); in Paint() 157 SkPoint beginPoint = SkPoint::Make(SkDoubleToScalar(rect.Left()), SkDoubleToScalar(rect.Top())); in PaintGradient() 162 RSPoint beginPoint(static_cast<RSScalar>(rect.Left()), static_cast<RSScalar>(rect.Top())); in PaintGradient() 163 RSPoint endPoint(static_cast<RSScalar>(rect.Left()), static_cast<RSScalar>(rect.Bottom())); in PaintGradient() 178 (rect.Height() - gradientHeight) / rect.Height(), 1.0f }; in PaintGradient() 181 canvas->drawRect({ rect.Left(), rect.Top(), rect.Right(), rect.Bottom() }, paint); in PaintGradient() 186 static_cast<RSScalar>((rect.Height() - gradientHeight) / rect.Height()), 1.0f }; in PaintGradient() [all …]
|
/ohos5.0/foundation/graphic/graphic_utils_lite/interfaces/kits/gfx_utils/ |
H A D | geometry2d.h | 151 explicit Polygon(const Rect& rect) in Polygon() argument 154 vertexes_[0].x_ = rect.GetLeft(); in Polygon() 155 vertexes_[0].y_ = rect.GetTop(); in Polygon() 157 vertexes_[1].x_ = rect.GetRight(); in Polygon() 158 vertexes_[1].y_ = rect.GetTop(); in Polygon() 163 vertexes_[3].x_ = rect.GetLeft(); in Polygon() 231 Polygon& operator=(const Rect& rect) 235 vertexes_[0].x_ = rect.GetLeft(); 236 vertexes_[0].y_ = rect.GetTop(); 239 vertexes_[1].y_ = rect.GetTop(); [all …]
|
/ohos5.0/foundation/window/window_manager/window_scene/common/include/ |
H A D | session_helper.h | 53 if ((pointPosX > rect.posX_) && in IsPointInRect() 54 (pointPosX < (rect.posX_ + static_cast<int32_t>(rect.width_)) - 1) && in IsPointInRect() 56 (pointPosY < (rect.posY_ + static_cast<int32_t>(rect.height_)) - 1)) { in IsPointInRect() 65 r.height_ = rect.height_; in TransferToWSRect() 66 r.width_ = rect.width_; in TransferToWSRect() 67 r.posX_ = rect.posX_; in TransferToWSRect() 68 r.posY_ = rect.posY_; in TransferToWSRect() 75 r.height_ = rect.height_; in TransferToRect() 76 r.width_ = rect.width_; in TransferToRect() 77 r.posX_ = rect.posX_; in TransferToRect() [all …]
|
/ohos5.0/foundation/window/window_manager_lite/services/wms/ |
H A D | lite_wm.cpp | 153 Rect& rect = cursorInfo_.rect; in UpdateMouseCursor() local 155 if (rect.GetLeft() == point.x && rect.GetTop() == point.y) { in UpdateMouseCursor() 159 AddUpdateRegion(rect); in UpdateMouseCursor() 412 AddUpdateRegion(rect); in UpdateWindowRegion() 462 if (updateRect.IsIntersect(rect) || updateRect.IsExtends(rect)) { in AddUpdateRegion() 569 if (!rect.Intersect(rect, rectBg)) { in DrawBackground() 573 x1 = rect.GetLeft(); in DrawBackground() 574 x2 = rect.GetRight(); in DrawBackground() 575 y1 = rect.GetTop(); in DrawBackground() 576 y2 = rect.GetBottom(); in DrawBackground() [all …]
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_base/unittest/render/ |
H A D | rs_border_test.cpp | 506 RRect rect; variable 545 RectF rect(1, 1, 1, 1); variable 549 border->PaintFourLine(canvas, pen, rect); 628 RectF rect(-65.0f, -97.5f, 821.0f, 747.5f); variable 691 RectF rect(-65.0f, -97.5f, 821.0f, 747.5f); variable 754 RectF rect(-65.0f, -97.5f, 821.0f, 747.5f); variable 819 RectF rect(-65.0f, -97.5f, 821.0f, 747.5f); variable 872 RectF rect(-65.0f, -97.5f, 821.0f, 747.5f); variable 929 RectF rect(-65.0f, -97.5f, 821.0f, 747.5f); variable 991 RectF rect(-65.0f, -97.5f, 821.0f, 747.5f); variable [all …]
|
/ohos5.0/foundation/window/window_manager/wmserver/src/ |
H A D | display_zoom_controller.cpp | 52 zoomInfo_.pivotX = rect.posX_ + zoomTrans.pivotX_ * rect.width_; in SetAnchorAndScale() 219 if (rect.width_ == 0 || rect.height_ == 0) { in CalcuAnimateZoomTrans() 224 rect.posY_ + lastZoomTrans.pivotY_ * rect.height_, 0 }; in CalcuAnimateZoomTrans() 234 rect.posY_ + animateTrans.pivotY_ * rect.height_, 0 }; in CalcuAnimateZoomTrans() 241 finalZoomTrans.pivotX_ = (0 - rect.posX_) * 1.0 / rect.width_; in CalcuAnimateZoomTrans() 242 finalZoomTrans.pivotY_ = (0 - rect.posY_) * 1.0 / rect.height_; in CalcuAnimateZoomTrans() 261 if (rect.width_ == 0 || rect.height_ == 0) { in CalcuZoomTransByZoomInfo() 275 if (rect.width_ == 0 || rect.height_ == 0) { in CalcuZoomTrans() 280 rect.posY_ + lastZoomTrans.pivotY_ * rect.height_, 0 }; in CalcuZoomTrans() 296 finalZoomTrans.pivotX_ = (0 - rect.posX_) * 1.0 / rect.width_; in CalcuZoomTrans() [all …]
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/test/2d_graphics/drawing_ets/ets/testcase/interface/ |
H A D | utilstests.ts | 27 let rect: common2D.Rect = { left: 0, top: 100, right: 300, bottom: 600 }; 30 common2D.Utils.joinRect(rect, other); 35 let rect: common2D.Rect = { left: 0, top: 100, right: 300, bottom: 600 }; 45 canvas.drawRect(rect); 60 result = common2D.Utils.joinRect(rect, other); 67 console.log("Actual rect: left = " + rect.left + ", top = " + rect.top + 68 ", right = " + rect.right + ", bottom = " + rect.bottom); 71 result = (rect.left == 0 && rect.top == 0 && rect.right == 600 && rect.bottom == 600); 77 canvas.drawRect(rect);
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_base/include/common/ |
H A D | rs_rect.h | 74 return ROSEN_EQ<T>(left_, rect.left_) && ROSEN_EQ<T>(top_, rect.top_) && 75 ROSEN_EQ<T>(width_, rect.width_) && ROSEN_EQ<T>(height_, rect.height_); 159 return (top_ >= rect.top_ && left_ >= rect.left_ && in IsInsideOf() 160 GetBottom() <= rect.GetBottom() && GetRight() <= rect.GetRight()); in IsInsideOf() 178 if (rect.IsEmpty()) { in JoinRect() 182 return rect; in JoinRect() 235 return rect.release(); in Unmarshalling() 291 rect_ = rect; in RRectT() 300 rect_ = rect; in RRectT() 308 rect_ = rect; in RRectT() [all …]
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/texgine/texgine_drawing/src/ |
H A D | texgine_rect.cpp | 31 auto rect = std::make_shared<TexgineRect>(); in MakeLTRB() local 33 return *rect; in MakeLTRB() 38 auto rect = std::make_shared<TexgineRect>(); in MakeXYWH() local 40 return *rect; in MakeXYWH() 45 auto rect = std::make_shared<TexgineRect>(); in MakeWH() local 46 rect->SetRect(RSRect { 0, 0, w, h }); in MakeWH() 47 return *rect; in MakeWH() 52 auto rect = std::make_shared<TexgineRect>(); in MakeRRect() local 60 return *rect; in MakeRRect() 73 void TexgineRect::SetRect(const RSRect &rect) in SetRect() argument [all …]
|
/ohos5.0/foundation/window/window_manager/test/systemtest/wms/ |
H A D | window_display_zoom_test.cpp | 49 .rect = {0, 0, 300, 100}, in SetUp() 89 Rect rect = window->GetRect(); variable 90 expect.pivotX_ = (0 - rect.posX_) * 1.0 / rect.width_; 91 expect.pivotY_ = (0 - rect.posY_) * 1.0 / rect.height_; 139 Rect rect = window->GetRect(); variable 140 expect.pivotX_ = (0 - rect.posX_) * 1.0 / rect.width_; 141 expect.pivotY_ = (0 - rect.posY_) * 1.0 / rect.height_; 204 expect.pivotX_ = (rect.width_ == 0) ? 0 : (0 - rect.posX_) * 1.0 / rect.width_; 205 expect.pivotY_ = (rect.height_ == 0) ? 0 : (0 - rect.posY_) * 1.0 / rect.height_; 250 expect.pivotX_ = (rect.width_ == 0) ? 0 : (0 - rect.posX_) * 1.0 / rect.width_; [all …]
|