Home
last modified time | relevance | path

Searched refs:GetLeft (Results 1 – 25 of 232) sorted by relevance

12345678910

/ohos5.0/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()
193 LineClipY(rasterLine, clipBox_.GetLeft(), y1, clipBox_.GetLeft(), yPilotOne, in LineTo()
195 LineClipY(rasterLine, clipBox_.GetLeft(), yPilotOne, x2, y2, in LineTo()
206 LineClipY(rasterLine, clipBox_.GetLeft(), y1, clipBox_.GetLeft(), yPilotOne, in LineTo()
208 LineClipY(rasterLine, clipBox_.GetLeft(), yPilotOne, clipBox_.GetRight(), yPilotTwo, in LineTo()
[all …]
/ohos5.0/foundation/graphic/graphic_2d/rosen/samples/2d_graphics/test/src/
H A Dpath_test.cpp111 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()
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()
192 path2.LineTo(rect.GetLeft(), rect.GetBottom()); in TestCubicTo()
211 path.MoveTo(rect.GetLeft(), rect.GetTop()); in TestQuadTo()
216 path2.MoveTo(rect.GetLeft(), rect.GetTop()); in TestQuadTo()
318 std::vector<Point> points = { Point(rect.GetLeft(), rect.GetTop()), in TestAddPoly()
[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()
121 Point c(rect.GetLeft() + rect.GetWidth() / 2.0f, in TestPenMiterLimit()
189 Rect rect1(rect.GetLeft() + margin, rect.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/test/2d_graphics/unittest/utils/
H A Drect_test.cpp50 EXPECT_EQ(0.0f, rectF->GetLeft());
68 EXPECT_EQ(rectf1.GetLeft(), rectf2.GetLeft());
83 EXPECT_EQ(rectf1.GetLeft(), rectf2.GetLeft());
96 EXPECT_EQ(1.0f, rectF->GetLeft());
112 EXPECT_EQ(4.0f, rectF->GetLeft());
155 EXPECT_EQ(1.0f, rectF->GetLeft());
169 EXPECT_EQ(2.0f, rectF->GetLeft());
267 EXPECT_EQ(2.0f, rectF->GetLeft());
489 EXPECT_EQ(recti1.GetLeft(), recti2.GetLeft());
504 EXPECT_EQ(recti1.GetLeft(), recti2.GetLeft());
[all …]
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_client/core/pipeline/
H A Drs_render_thread_util.cpp52 srcRect = Drawing::Rect(srcRect.GetLeft() + static_cast<int32_t>(halfdw), srcRect.GetTop(), in SrcRectScaleDown()
53 srcRect.GetLeft() + static_cast<int32_t>(halfdw) + static_cast<int32_t>(newWidth), in SrcRectScaleDown()
59 srcRect = Drawing::Rect(srcRect.GetLeft(), srcRect.GetTop() + static_cast<int32_t>(halfdh), in SrcRectScaleDown()
60 srcRect.GetLeft() + srcRect.GetWidth(), in SrcRectScaleDown()
93 …dstRect = Drawing::Rect(srcRect.GetLeft() + halfdw, srcRect.GetTop(), srcRect.GetLeft() + halfdw +… in SrcRectScaleFit()
97 …dstRect = Drawing::Rect(srcRect.GetLeft(), srcRect.GetTop() + halfdh, srcRect.GetLeft() + srcRect.… in SrcRectScaleFit()
/ohos5.0/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()
/ohos5.0/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_.Get… 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_.Get… 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.cpp154 dst.SetLeft(dst.GetLeft() - (realSize.width - src.GetRight()) / HALF_F); in TransformDataSetForAstc()
163 …matrix.PostScale(transformData.scaleX, transformData.scaleY, dst.GetLeft() / HALF_F + dst.GetRight… in TransformDataSetForAstc()
165 matrix.PostRotate(transformData.rotateD, dst.GetLeft() / HALF_F + dst.GetRight() / HALF_F, in TransformDataSetForAstc()
168 matrix.PostScale(-1, 1, dst.GetLeft() / HALF_F + dst.GetRight() / HALF_F, in TransformDataSetForAstc()
172 matrix.PostScale(1, -1, dst.GetLeft() / HALF_F + dst.GetRight() / HALF_F, in TransformDataSetForAstc()
181 src.SetLeft(src.GetLeft() + transformData.cropLeft); in TransformDataSetForAstc()
185 dst.SetLeft(dst.GetLeft() + (realSize.width - transformData.cropWidth) / HALF_F); in TransformDataSetForAstc()
191 dst.SetLeft(dst.GetLeft() + transformData.translateX / HALF_F / abs(transformData.scaleX)); in TransformDataSetForAstc()
H A Drs_border.cpp559 float offsetX = borderGeo.rrect.GetRect().GetLeft(); in CalcBorderPath()
616 float offsetX = borderGeo.rrect.GetRect().GetLeft(); in DrawTopBorder()
645 float offsetX = borderGeo.rrect.GetRect().GetLeft(); in DrawRightBorder()
672 float offsetX = borderGeo.rrect.GetRect().GetLeft(); in DrawBottomBorder()
699 float offsetX = borderGeo.rrect.GetRect().GetLeft(); in DrawLeftBorder()
751 y = rrect.GetRect().GetTop() + (x - rrect.GetRect().GetLeft()) * k; in GetTLIP()
758 x = rrect.GetRect().GetLeft() + (y - rrect.GetRect().GetTop()) / k; in GetTLIP()
761 x = rrect.GetRect().GetLeft(); in GetTLIP()
808 x = rrect.GetRect().GetLeft() + rrect.GetRect().GetWidth(); in GetTRIP()
855 x = rrect.GetRect().GetLeft(); in GetBLIP()
[all …]
/ohos5.0/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_base/unittest/render/
H A Drs_border_test.cpp645 borderGeo.rrect.rect_.SetLeft(rect.GetLeft());
708 borderGeo.rrect.rect_.SetLeft(rect.GetLeft());
771 borderGeo.rrect.rect_.SetLeft(rect.GetLeft());
838 borderGeo.rrect.rect_.SetLeft(rect.GetLeft());
889 borderGeo.rrect.rect_.SetLeft(rect.GetLeft());
946 borderGeo.rrect.rect_.SetLeft(rect.GetLeft());
1010 borderGeo.rrect.rect_.SetLeft(rect.GetLeft());
1058 borderGeo.rrect.rect_.SetLeft(rect.GetLeft());
1108 borderGeo.rrect.rect_.SetLeft(rect.GetLeft());
1158 borderGeo.rrect.rect_.SetLeft(rect.GetLeft());
[all …]
/ohos5.0/foundation/window/window_manager_lite/services/wms/
H A Dlite_wm.cpp24 #define EXPAND_RECT(x) x.GetLeft(), x.GetTop(), x.GetRight(), x.GetBottom()
155 if (rect.GetLeft() == point.x && rect.GetTop() == point.y) { in UpdateMouseCursor()
261 int16_t x1 = mask.GetLeft(); in Resize()
431 if (x1 != mask.GetLeft()) { in CalculateUpdateRegion()
535 int x = mask.GetLeft(); in DrawRegion()
543 srcRect.SetPosition(mask.GetLeft() - winRect.GetLeft(), mask.GetTop() - winRect.GetTop()); in DrawRegion()
548 if (x1 != mask.GetLeft()) { in DrawRegion()
549 DrawRegion(winNode->next_, x1, y1, mask.GetLeft() - 1, y2); in DrawRegion()
553 DrawRegion(winNode->next_, mask.GetLeft(), y1, x2, mask.GetTop() - 1); in DrawRegion()
573 x1 = rect.GetLeft(); in DrawBackground()
[all …]
/ohos5.0/foundation/graphic/graphic_utils_lite/test/
H A Drect_unit_test.cpp83 EXPECT_EQ(rect_->GetLeft(), 0);
105 EXPECT_EQ(rect_->GetLeft(), 0);
186 EXPECT_EQ(rect_->GetLeft(), TEST_VALUE);
250 EXPECT_EQ(rect_->GetLeft(), TEST_VALUE);
284 EXPECT_EQ(rect_->GetLeft(), TEST_VALUE);
335 EXPECT_EQ(rect_->GetLeft(), TEST_VALUE);
400 EXPECT_EQ(rect_->GetLeft(), 0);
477 EXPECT_EQ(rect1->GetLeft(), MIN_VALUE);
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_base/include/common/
H A Drs_rect.h109 T GetLeft() const in GetLeft() 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 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 … in GetGEGradientDirectionPoints()
197 …pts[1].Set(clipBounds.GetWidth() / 2 + clipBounds.GetLeft(), clipBounds.GetBottom()); // 2 middle… in GetGEGradientDirectionPoints()
206 …pts[0].Set(clipBounds.GetLeft(), clipBounds.GetHeight() / 2 + clipBounds.GetTop()); // 2 middle o… in GetGEGradientDirectionPoints()
214 …pts[1].Set(clipBounds.GetLeft(), clipBounds.GetHeight() / 2 + clipBounds.GetTop()); // 2 middle o… in GetGEGradientDirectionPoints()
228 pts[0].Set(clipBounds.GetLeft(), clipBounds.GetTop()); in ProcessGradientDirectionPoints()
234 pts[1].Set(clipBounds.GetLeft(), clipBounds.GetTop()); in ProcessGradientDirectionPoints()
239 pts[1].Set(clipBounds.GetLeft(), clipBounds.GetBottom()); in ProcessGradientDirectionPoints()
243 pts[0].Set(clipBounds.GetLeft(), clipBounds.GetBottom()); in ProcessGradientDirectionPoints()
385 blurMatrix.PostTranslate(dst.GetLeft(), dst.GetTop()); in DrawMeanLinearGradientBlur()
[all …]
/ohos5.0/foundation/arkui/ui_lite/frameworks/components/
H A Dui_scroll_view.cpp112 …if (childRect.GetLeft() - scrollBlankSize_ >= 0 || childRect.GetRight() + scrollBlankSize_ <= GetW… in OnRotateEvent()
152 …if (childRect.GetLeft() - scrollBlankSize_ >= 0 || childRect.GetRight() + scrollBlankSize_ <= GetW… 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_box_progress.cpp43 cordsTmp.SetPosition(area.GetLeft() - radius, area.GetTop()); in DrawValidRect()
46 cordsTmp.SetPosition(area.GetLeft(), area.GetTop() - radius); in DrawValidRect()
52 cordsTmp.SetPosition(area.GetLeft(), area.GetBottom() + radius - header.height); in DrawValidRect()
88 leftTop.x = rect.GetLeft() - 1; in DrawRoundCap()
101 leftTop.x = rect.GetLeft() + radius - 1; in DrawRoundCap()
211 …startPoint.x = rect.GetLeft() + style_->borderWidth_ + style_->paddingLeft_ + (GetWidth() - progre… in GetBackgroundParam()
/ohos5.0/foundation/arkui/ui_lite/frameworks/draw/
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(), shadowRe… in DoDrawShadow()
153 int16_t realLeft = rect.GetLeft() + style.paddingLeft_ + style.borderWidth_; in InitRenderAndTransform()
214 …m_renBaseComp.ClipBox(invalidatedArea.GetLeft(), invalidatedArea.GetTop(), invalidatedArea.GetRigh… in RenderGradient()
288 …rnRgba spanPattern(imageParam->image->GetImageInfo(), paint.GetPatternRepeatMode(), rect.GetLeft(), in RenderPattern()
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()
302 int16_t col1X = rect.GetLeft(); in DrawRectRadiusEqualBorder()
372 int16_t radiusCol1X = rect.GetLeft(); in DrawRectRadiusSmallThanBorder()
541 int16_t col1X = rect.GetLeft(); in DrawRectRadiusBiggerThanBorderCon2()
[all …]
/ohos5.0/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_base/unittest/common/
H A Drs_rect_test.cpp127 EXPECT_EQ(rect.GetLeft(), 0.f);
176 EXPECT_EQ(rect.GetLeft(), 0.f);
179 EXPECT_EQ(rect.GetLeft(), 1.f);
193 EXPECT_EQ(rect.GetLeft(), 1.f);
198 EXPECT_EQ(rect.GetLeft(), 0.f);
317 …std::string str = std::string("[") + std::to_string(rect.GetLeft()) + ", " + std::to_string(rect.G…
/ohos5.0/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();
/ohos5.0/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()
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service/core/drawable/
H A Drs_render_node_drawable_autocache.cpp99 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/web/webview/ohos_interface/ohos_glue/ohos_adapter/bridge/webview/
H A Dark_imfcursor_info_adapter_wrapper.cpp25 double ArkIMFCursorInfoAdapterWrapper::GetLeft() in GetLeft() function in OHOS::ArkWeb::ArkIMFCursorInfoAdapterWrapper
27 return ctocpp_->GetLeft(); in GetLeft()
/ohos5.0/base/web/webview/ohos_interface/ohos_glue/ohos_adapter/bridge/webcore/
H A Dark_imf_cursor_info_adapter_impl.cpp24 double ArkIMFCursorInfoAdapterImpl::GetLeft() in GetLeft() function in OHOS::ArkWeb::ArkIMFCursorInfoAdapterImpl
26 return real_->GetLeft(); in GetLeft()
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/2d_graphics/include/utils/
H A Drect.h52 inline int32_t GetLeft() const;
124 : left_(r.GetLeft()), top_(r.GetTop()), right_(r.GetRight()), bottom_(r.GetBottom()) in RectI()
148 inline int32_t RectI::GetLeft() const in GetLeft() function
274 inline scalar GetLeft() const;
319 : left_(r.GetLeft()), top_(r.GetTop()), right_(r.GetRight()), bottom_(r.GetBottom()) in RectF()
323 : left_(r.GetLeft()), top_(r.GetTop()), right_(r.GetRight()), bottom_(r.GetBottom()) in RectF()
340 inline scalar RectF::GetLeft() const in GetLeft() function

12345678910