Home
last modified time | relevance | path

Searched refs:GetLeft (Results 1 - 25 of 216) sorted by relevance

123456789

/foundation/graphic/graphic_utils_lite/frameworks/diagram/rasterizer/
H A Drasterizer_scanline_clip.cpp164 yPilotOne = y1 + RasterDepictInt::MultDiv(clipBox_.GetLeft() - x1, y2 - y1, x2 - x1); in LineTo()
166 LineClipY(rasterLine, x1, y1, clipBox_.GetLeft(), yPilotOne, in LineTo()
168 LineClipY(rasterLine, clipBox_.GetLeft(), yPilotOne, clipBox_.GetLeft(), y2, in LineTo()
176 yPilotTwo = y1 + RasterDepictInt::MultDiv(clipBox_.GetLeft() - x1, y2 - y1, x2 - x1); in LineTo()
181 LineClipY(rasterLine, clipBox_.GetRight(), yPilotOne, clipBox_.GetLeft(), yPilotTwo, in LineTo()
183 LineClipY(rasterLine, clipBox_.GetLeft(), yPilotTwo, clipBox_.GetLeft(), y2, in LineTo()
191 yPilotOne = y1 + RasterDepictInt::MultDiv(clipBox_.GetLeft() - x1, y2 - y1, x2 - x1); in LineTo()
193 LineClipY(rasterLine, clipBox_.GetLeft(), y in LineTo()
[all...]
/foundation/graphic/graphic_2d/rosen/samples/2d_graphics/test/src/
H A Dpath_test.cpp30 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()
114 path.LineTo(rect.GetLeft(), rect.GetBottom()); in TestMoveTo()
116 path.MoveTo(rect.GetLeft() + rect.GetWidth() / 2.0f, rect.GetTop()); in TestMoveTo()
118 path.LineTo(rect.GetLeft() + rect.GetWidth() / 2.0f, rect.GetBottom()); in TestMoveTo()
119 path.MoveTo(rect.GetLeft(), rect.GetTop() + rect.GetHeight() / 2.0f); in TestMoveTo()
135 linePoints.emplace_back(Point(rect.GetLeft() + rect.GetWidth() / 4.0f, rect.GetTop())); in TestLineTo()
137 linePoints.emplace_back(Point(rect.GetLeft() + rect.GetWidth() / 4.0f, rect.GetBottom())); in TestLineTo()
142 linePoints.emplace_back(Point(rect.GetLeft(), rect.GetTop() + rect.GetHeight() / 4.0f)); in TestLineTo()
144 linePoints.emplace_back(Point(rect.GetLeft(), rec in TestLineTo()
[all...]
H A Dpen_test.cpp41 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()
121 Point c(rect.GetLeft() + rect.GetWidth() / 2.0f, in TestPenMiterLimit()
154 Point a(rect.GetLeft() in TestPenCapStyle()
[all...]
/foundation/graphic/graphic_2d/rosen/test/2d_graphics/unittest/utils/
H A Drect_test.cpp50 EXPECT_EQ(0.0f, rectF->GetLeft()); in HWTEST_F()
68 EXPECT_EQ(rectf1.GetLeft(), rectf2.GetLeft()); in HWTEST_F()
83 EXPECT_EQ(rectf1.GetLeft(), rectf2.GetLeft()); in HWTEST_F()
96 EXPECT_EQ(1.0f, rectF->GetLeft()); in HWTEST_F()
112 EXPECT_EQ(4.0f, rectF->GetLeft()); in HWTEST_F()
155 EXPECT_EQ(1.0f, rectF->GetLeft()); in HWTEST_F()
169 EXPECT_EQ(2.0f, rectF->GetLeft()); in HWTEST_F()
267 EXPECT_EQ(2.0f, rectF->GetLeft()); in HWTEST_F()
[all...]
/foundation/arkui/ace_engine/frameworks/core/components/triangle/
H A Drosen_render_triangle.cpp49 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/modules/render_service_base/src/render/
H A Drs_motion_blur_filter.cpp68 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()
178 rectOffset[0] = curRect_.GetLeft() - lastRect_.GetLeft() + 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 Drs_pixel_map_util.cpp153 dst.SetLeft(dst.GetLeft() - (realSize.width - src.GetRight()) / HALF_F); in TransformDataSetForAstc()
162 matrix.PostScale(transformData.scaleX, transformData.scaleY, dst.GetLeft() / HALF_F + dst.GetRight() / HALF_F, in TransformDataSetForAstc()
164 matrix.PostRotate(transformData.rotateD, dst.GetLeft() / HALF_F + dst.GetRight() / HALF_F, in TransformDataSetForAstc()
167 matrix.PostScale(-1, 1, dst.GetLeft() / HALF_F + dst.GetRight() / HALF_F, in TransformDataSetForAstc()
171 matrix.PostScale(1, -1, dst.GetLeft() / HALF_F + dst.GetRight() / HALF_F, in TransformDataSetForAstc()
180 src.SetLeft(src.GetLeft() + transformData.cropLeft); in TransformDataSetForAstc()
184 dst.SetLeft(dst.GetLeft() + (realSize.width - transformData.cropWidth) / HALF_F); in TransformDataSetForAstc()
190 dst.SetLeft(dst.GetLeft() + transformData.translateX / HALF_F / abs(transformData.scaleX)); in TransformDataSetForAstc()
H A Drs_kawase_blur.cpp185 translateMatrix.Translate(blurRect.GetLeft(), blurRect.GetTop()); in GetShaderTransform()
194 auto srcRect = Drawing::RectI(src.GetLeft(), src.GetTop(), src.GetRight(), src.GetBottom()); in CheckInputImage()
226 inputMatrix.Translate(-src.GetLeft(), -src.GetTop()); in OutputOriginalImage()
229 matrix.Translate(dst.GetLeft(), dst.GetTop()); in OutputOriginalImage()
298 blurMatrix.Translate(-inParam.src.GetLeft(), -inParam.src.GetTop()); in ExecutePingPongBlur()
375 inputMatrix.Translate(-src.GetLeft(), -src.GetTop()); in ApplyBlur()
378 matrix.Translate(dst.GetLeft(), dst.GetTop()); in ApplyBlur()
/foundation/graphic/graphic_utils_lite/interfaces/kits/gfx_utils/
H A Dgeometry2d.h154 vertexes_[0].x_ = rect.GetLeft(); in Polygon()
163 vertexes_[3].x_ = rect.GetLeft(); in Polygon()
235 vertexes_[0].x_ = rect.GetLeft();
244 vertexes_[3].x_ = rect.GetLeft();
/foundation/graphic/graphic_utils_lite/test/
H A Drect_unit_test.cpp83 EXPECT_EQ(rect_->GetLeft(), 0); in HWTEST_F()
105 EXPECT_EQ(rect_->GetLeft(), 0); in HWTEST_F()
175 * @tc.desc: Verify GetLeft function, equal.
186 EXPECT_EQ(rect_->GetLeft(), TEST_VALUE); in HWTEST_F()
250 EXPECT_EQ(rect_->GetLeft(), TEST_VALUE); in HWTEST_F()
284 EXPECT_EQ(rect_->GetLeft(), TEST_VALUE); in HWTEST_F()
335 EXPECT_EQ(rect_->GetLeft(), TEST_VALUE); in HWTEST_F()
400 EXPECT_EQ(rect_->GetLeft(), 0); in HWTEST_F()
477 EXPECT_EQ(rect1->GetLeft(), MIN_VALUE); in HWTEST_F()
/foundation/graphic/graphic_utils_lite/interfaces/kits/gfx_utils/diagram/common/
H A Dcommon_clip_operate.h78 return ((x < clipBox.GetLeft()) << 0x02) | (x > clipBox.GetRight()); in ClippingFlagsX()
91 return ((x < clipBox.GetLeft()) << 0x02) | ((y < clipBox.GetTop()) << 0x03) | in ClippingFlags()
/foundation/arkui/ui_lite/frameworks/components/
H A Dui_scroll_view.cpp112 if (childRect.GetLeft() - scrollBlankSize_ >= 0 || childRect.GetRight() + scrollBlankSize_ <= GetWidth()) { in OnRotateEvent()
152 if (childRect.GetLeft() - scrollBlankSize_ >= 0 || childRect.GetRight() + scrollBlankSize_ <= GetWidth()) { in SetIsEdge()
192 if (childRect.GetLeft() > scrollBlankSize_ + reboundSize) { in DragXInner()
194 } else if ((childRect.GetLeft() + distance) > scrollBlankSize_ + reboundSize) { in DragXInner()
195 distance = scrollBlankSize_ - childRect.GetLeft() + reboundSize; in DragXInner()
276 xScrollBar_->SetScrollProgress(static_cast<float>(scrollBlankSize_ - childrenRect.GetLeft()) / in RefreshScrollBar()
288 int16_t left = rect.GetLeft(); in CalculateReboundDistance()
H A Dui_surface_view.cpp53 x = GetRect().GetLeft(); in SetPosition()
66 x = GetRect().GetLeft(); in SetPosition()
112 x = GetRect().GetLeft(); in SetX()
H A Dui_box_scroll_bar.cpp51 rect.SetRect(backgroundRect_.GetLeft(), forgroundTop, backgroundRect_.GetRight(), in OnDraw()
58 int16_t forgroundLeft = backgroundRect_.GetLeft() + in OnDraw()
H A Dui_circle_progress.cpp97 arcinfo.center.x = center_.x + rect.GetLeft() + style_->paddingLeft_ + style_->borderWidth_; in DrawCommonCircle()
101 arcinfo.imgPos.x = backgroundImagePos_.x + rect.GetLeft(); in DrawCommonCircle()
111 arcinfo.imgPos.x = progressImagePos_.x + rect.GetLeft(); in DrawCommonCircle()
/foundation/graphic/graphic_2d/rosen/modules/render_service/core/drawable/
H A Drs_render_node_drawable_autocache.cpp98 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 Dge_linear_gradient_blur_shader_filter.cpp85 rect.Offset(-clipIPadding.GetLeft(), -clipIPadding.GetTop()); in ProcessImageDDGR()
196 pts[0].Set(clipBounds.GetWidth() / 2 + clipBounds.GetLeft(), clipBounds.GetTop()); // 2 middle of width;
197 pts[1].Set(clipBounds.GetWidth() / 2 + clipBounds.GetLeft(), clipBounds.GetBottom()); // 2 middle of width;
201 pts[0].Set(clipBounds.GetWidth() / 2 + clipBounds.GetLeft(), clipBounds.GetBottom()); // 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;
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());
239 pts[1].Set(clipBounds.GetLeft(), clipBound
[all...]
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/include/common/
H A Drs_rect.h109 T GetLeft() const in GetLeft() 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() in operator +=()
[all...]
/foundation/arkui/ace_engine/frameworks/core/components_ng/render/adapter/
H A Dsvg_canvas_image.cpp36 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 Drs_border_test.cpp644 borderGeo.rrect.rect_.SetLeft(rect.GetLeft()); in HWTEST_F()
648 borderGeo.innerRRect.rect_.SetLeft(rect.GetLeft() + width[RSBorder::LEFT]); in HWTEST_F()
652 borderGeo.center = { (borderGeo.innerRRect.rect_.GetLeft() + borderGeo.innerRRect.rect_.GetRight()) * 0.5, in HWTEST_F()
707 borderGeo.rrect.rect_.SetLeft(rect.GetLeft()); in HWTEST_F()
711 borderGeo.innerRRect.rect_.SetLeft(rect.GetLeft() + width[RSBorder::LEFT]); in HWTEST_F()
715 borderGeo.center = { (borderGeo.innerRRect.rect_.GetLeft() + borderGeo.innerRRect.rect_.GetRight()) * 0.5, in HWTEST_F()
770 borderGeo.rrect.rect_.SetLeft(rect.GetLeft()); in HWTEST_F()
774 borderGeo.innerRRect.rect_.SetLeft(rect.GetLeft() + width[RSBorder::LEFT]); in HWTEST_F()
778 borderGeo.center = { (borderGeo.innerRRect.rect_.GetLeft() + borderGeo.innerRRect.rect_.GetRight()) * 0.5, in HWTEST_F()
837 borderGeo.rrect.rect_.SetLeft(rect.GetLeft()); in HWTEST_F()
[all...]
/foundation/arkui/ui_lite/frameworks/draw/
H A Ddraw_rect.cpp101 int16_t col2X = rect.GetLeft() + radius - 1; in DrawRectRadiusWithoutBorderCon1()
144 int16_t col1X = rect.GetLeft(); in DrawRectRadiusWithoutBorderCon2()
145 int16_t col2X = rect.GetLeft() + radius - 1; in DrawRectRadiusWithoutBorderCon2()
182 int16_t col1X = rect.GetLeft() + radius - 1; in DrawRectRadiusWithoutBorderCon3()
204 int16_t col1X = rect.GetLeft(); in DrawRectRadiusWithoutBorderCon4()
205 int16_t col2X = rect.GetLeft() + radius - 1; in DrawRectRadiusWithoutBorderCon4()
265 int16_t col1X = rect.GetLeft(); in DrawRectBorderWithoutRadius()
266 int16_t col2X = rect.GetLeft() + style.borderWidth_ - 1; in DrawRectBorderWithoutRadius()
302 int16_t col1X = rect.GetLeft(); in DrawRectRadiusEqualBorder()
303 int16_t col2X = rect.GetLeft() in DrawRectRadiusEqualBorder()
[all...]
H A Ddraw_canvas.cpp68 renBase.ClipBox(invalidatedArea.GetLeft(), invalidatedArea.GetTop(), invalidatedArea.GetRight(), in DoRender()
119 renBase.ClipBox(invalidatedArea.GetLeft(), invalidatedArea.GetTop(), invalidatedArea.GetRight(), in DoDrawShadow()
127 bbox.SetLeft(bbox.GetLeft() - 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()
153 int16_t realLeft = rect.GetLeft() + style.paddingLeft_ + style.borderWidth_; in InitRenderAndTransform()
214 m_renBaseComp.ClipBox(invalidatedArea.GetLeft(), invalidatedArea.GetTop(), invalidatedArea.GetRight(), in RenderGradient()
288 FillPatternRgba spanPattern(imageParam->image->GetImageInfo(), paint.GetPatternRepeatMode(), rect.GetLeft(), in RenderPattern()
/foundation/arkui/ui_lite/frameworks/dock/
H A Dfocus_manager.cpp107 return ((rect1.GetLeft() < rect2.GetRight()) && (rect1.GetRight() > rect2.GetLeft())); in IsAtSameCol()
170 if (currentRect.GetLeft() <= focusedViewRect.GetLeft()) { in CompareCandidatesByRight()
176 return currentRect.GetLeft() < candidateRect.GetLeft(); in CompareCandidatesByRight()
/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_base/unittest/common/
H A Drs_rect_test.cpp120 * @tc.desc: test results of GetLeft
127 EXPECT_EQ(rect.GetLeft(), 0.f); in HWTEST_F()
176 EXPECT_EQ(rect.GetLeft(), 0.f); in HWTEST_F()
179 EXPECT_EQ(rect.GetLeft(), 1.f); in HWTEST_F()
193 EXPECT_EQ(rect.GetLeft(), 1.f); in HWTEST_F()
198 EXPECT_EQ(rect.GetLeft(), 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 Drender_base.h93 return x >= clipBox_.GetLeft() && y >= clipBox_.GetTop() && in Inbox()
111 return clipBox_.GetLeft(); in GetXMin()

Completed in 17 milliseconds

123456789