/ohos5.0/foundation/graphic/graphic_2d/rosen/samples/2d_graphics/test/src/ |
H A D | path_test.cpp | 111 path.MoveTo(rect.GetLeft(), rect.GetTop()); in TestMoveTo() 113 path.MoveTo(rect.GetRight(), rect.GetTop()); in TestMoveTo() 116 path.MoveTo(rect.GetLeft() + rect.GetWidth() / 2.0f, rect.GetTop()); in TestMoveTo() 119 path.MoveTo(rect.GetLeft(), rect.GetTop() + rect.GetHeight() / 2.0f); in TestMoveTo() 187 path.MoveTo(rect.GetLeft(), rect.GetTop()); in TestCubicTo() 191 path2.MoveTo(rect.GetLeft(), rect.GetTop()); in TestCubicTo() 193 path2.LineTo(rect.GetRight(), rect.GetTop()); in TestCubicTo() 211 path.MoveTo(rect.GetLeft(), rect.GetTop()); in TestQuadTo() 216 path2.MoveTo(rect.GetLeft(), rect.GetTop()); in TestQuadTo() 219 path2.LineTo(rect.GetRight(), rect.GetTop()); in TestQuadTo() [all …]
|
H A D | pen_test.cpp | 41 Rect rect1(rect.GetLeft() + margin, rect.GetTop() + margin, in TestPenColor() 47 Rect rect2(rect1.GetLeft() + margin, rect1.GetTop() + margin, in TestPenColor() 53 Rect rect3(rect2.GetLeft() + margin, rect2.GetTop() + margin, in TestPenColor() 73 Rect rect1(rect.GetLeft() + margin, rect.GetTop() + margin, in TestPenAlpha() 79 Rect rect2(rect1.GetLeft() + margin, rect1.GetTop() + margin, in TestPenAlpha() 99 Rect rect1(rect.GetLeft() + margin, rect.GetTop() + margin, in TestPenWidth() 189 Rect rect1(rect.GetLeft() + margin, rect.GetTop() + margin, in TestPenJoinStyle() 194 Rect rect2(rect1.GetLeft() + margin, rect1.GetTop() + margin, in TestPenJoinStyle() 264 Rect rect1(rect.GetLeft() + margin, rect.GetTop() + margin, in TestPenPathEffect() 294 Rect rect1(rect.GetLeft() + margin, rect.GetTop() + margin, in TestPenFilter() [all …]
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_client/core/pipeline/ |
H A D | rs_render_thread_util.cpp | 52 srcRect = Drawing::Rect(srcRect.GetLeft() + static_cast<int32_t>(halfdw), srcRect.GetTop(), in SrcRectScaleDown() 54 srcRect.GetTop() + srcRect.GetHeight()); in SrcRectScaleDown() 59 srcRect = Drawing::Rect(srcRect.GetLeft(), srcRect.GetTop() + static_cast<int32_t>(halfdh), in SrcRectScaleDown() 61 srcRect.GetTop() + static_cast<int32_t>(halfdh) + static_cast<int32_t>(newHeight)); in SrcRectScaleDown() 93 …dstRect = Drawing::Rect(srcRect.GetLeft() + halfdw, srcRect.GetTop(), srcRect.GetLeft() + halfdw +… in SrcRectScaleFit() 94 srcRect.GetTop() + srcRect.GetHeight()); in SrcRectScaleFit() 97 …dstRect = Drawing::Rect(srcRect.GetLeft(), srcRect.GetTop() + halfdh, srcRect.GetLeft() + srcRect.… in SrcRectScaleFit() 98 srcRect.GetTop() + halfdh + newHeight); in SrcRectScaleFit()
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/test/2d_graphics/unittest/utils/ |
H A D | rect_test.cpp | 51 EXPECT_EQ(0.0f, rectF->GetTop()); 97 EXPECT_EQ(2.0f, rectF->GetTop()); 113 EXPECT_EQ(3.0f, rectF->GetTop()); 211 EXPECT_EQ(1.0f, rectF->GetTop()); 225 EXPECT_EQ(2.0f, rectF->GetTop()); 269 EXPECT_EQ(4.0f, rectF->GetTop()); 286 EXPECT_EQ(3.0f, rectF->GetTop()); 303 EXPECT_EQ(0.0f, rectF->GetTop()); 320 EXPECT_EQ(1.0f, rectF->GetTop()); 472 EXPECT_EQ(0.0f, rectI->GetTop()); [all …]
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components/triangle/ |
H A D | rosen_render_triangle.cpp | 49 path.arcTo({ arc1.GetLeft(), arc1.GetTop(), arc1.GetRight(), arc1.GetBottom() }, in Paint() 52 path.arcTo({ arc2.GetLeft(), arc2.GetTop(), arc2.GetRight(), arc2.GetBottom() }, in Paint() 55 path.arcTo({ arc3.GetLeft(), arc3.GetTop(), arc3.GetRight(), arc3.GetBottom() }, in Paint() 69 path.ArcTo(arc1.GetLeft(), arc1.GetTop(), arc1.GetRight(), arc1.GetBottom(), in Paint() 72 path.ArcTo(arc2.GetLeft(), arc2.GetTop(), arc2.GetRight(), arc2.GetBottom(), in Paint() 75 path.ArcTo(arc3.GetLeft(), arc3.GetTop(), arc3.GetRight(), arc3.GetBottom(), in Paint()
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/render/ |
H A D | rs_motion_blur_filter.cpp | 68 curRect_ = Drawing::Rect(rect.GetLeft(), rect.GetTop(), rect.GetRight(), rect.GetBottom()); in DrawImageRect() 70 …lastRect_ = Drawing::Rect(curRect_.GetLeft(), curRect_.GetTop(), curRect_.GetRight(), curRect_.Get… in DrawImageRect() 94 inputMatrix.Translate(-src.GetLeft(), -src.GetTop()); in DrawMotionBlur() 97 matrix.Translate(dst.GetLeft(), dst.GetTop()); in DrawMotionBlur() 180 rectOffset[1] = curRect_.GetTop() - lastRect_.GetTop() + in CaculateRect() 204 …lastRect_ = Drawing::Rect(curRect_.GetLeft(), curRect_.GetTop(), curRect_.GetRight(), curRect_.Get… in CaculateRect() 228 inputMatrix.Translate(-src.GetLeft(), -src.GetTop()); in OutputOriginalImage() 232 matrix.Translate(dst.GetLeft(), dst.GetTop()); in OutputOriginalImage()
|
H A D | rs_border.cpp | 560 float offsetY = borderGeo.rrect.GetRect().GetTop(); in CalcBorderPath() 617 float offsetY = borderGeo.rrect.GetRect().GetTop(); in DrawTopBorder() 646 float offsetY = borderGeo.rrect.GetRect().GetTop(); in DrawRightBorder() 673 float offsetY = borderGeo.rrect.GetRect().GetTop(); in DrawBottomBorder() 700 float offsetY = borderGeo.rrect.GetRect().GetTop(); in DrawLeftBorder() 767 y = rrect.GetRect().GetTop() + TOPW; in GetTLIP() 814 y = rrect.GetRect().GetTop() + TOPW; in GetTRIP() 858 rrect.GetRect().GetTop() + TOPW)); in GetBLIP() 861 y = rrect.GetRect().GetTop() + rrect.GetRect().GetHeight() - BOTTOMW; in GetBLIP() 905 rrect.GetRect().GetTop() + TOPW)); in GetBRIP() [all …]
|
H A D | rs_pixel_map_util.cpp | 155 dst.SetTop(dst.GetTop() - (realSize.height - src.GetBottom()) / HALF_F); in TransformDataSetForAstc() 164 dst.GetTop() / HALF_F + dst.GetBottom() / HALF_F); in TransformDataSetForAstc() 166 dst.GetTop() / HALF_F + dst.GetBottom() / HALF_F); in TransformDataSetForAstc() 169 dst.GetTop() / HALF_F + dst.GetBottom() / HALF_F); in TransformDataSetForAstc() 173 dst.GetTop() / HALF_F + dst.GetBottom() / HALF_F); in TransformDataSetForAstc() 182 src.SetTop(src.GetTop() + transformData.cropTop); in TransformDataSetForAstc() 186 dst.SetTop(dst.GetTop() + (realSize.height - transformData.cropHeight) / HALF_F); in TransformDataSetForAstc() 192 dst.SetTop(dst.GetTop() + transformData.translateY / HALF_F / abs(transformData.scaleY)); in TransformDataSetForAstc()
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_base/unittest/render/ |
H A D | rs_border_test.cpp | 646 borderGeo.rrect.rect_.SetTop(rect.GetTop()); 709 borderGeo.rrect.rect_.SetTop(rect.GetTop()); 772 borderGeo.rrect.rect_.SetTop(rect.GetTop()); 839 borderGeo.rrect.rect_.SetTop(rect.GetTop()); 890 borderGeo.rrect.rect_.SetTop(rect.GetTop()); 947 borderGeo.rrect.rect_.SetTop(rect.GetTop()); 1011 borderGeo.rrect.rect_.SetTop(rect.GetTop()); 1059 borderGeo.rrect.rect_.SetTop(rect.GetTop()); 1109 borderGeo.rrect.rect_.SetTop(rect.GetTop()); 1159 borderGeo.rrect.rect_.SetTop(rect.GetTop()); [all …]
|
/ohos5.0/foundation/graphic/graphic_utils_lite/test/ |
H A D | rect_unit_test.cpp | 84 EXPECT_EQ(rect_->GetTop(), 0); 106 EXPECT_EQ(rect_->GetTop(), 0); 202 EXPECT_EQ(rect_->GetTop(), TEST_VALUE); 267 EXPECT_EQ(rect_->GetTop(), TEST_VALUE); 286 EXPECT_EQ(rect_->GetTop(), TEST_VALUE); 351 EXPECT_EQ(rect_->GetTop(), TEST_VALUE); 401 EXPECT_EQ(rect_->GetTop(), 0); 478 EXPECT_EQ(rect1->GetTop(), MIN_VALUE);
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_base/include/common/ |
H A D | rs_rect.h | 117 T GetTop() const in GetTop() function 343 … rrect.rect_.SetAll(rect_.GetLeft() - other.rect_.GetLeft(), rect_.GetTop() - other.rect_.GetTop(), 355 … rrect.rect_.SetAll(rect_.GetLeft() + other.rect_.GetLeft(), rect_.GetTop() + other.rect_.GetTop(), 370 rrect.rect_.SetAll(rect_.GetLeft() / scale, rect_.GetTop() / scale, 382 rrect.rect_.SetAll(rect_.GetLeft() * scale, rect_.GetTop() * scale, 393 rect_.SetAll(rect_.GetLeft() - other.rect_.GetLeft(), rect_.GetTop() - other.rect_.GetTop(), 404 rect_.SetAll(rect_.GetLeft() + other.rect_.GetLeft(), rect_.GetTop() + other.rect_.GetTop(), 415 rect_.SetAll(rect_.GetLeft() * scale, rect_.GetTop() * scale,
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/graphics_effect/src/ |
H A D | ge_linear_gradient_blur_shader_filter.cpp | 85 rect.Offset(-clipIPadding.GetLeft(), -clipIPadding.GetTop()); in ProcessImageDDGR() 196 …pts[0].Set(clipBounds.GetWidth() / 2 + clipBounds.GetLeft(), clipBounds.GetTop()); // 2 middle of … in GetGEGradientDirectionPoints() 206 …pts[0].Set(clipBounds.GetLeft(), clipBounds.GetHeight() / 2 + clipBounds.GetTop()); // 2 middle o… in GetGEGradientDirectionPoints() 208 clipBounds.GetHeight() / 2 + clipBounds.GetTop()); // 2 middle of height; in GetGEGradientDirectionPoints() 213 …clipBounds.GetHeight() / 2 + clipBounds.GetTop()); // 2 middle of he… in GetGEGradientDirectionPoints() 228 pts[0].Set(clipBounds.GetLeft(), clipBounds.GetTop()); in ProcessGradientDirectionPoints() 234 pts[1].Set(clipBounds.GetLeft(), clipBounds.GetTop()); in ProcessGradientDirectionPoints() 238 pts[0].Set(clipBounds.GetRight(), clipBounds.GetTop()); in ProcessGradientDirectionPoints() 244 pts[1].Set(clipBounds.GetRight(), clipBounds.GetTop()); in ProcessGradientDirectionPoints() 385 blurMatrix.PostTranslate(dst.GetLeft(), dst.GetTop()); in DrawMeanLinearGradientBlur() [all …]
|
/ohos5.0/foundation/arkui/ace_engine_lite/frameworks/src/core/stylemgr/test/unittest/common/ |
H A D | link_stack_test.cpp | 39 EXPECT_TRUE(stack.GetTop() != nullptr); 60 EXPECT_TRUE(stack.GetTop() == nullptr); 73 EXPECT_STREQ(stack.GetTop()->GetNodeData(), "firstInput"); 77 EXPECT_STREQ(stack.GetTop()->GetNodeData(), "secondInput");
|
/ohos5.0/foundation/arkui/ui_lite/frameworks/draw/ |
H A D | draw_image.cpp | 71 start.y = valid.GetTop() - coords.GetTop(); in DrawCommon() 72 for (int16_t row = valid.GetTop(); row <= valid.GetBottom(); row++) { in DrawCommon() 80 line.SetTop(line.GetTop() + 1); in DrawCommon()
|
H A D | draw_canvas.cpp | 68 renBase.ClipBox(invalidatedArea.GetLeft(), invalidatedArea.GetTop(), invalidatedArea.GetRight(), in DoRender() 119 renBase.ClipBox(invalidatedArea.GetLeft(), invalidatedArea.GetTop(), invalidatedArea.GetRight(), in DoDrawShadow() 128 bbox.SetTop(bbox.GetTop() - paint.GetShadowBlur()); in DoDrawShadow() 133 Rect shadowRect = {int16_t(bbox.GetLeft()), int16_t(bbox.GetTop()), int16_t(bbox.GetRight()), in DoDrawShadow() 136 …pixf2.Attach(pixFormat, shadowRect.GetLeft(), shadowRect.GetTop(), shadowRect.GetRight(), shadowRe… in DoDrawShadow() 154 int16_t realTop = rect.GetTop() + style.paddingTop_ + style.borderWidth_; in InitRenderAndTransform() 214 …m_renBaseComp.ClipBox(invalidatedArea.GetLeft(), invalidatedArea.GetTop(), invalidatedArea.GetRigh… in RenderGradient() 289 rect.GetTop()); in RenderPattern()
|
H A D | draw_rect.cpp | 104 int16_t row1Y = rect.GetTop(); in DrawRectRadiusWithoutBorderCon1() 105 int16_t row2Y = rect.GetTop() + radius - 1; in DrawRectRadiusWithoutBorderCon1() 148 int16_t row2Y = rect.GetTop() + radius - 1; in DrawRectRadiusWithoutBorderCon2() 183 int16_t row1Y = rect.GetTop() + radius - 1; in DrawRectRadiusWithoutBorderCon3() 209 int16_t row1Y = rect.GetTop(); in DrawRectRadiusWithoutBorderCon4() 210 int16_t row2Y = rect.GetTop() + radius - 1; in DrawRectRadiusWithoutBorderCon4() 270 int16_t row1Y = rect.GetTop(); in DrawRectBorderWithoutRadius() 307 int16_t row1Y = rect.GetTop(); in DrawRectRadiusEqualBorder() 377 int16_t radiusRow1Y = rect.GetTop(); in DrawRectRadiusSmallThanBorder() 475 int16_t row1Y = rect.GetTop(); in DrawRectRadiusBiggerThanBorderCon1() [all …]
|
/ohos5.0/foundation/window/window_manager_lite/services/wms/ |
H A D | lite_wm.cpp | 24 #define EXPAND_RECT(x) x.GetLeft(), x.GetTop(), x.GetRight(), x.GetBottom() 155 if (rect.GetLeft() == point.x && rect.GetTop() == point.y) { in UpdateMouseCursor() 263 int16_t y1 = mask.GetTop(); in Resize() 435 if (y1 != mask.GetTop()) { in CalculateUpdateRegion() 536 int y = mask.GetTop(); in DrawRegion() 543 srcRect.SetPosition(mask.GetLeft() - winRect.GetLeft(), mask.GetTop() - winRect.GetTop()); in DrawRegion() 552 if (y1 != mask.GetTop()) { in DrawRegion() 553 DrawRegion(winNode->next_, mask.GetLeft(), y1, x2, mask.GetTop() - 1); in DrawRegion() 557 DrawRegion(winNode->next_, mask.GetRight() + 1, mask.GetTop(), x2, y2); in DrawRegion() 575 y1 = rect.GetTop(); in DrawBackground() [all …]
|
/ohos5.0/foundation/arkui/ui_lite/frameworks/components/ |
H A D | ui_scroll_view.cpp | 116 …if (childRect.GetTop() - scrollBlankSize_ >= 0 || childRect.GetBottom() + scrollBlankSize_ <= GetH… in OnRotateEvent() 156 …if (childRect.GetTop() - scrollBlankSize_ >= 0 || childRect.GetBottom() + scrollBlankSize_ <= GetH… in SetIsEdge() 224 if (childRect.GetTop() > scrollBlankSize_ + reboundSize) { in DragYInner() 226 } else if ((childRect.GetTop() + distance) > scrollBlankSize_ + reboundSize) { in DragYInner() 227 distance = scrollBlankSize_ - childRect.GetTop() + reboundSize; in DragYInner() 269 …yScrollBar_->SetScrollProgress(static_cast<float>(scrollBlankSize_ - childrenRect.GetTop()) / (tot… in RefreshScrollBar() 285 int16_t top = rect.GetTop(); in CalculateReboundDistance()
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_base/unittest/common/ |
H A D | rs_rect_test.cpp | 152 EXPECT_EQ(rect.GetTop(), 0.f); 177 EXPECT_EQ(rect.GetTop(), 0.f); 180 EXPECT_EQ(rect.GetTop(), 1.f); 194 EXPECT_EQ(rect.GetTop(), 1.f); 199 EXPECT_EQ(rect.GetTop(), 0.f); 317 …ring str = std::string("[") + std::to_string(rect.GetLeft()) + ", " + std::to_string(rect.GetTop())
|
/ohos5.0/foundation/graphic/graphic_utils_lite/interfaces/kits/gfx_utils/ |
H A D | geometry2d.h | 155 vertexes_[0].y_ = rect.GetTop(); in Polygon() 158 vertexes_[1].y_ = rect.GetTop(); in Polygon() 236 vertexes_[0].y_ = rect.GetTop(); 239 vertexes_[1].y_ = rect.GetTop();
|
/ohos5.0/foundation/arkui/ui_lite/frameworks/dock/ |
H A D | focus_manager.cpp | 112 return ((rect1.GetBottom() < rect2.GetTop()) && (rect1.GetTop() > rect2.GetBottom())); in IsAtSameRow() 136 if (currentRect.GetTop() <= focusedViewRect.GetTop()) { in CompareCandidatesByDown() 142 return currentRect.GetTop() < candidateRect.GetTop(); in CompareCandidatesByDown()
|
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service/core/drawable/ |
H A D | rs_render_node_drawable_autocache.cpp | 99 canvas.Translate(-unionRect.GetLeft(), -unionRect.GetTop()); in OpincCanvasUnionTranslate() 108 canvas.Translate(unionRect.GetLeft(), unionRect.GetTop()); in ResumeOpincCanvasTranslate() 228 … nodeAbsRect.GetLeft(), nodeAbsRect.GetTop(), nodeAbsRect.GetRight(), nodeAbsRect.GetBottom(), in IsOpincNodeInScreenRect() 229 …screenRectInfo_.GetLeft(), screenRectInfo_.GetTop(), screenRectInfo_.GetRight(), screenRectInfo_.G… in IsOpincNodeInScreenRect() 284 srcRect.Offset(-unionRect.GetLeft(), -unionRect.GetTop()); in DrawAutoCache() 322 RectI dfxRect(static_cast<int>(dst.GetLeft()), static_cast<int>(dst.GetTop()), in DrawAutoCacheDfx() 353 unionRect.GetLeft(), unionRect.GetTop(), unionRect.GetWidth(), unionRect.GetHeight()); in GetNodeDebugInfo()
|
/ohos5.0/base/print/print_fwk/test/unittest/fwk_inner_napi_test/ |
H A D | print_margin_test.cpp | 90 EXPECT_EQ((uint32_t)6, margin.GetTop()); 354 EXPECT_EQ(copyMargin.GetTop(), margin.GetTop()); 368 EXPECT_EQ(copyMargin.GetTop(), margin.GetTop());
|
/ohos5.0/base/web/webview/ohos_interface/ohos_glue/ohos_adapter/bridge/webview/ |
H A D | ark_imfcursor_info_adapter_wrapper.cpp | 30 double ArkIMFCursorInfoAdapterWrapper::GetTop() in GetTop() function in OHOS::ArkWeb::ArkIMFCursorInfoAdapterWrapper 32 return ctocpp_->GetTop(); in GetTop()
|
/ohos5.0/base/web/webview/ohos_interface/ohos_glue/ohos_adapter/bridge/webcore/ |
H A D | ark_imf_cursor_info_adapter_impl.cpp | 29 double ArkIMFCursorInfoAdapterImpl::GetTop() in GetTop() function in OHOS::ArkWeb::ArkIMFCursorInfoAdapterImpl 31 return real_->GetTop(); in GetTop()
|