/foundation/graphic/graphic_2d/rosen/samples/2d_graphics/test/src/ |
H A D | path_test.cpp | 30 Point a(rect.GetLeft() + rect.GetWidth() / 2.0f, rect.GetTop() + rect.GetHeight() / 2.0f - len * std::cos(18.0f)); in TestDrawStar() 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() 120 path.LineTo(rect.GetRight(), rect.GetTop() + rect.GetHeight() / 2.0f); in TestMoveTo() 135 linePoints.emplace_back(Point(rect.GetLeft() + rect.GetWidth() / 4.0f, rect.GetTop())); in TestLineTo() 139 linePoints.emplace_back(Point(rect.GetRight() - rect.GetWidth() / 4.0f, rect.GetTop())); in TestLineTo() 142 linePoints.emplace_back(Point(rect.GetLeft(), rect.GetTop() + rect.GetHeight() / 4.0f)); in TestLineTo() 143 linePoints.emplace_back(Point(rect.GetRight(), rect.GetTop() in TestLineTo() [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() 117 Point a(rect.GetLeft(), rect.GetTop() + rect.GetHeight() * 2.0f / MARGINE_SCALE_SIZE); in TestPenMiterLimit() 119 Point b(rect.GetLeft(), rect.GetTop() + rect.GetHeight() * 3.0f / MARGINE_SCALE_SIZE); in TestPenMiterLimit() 122 rect.GetTop() + rect.GetHeight() * 2.5f / MARGINE_SCALE_SIZE); in TestPenMiterLimit() 154 Point a(rect.GetLeft() + rect.GetWidth() / 4.0f, rect.GetTop() in TestPenCapStyle() [all...] |
/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()
|
/foundation/graphic/graphic_2d/rosen/test/2d_graphics/unittest/utils/ |
H A D | rect_test.cpp | 51 EXPECT_EQ(0.0f, rectF->GetTop()); in HWTEST_F() 97 EXPECT_EQ(2.0f, rectF->GetTop()); in HWTEST_F() 113 EXPECT_EQ(3.0f, rectF->GetTop()); in HWTEST_F() 211 EXPECT_EQ(1.0f, rectF->GetTop()); in HWTEST_F() 225 EXPECT_EQ(2.0f, rectF->GetTop()); in HWTEST_F() 269 EXPECT_EQ(4.0f, rectF->GetTop()); in HWTEST_F() 286 EXPECT_EQ(3.0f, rectF->GetTop()); in HWTEST_F() 303 EXPECT_EQ(0.0f, rectF->GetTop()); in HWTEST_F() 320 EXPECT_EQ(1.0f, rectF->GetTop()); in HWTEST_F() 472 EXPECT_EQ(0.0f, rectI->GetTop()); in HWTEST_F() [all...] |
/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_.GetBottom()); 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_.GetBottom()); in CaculateRect() 228 inputMatrix.Translate(-src.GetLeft(), -src.GetTop()); in OutputOriginalImage() 232 matrix.Translate(dst.GetLeft(), dst.GetTop()); in OutputOriginalImage()
|
H A D | rs_pixel_map_util.cpp | 154 dst.SetTop(dst.GetTop() - (realSize.height - src.GetBottom()) / HALF_F); in TransformDataSetForAstc() 163 dst.GetTop() / HALF_F + dst.GetBottom() / HALF_F); in TransformDataSetForAstc() 165 dst.GetTop() / HALF_F + dst.GetBottom() / HALF_F); in TransformDataSetForAstc() 168 dst.GetTop() / HALF_F + dst.GetBottom() / HALF_F); in TransformDataSetForAstc() 172 dst.GetTop() / HALF_F + dst.GetBottom() / HALF_F); in TransformDataSetForAstc() 181 src.SetTop(src.GetTop() + transformData.cropTop); in TransformDataSetForAstc() 185 dst.SetTop(dst.GetTop() + (realSize.height - transformData.cropHeight) / HALF_F); in TransformDataSetForAstc() 191 dst.SetTop(dst.GetTop() + transformData.translateY / HALF_F / abs(transformData.scaleY)); in TransformDataSetForAstc()
|
H A D | rs_border.cpp | 560 float offsetY = borderGeo.rrect.GetRect().GetTop(); in CalcBorderPath() 617 float offsetY = borderGeo.rrect.GetRect().GetTop(); in DrawTopBorder() 634 topBorder.ArcTo(rs.GetLeft(), rs.GetTop(), rs.GetRight(), rs.GetBottom(), TOP_START, SWEEP_ANGLE); in DrawTopBorder() 635 topBorder.ArcTo(re.GetLeft(), re.GetTop(), re.GetRight(), re.GetBottom(), TOP_END, SWEEP_ANGLE); in DrawTopBorder() 646 float offsetY = borderGeo.rrect.GetRect().GetTop(); in DrawRightBorder() 661 rightBorder.ArcTo(rs.GetLeft(), rs.GetTop(), rs.GetRight(), rs.GetBottom(), RIGHT_START, SWEEP_ANGLE); in DrawRightBorder() 662 rightBorder.ArcTo(re.GetLeft(), re.GetTop(), re.GetRight(), re.GetBottom(), RIGHT_END, SWEEP_ANGLE); in DrawRightBorder() 673 float offsetY = borderGeo.rrect.GetRect().GetTop(); in DrawBottomBorder() 689 bottomBorder.ArcTo(rs.GetLeft(), rs.GetTop(), rs.GetRight(), rs.GetBottom(), BOTTOM_START, SWEEP_ANGLE); in DrawBottomBorder() 690 bottomBorder.ArcTo(re.GetLeft(), re.GetTop(), r in DrawBottomBorder() [all...] |
/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_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() 271 int16_t row2Y = rect.GetTop() + style.borderWidth_ - 1; in DrawRectBorderWithoutRadius() 307 int16_t row1Y = rect.GetTop(); in DrawRectRadiusEqualBorder() 308 int16_t row2Y = rect.GetTop() in DrawRectRadiusEqualBorder() [all...] |
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(), shadowRect.GetBottom()); in DoDrawShadow() 154 int16_t realTop = rect.GetTop() + style.paddingTop_ + style.borderWidth_; in InitRenderAndTransform() 214 m_renBaseComp.ClipBox(invalidatedArea.GetLeft(), invalidatedArea.GetTop(), invalidatedArea.GetRight(), in RenderGradient() 289 rect.GetTop()); in RenderPattern()
|
/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); in HWTEST_F() 60 EXPECT_TRUE(stack.GetTop() == nullptr); in HWTEST_F() 73 EXPECT_STREQ(stack.GetTop()->GetNodeData(), "firstInput"); in HWTEST_F() 77 EXPECT_STREQ(stack.GetTop()->GetNodeData(), "secondInput"); in HWTEST_F()
|
/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();
|
/foundation/graphic/graphic_utils_lite/test/ |
H A D | rect_unit_test.cpp | 84 EXPECT_EQ(rect_->GetTop(), 0); in HWTEST_F() 106 EXPECT_EQ(rect_->GetTop(), 0); in HWTEST_F() 191 * @tc.desc: Verify GetTop function, equal. 202 EXPECT_EQ(rect_->GetTop(), TEST_VALUE); in HWTEST_F() 267 EXPECT_EQ(rect_->GetTop(), TEST_VALUE); in HWTEST_F() 286 EXPECT_EQ(rect_->GetTop(), TEST_VALUE); in HWTEST_F() 351 EXPECT_EQ(rect_->GetTop(), TEST_VALUE); in HWTEST_F() 401 EXPECT_EQ(rect_->GetTop(), 0); in HWTEST_F() 478 EXPECT_EQ(rect1->GetTop(), MIN_VALUE); in HWTEST_F()
|
/foundation/graphic/graphic_utils_lite/interfaces/kits/gfx_utils/diagram/common/ |
H A D | common_clip_operate.h | 65 return ((y < clipBox.GetTop()) << 0x03) | ((y > clipBox.GetBottom()) << 0x01); in ClippingFlagsY() 91 return ((x < clipBox.GetLeft()) << 0x02) | ((y < clipBox.GetTop()) << 0x03) | in ClippingFlags()
|
/foundation/arkui/ui_lite/frameworks/components/ |
H A D | ui_scroll_view.cpp | 116 if (childRect.GetTop() - scrollBlankSize_ >= 0 || childRect.GetBottom() + scrollBlankSize_ <= GetHeight()) { in OnRotateEvent() 156 if (childRect.GetTop() - scrollBlankSize_ >= 0 || childRect.GetBottom() + scrollBlankSize_ <= GetHeight()) { 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()) / (totalLen - len)); in RefreshScrollBar() 285 int16_t top = rect.GetTop(); in CalculateReboundDistance()
|
H A D | ui_surface_view.cpp | 54 y = GetRect().GetTop(); in SetPosition() 67 y = GetRect().GetTop(); in SetPosition() 123 y = GetRect().GetTop(); in SetY()
|
H A D | ui_box_scroll_bar.cpp | 49 int16_t forgroundTop = backgroundRect_.GetTop() + in OnDraw() 60 rect.SetRect(forgroundLeft, backgroundRect_.GetTop(), forgroundLeft + forgroundWidth - 1, in OnDraw()
|
/foundation/graphic/graphic_2d/rosen/modules/render_service/core/drawable/ |
H A D | rs_render_node_drawable_autocache.cpp | 98 canvas.Translate(-unionRect.GetLeft(), -unionRect.GetTop()); in OpincCanvasUnionTranslate() 107 canvas.Translate(unionRect.GetLeft(), unionRect.GetTop()); in ResumeOpincCanvasTranslate() 227 nodeAbsRect.GetLeft(), nodeAbsRect.GetTop(), nodeAbsRect.GetRight(), nodeAbsRect.GetBottom(), in IsOpincNodeInScreenRect() 228 screenRectInfo_.GetLeft(), screenRectInfo_.GetTop(), screenRectInfo_.GetRight(), screenRectInfo_.GetBottom()); in IsOpincNodeInScreenRect() 283 srcRect.Offset(-unionRect.GetLeft(), -unionRect.GetTop()); in DrawAutoCache() 321 RectI dfxRect(static_cast<int>(dst.GetLeft()), static_cast<int>(dst.GetTop()), in DrawAutoCacheDfx() 352 unionRect.GetLeft(), unionRect.GetTop(), unionRect.GetWidth(), unionRect.GetHeight()); in GetNodeDebugInfo()
|
/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 width; 202 pts[1].Set(clipBounds.GetWidth() / 2 + clipBounds.GetLeft(), clipBounds.GetTop()); // 2 middle of width; 206 pts[0].Set(clipBounds.GetLeft(), clipBounds.GetHeight() / 2 + clipBounds.GetTop()); // 2 middle of height; 208 clipBounds.GetHeight() / 2 + clipBounds.GetTop()); // 2 middle of height; 213 clipBounds.GetHeight() / 2 + clipBounds.GetTop()); // 2 middle of height; 214 pts[1].Set(clipBounds.GetLeft(), clipBounds.GetHeight() / 2 + clipBounds.GetTop()); // 2 middle of height; 228 pts[0].Set(clipBounds.GetLeft(), clipBounds.GetTop()); 234 pts[1].Set(clipBounds.GetLeft(), clipBounds.GetTop()); 238 pts[0].Set(clipBounds.GetRight(), clipBounds.GetTop()); [all...] |
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/include/common/ |
H A D | rs_rect.h | 117 T GetTop() const in GetTop() function in OHOS::Rosen::RectT 357 rrect.rect_.SetAll(rect_.GetLeft() - other.rect_.GetLeft(), rect_.GetTop() - other.rect_.GetTop(), in operator -() 369 rrect.rect_.SetAll(rect_.GetLeft() + other.rect_.GetLeft(), rect_.GetTop() + other.rect_.GetTop(), in operator +() 384 rrect.rect_.SetAll(rect_.GetLeft() / scale, rect_.GetTop() / scale, in operator /() 396 rrect.rect_.SetAll(rect_.GetLeft() * scale, rect_.GetTop() * scale, in operator *() 407 rect_.SetAll(rect_.GetLeft() - other.rect_.GetLeft(), rect_.GetTop() - other.rect_.GetTop(), in operator -=() 418 rect_.SetAll(rect_.GetLeft() + other.rect_.GetLeft(), rect_.GetTop() in operator +=() [all...] |
/foundation/arkui/ace_engine/frameworks/core/components_ng/render/adapter/ |
H A D | svg_canvas_image.cpp | 36 OffsetF offset(dstRect.GetLeft(), dstRect.GetTop()); in DrawRect() 40 canvas.Translate(dstRect.GetLeft(), dstRect.GetTop()); in DrawRect()
|
/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_base/unittest/render/ |
H A D | rs_border_test.cpp | 645 borderGeo.rrect.rect_.SetTop(rect.GetTop()); in HWTEST_F() 649 borderGeo.innerRRect.rect_.SetTop(rect.GetTop() + width[RSBorder::TOP]); in HWTEST_F() 653 (borderGeo.innerRRect.rect_.GetTop() + borderGeo.innerRRect.rect_.GetBottom()) * 0.5 }; in HWTEST_F() 708 borderGeo.rrect.rect_.SetTop(rect.GetTop()); in HWTEST_F() 712 borderGeo.innerRRect.rect_.SetTop(rect.GetTop() + width[RSBorder::TOP]); in HWTEST_F() 716 (borderGeo.innerRRect.rect_.GetTop() + borderGeo.innerRRect.rect_.GetBottom()) * 0.5 }; in HWTEST_F() 771 borderGeo.rrect.rect_.SetTop(rect.GetTop()); in HWTEST_F() 775 borderGeo.innerRRect.rect_.SetTop(rect.GetTop() + width[RSBorder::TOP]); in HWTEST_F() 779 (borderGeo.innerRRect.rect_.GetTop() + borderGeo.innerRRect.rect_.GetBottom()) * 0.5 }; in HWTEST_F() 838 borderGeo.rrect.rect_.SetTop(rect.GetTop()); in HWTEST_F() [all...] |
/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()
|
/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_base/unittest/common/ |
H A D | rs_rect_test.cpp | 145 * @tc.desc: test results of GetTop 152 EXPECT_EQ(rect.GetTop(), 0.f); in HWTEST_F() 177 EXPECT_EQ(rect.GetTop(), 0.f); in HWTEST_F() 180 EXPECT_EQ(rect.GetTop(), 1.f); in HWTEST_F() 194 EXPECT_EQ(rect.GetTop(), 1.f); in HWTEST_F() 199 EXPECT_EQ(rect.GetTop(), 0.f); in HWTEST_F() 317 std::string str = std::string("[") + std::to_string(rect.GetLeft()) + ", " + std::to_string(rect.GetTop()) in HWTEST_F()
|
/foundation/arkui/ui_lite/frameworks/render/ |
H A D | render_base.h | 93 return x >= clipBox_.GetLeft() && y >= clipBox_.GetTop() && in Inbox() 119 return clipBox_.GetTop(); in GetYMin()
|