Home
last modified time | relevance | path

Searched refs:rect (Results 351 - 375 of 2377) sorted by relevance

1...<<11121314151617181920>>...96

/foundation/arkui/ace_engine/frameworks/core/components/slider/
H A Drosen_render_circle_block.cpp59 SkRect rect = SkRect::MakeXYWH(frame.x_ - radius, frame.y_ - radius, diameter, diameter); in SyncGeometryProperties() local
65 SkRect spotRect = SkRect::MakeLTRB(rect.left() * spotRatio, rect.top() * spotRatio, in SyncGeometryProperties()
66 rect.right() * spotRatio, rect.bottom() * spotRatio); in SyncGeometryProperties()
70 SkRect shadowRect = rect; in SyncGeometryProperties()
91 RSRect rect = in SyncGeometryProperties() local
99 auto spotRect = RSRect(rect.GetLeft() * spotRatio, rect.GetTop() * spotRatio, in SyncGeometryProperties()
100 rect in SyncGeometryProperties()
256 SkRect rect = SkRect::MakeXYWH(offset.GetX() - radius, offset.GetY() - radius, diameter, diameter); PaintShadow() local
260 RSRect rect = PaintShadow() local
[all...]
/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_base/unittest/common/
H A Drs_occlusion_region_test.cpp55 Rect rect; in HWTEST_F() local
56 std::cout << rect; in HWTEST_F() local
57 EXPECT_TRUE(rect.left_ == 0); in HWTEST_F()
71 Rect rect; in HWTEST_F() local
72 Region region(rect); in HWTEST_F()
74 EXPECT_TRUE(rect.left_ == 0); in HWTEST_F()
259 Rect rect; in HWTEST_F() local
261 Region region1(rect); in HWTEST_F()
262 Region region2(rect); in HWTEST_F()
279 Rect rect; in HWTEST_F() local
[all...]
/kernel/linux/linux-5.10/drivers/video/fbdev/matrox/
H A Dmatroxfb_accel.c106 static void matroxfb_fillrect(struct fb_info* info, const struct fb_fillrect* rect);
108 static void matroxfb_cfb4_fillrect(struct fb_info* info, const struct fb_fillrect* rect);
327 static void matroxfb_fillrect(struct fb_info* info, const struct fb_fillrect* rect) { in matroxfb_fillrect() argument
330 switch (rect->rop) { in matroxfb_fillrect()
332 matroxfb_accel_clear(minfo, ((u_int32_t *)info->pseudo_palette)[rect->color], rect->dy, rect->dx, rect->height, rect->width); in matroxfb_fillrect()
395 static void matroxfb_cfb4_fillrect(struct fb_info* info, const struct fb_fillrect* rect) { in matroxfb_cfb4_fillrect() argument
[all...]
/kernel/linux/linux-5.10/drivers/gpu/drm/virtio/
H A Dvirtgpu_plane.c108 struct drm_rect *rect) in virtio_gpu_update_dumb_bo()
113 uint32_t w = rect->x2 - rect->x1; in virtio_gpu_update_dumb_bo()
114 uint32_t h = rect->y2 - rect->y1; in virtio_gpu_update_dumb_bo()
115 uint32_t x = rect->x1; in virtio_gpu_update_dumb_bo()
116 uint32_t y = rect->y1; in virtio_gpu_update_dumb_bo()
136 struct drm_rect rect; in virtio_gpu_primary_plane_update() local
155 if (!drm_atomic_helper_damage_merged(old_state, plane->state, &rect)) in virtio_gpu_primary_plane_update()
160 virtio_gpu_update_dumb_bo(vgdev, plane->state, &rect); in virtio_gpu_primary_plane_update()
106 virtio_gpu_update_dumb_bo(struct virtio_gpu_device *vgdev, struct drm_plane_state *state, struct drm_rect *rect) virtio_gpu_update_dumb_bo() argument
[all...]
/kernel/linux/linux-6.6/drivers/video/fbdev/matrox/
H A Dmatroxfb_accel.c106 static void matroxfb_fillrect(struct fb_info* info, const struct fb_fillrect* rect);
108 static void matroxfb_cfb4_fillrect(struct fb_info* info, const struct fb_fillrect* rect);
327 static void matroxfb_fillrect(struct fb_info* info, const struct fb_fillrect* rect) { in matroxfb_fillrect() argument
330 switch (rect->rop) { in matroxfb_fillrect()
332 matroxfb_accel_clear(minfo, ((u_int32_t *)info->pseudo_palette)[rect->color], rect->dy, rect->dx, rect->height, rect->width); in matroxfb_fillrect()
395 static void matroxfb_cfb4_fillrect(struct fb_info* info, const struct fb_fillrect* rect) { in matroxfb_cfb4_fillrect() argument
[all...]
/kernel/linux/linux-6.6/drivers/gpu/drm/virtio/
H A Dvirtgpu_plane.c113 struct drm_rect *rect) in virtio_gpu_update_dumb_bo()
118 uint32_t w = rect->x2 - rect->x1; in virtio_gpu_update_dumb_bo()
119 uint32_t h = rect->y2 - rect->y1; in virtio_gpu_update_dumb_bo()
120 uint32_t x = rect->x1; in virtio_gpu_update_dumb_bo()
121 uint32_t y = rect->y1; in virtio_gpu_update_dumb_bo()
177 struct drm_rect rect; in virtio_gpu_primary_plane_update() local
196 if (!drm_atomic_helper_damage_merged(old_state, plane->state, &rect)) in virtio_gpu_primary_plane_update()
201 virtio_gpu_update_dumb_bo(vgdev, plane->state, &rect); in virtio_gpu_primary_plane_update()
111 virtio_gpu_update_dumb_bo(struct virtio_gpu_device *vgdev, struct drm_plane_state *state, struct drm_rect *rect) virtio_gpu_update_dumb_bo() argument
[all...]
/third_party/skia/samplecode/
H A DSampleFilterBounds.cpp31 static float print_size(SkCanvas* canvas, const char* prefix, const SkIRect& rect, in print_size() argument
36 sz.appendf("%d x %d", rect.width(), rect.height()); in print_size()
88 static SkPath create_axis_path(const SkRect& rect, float axisSpace) { in create_axis_path() argument
90 for (float y = rect.fTop + axisSpace; y <= rect.fBottom; y += axisSpace) { in create_axis_path()
91 localSpace.moveTo(rect.fLeft, y); in create_axis_path()
92 localSpace.lineTo(rect.fRight, y); in create_axis_path()
94 for (float x = rect.fLeft + axisSpace; x <= rect in create_axis_path()
126 draw_scale_factors(SkCanvas* canvas, const skif::Mapping& mapping, const SkRect& rect) draw_scale_factors() argument
[all...]
/foundation/graphic/graphic_2d/rosen/test/2d_graphics/drawing/test_case/
H A Ddraw_rect_test.cpp24 auto rect = Drawing::Rect(0, 0, 100, 100); // xy (0, 0), size 100*100 in OnTestFunction() local
25 canvas->DrawRect(rect); in OnTestFunction()
33 auto rect = Drawing::Rect(0, 0, 100, 100); // xy (0, 0), size 100*100 in OnTestPerformance() local
35 canvas->DrawRect(rect); in OnTestPerformance()
/kernel/linux/linux-6.6/include/drm/
H A Ddrm_damage_helper.h40 * @rect: Return a rectangle in fb coordinate clipped to plane src.
46 #define drm_atomic_for_each_plane_damage(iter, rect) \
47 while (drm_atomic_helper_damage_iter_next(iter, rect))
79 struct drm_rect *rect);
82 struct drm_rect *rect);
/third_party/skia/docs/examples/
H A DRRect_Type.cpp9 auto drawRRectType = [=](const SkRect& rect, const Radii& radii) { in REG_FIDDLE()
11 rrect.setRectRadii(rect, radii.data); in REG_FIDDLE()
14 const char* typeStr[] = { "empty", "rect", "oval", "simple", "nine patch", "complex" }; in REG_FIDDLE()
15 canvas->drawString(typeStr[(int) rrect.type()], rect.centerX(), rect.bottom() + 20, paint); in REG_FIDDLE()
/third_party/skia/experimental/graphite/src/geom/
H A DIntersectionTree.h18 // add() either adds the given rect to the collection, or returns false if it intersected with a
19 // rect already in the collection.
24 bool add(Rect rect) { in add() argument
25 if (rect.isEmptyNegativeOrNaN()) { in add()
29 if (!fRoot->intersects(rect)) { in add()
30 fRoot = fRoot->addNonIntersecting(rect, &fArena); in add()
/third_party/skia/gm/
H A Dtilemodes_alpha.cpp29 SkRect rect = SkRect::MakeXYWH(128 * x + 1, 128 * y + 1, 126, 126); in DEF_SIMPLE_GM() local
30 SkMatrix matrix = SkMatrix::Translate(rect.x(), rect.y()); in DEF_SIMPLE_GM()
33 canvas->drawRect(rect, paint); in DEF_SIMPLE_GM()
/foundation/arkui/ace_engine/frameworks/core/components_ng/event/
H A Dfocus_hub.cpp1005 bool FocusHub::RequestNextFocus(FocusStep moveStep, const RectF& rect)
1011 return RequestNextFocusByDefaultAlgorithm(moveStep, rect);
1013 return RequestNextFocusByCustomAlgorithm(moveStep, rect);
1016 bool FocusHub::RequestNextFocusByDefaultAlgorithm(FocusStep moveStep, const RectF& rect)
1036 auto ret = TryRequestFocus(nextFocusHub, rect, moveStep);
1049 auto ret = GoToNextFocusLinear(moveStep, rect);
1054 bool FocusHub::RequestNextFocusByCustomAlgorithm(FocusStep moveStep, const RectF& rect)
1066 auto ret = TryRequestFocus(nextFocusHub, rect, moveStep);
1139 auto rect = geometryNode->GetFrameRect();
1140 auto centerToWindow = Offset((rect
[all...]
/foundation/arkui/ui_lite/frameworks/components/
H A Dui_checkbox.cpp129 Rect rect, in SelectedStateSoftwareDrawing()
142 baseGfxEngine->DrawRect(gfxDstBuffer, rect, trunc, styleSelect, opaScale_); in SelectedStateSoftwareDrawing()
145 Point start = {static_cast<int16_t>(rect.GetX() + dx), static_cast<int16_t>(rect.GetY() + dy)}; in SelectedStateSoftwareDrawing()
182 Rect rect, in UnSelectedStateSoftwareDrawing()
192 BaseGfxEngine::GetInstance()->DrawRect(gfxDstBuffer, rect, trunc, styleUnSelect, opaScale_); in UnSelectedStateSoftwareDrawing()
251 Rect rect(x, y, x + borderWidth_, y + borderWidth_); in OnDraw()
253 UnSelectedStateSoftwareDrawing(gfxDstBuffer, rect, trunc, borderRadius, rectLineWidth); in OnDraw()
254 SelectedStateSoftwareDrawing(gfxDstBuffer, rect, trunc, borderRadius, rectLineWidth); in OnDraw()
257 SelectedStateSoftwareDrawing(gfxDstBuffer, rect, trun in OnDraw()
128 SelectedStateSoftwareDrawing(BufferInfo& gfxDstBuffer, Rect rect, Rect trunc, int16_t borderRadius, int16_t rectLineWidth) SelectedStateSoftwareDrawing() argument
181 UnSelectedStateSoftwareDrawing(BufferInfo& gfxDstBuffer, Rect rect, Rect trunc, int16_t borderRadius, int16_t rectLineWidth) UnSelectedStateSoftwareDrawing() argument
[all...]
H A Dui_circle_progress.cpp96 Rect rect = GetOrigRect(); in DrawCommonCircle() local
97 arcinfo.center.x = center_.x + rect.GetLeft() + style_->paddingLeft_ + style_->borderWidth_; in DrawCommonCircle()
98 arcinfo.center.y = center_.y + rect.GetTop() + style_->paddingTop_ + style_->borderWidth_; in DrawCommonCircle()
101 arcinfo.imgPos.x = backgroundImagePos_.x + rect.GetLeft(); in DrawCommonCircle()
102 arcinfo.imgPos.y = backgroundImagePos_.y + rect.GetTop(); in DrawCommonCircle()
111 arcinfo.imgPos.x = progressImagePos_.x + rect.GetLeft(); in DrawCommonCircle()
112 arcinfo.imgPos.y = progressImagePos_.y + rect.GetTop(); in DrawCommonCircle()
/foundation/arkui/ace_engine_lite/test/moduletest/common/
H A Dbasic_tdd_test.cpp59 config.rect.SetRect(0, 0, width - 1, height - 1); in SetUpTestCase()
211 Rect rect = view->GetOrigRect(); in Click() local
212 int16_t x = rect.GetLeft() + rect.GetWidth() / NUMBER_TWO; in Click()
213 int16_t y = rect.GetTop() + rect.GetHeight() / NUMBER_TWO; in Click()
223 Rect rect = view->GetOrigRect(); in LongPress() local
224 int16_t x = rect.GetLeft() + rect.GetWidth() / NUMBER_TWO; in LongPress()
225 int16_t y = rect in LongPress()
[all...]
/third_party/skia/include/private/
H A DSkPathRef.h162 void setBounds(const SkRect& rect) { fPathRef->setBounds(rect); } in setBounds() argument
222 * @param rect returns the bounding rect of this oval. It's a circle
233 bool isOval(SkRect* rect, bool* isCCW, unsigned* start) const { in isOval() argument
235 if (rect) { in isOval()
236 *rect = this->getBounds(); in isOval()
397 // using an inverted rect instead of fBoundsIsDirty and always recalculating fIsFinite. in computeBounds()
404 void setBounds(const SkRect& rect) { in setBounds() argument
405 SkASSERT(rect in setBounds()
[all...]
/foundation/window/window_manager/wmserver/src/
H A Dwindow_layout_policy_cascade.cpp59 Rect rect = cascadeRectsMap_[displayId].defaultCascadeRect_; in Reorder() local
68 // if window don't support floating mode, or default rect of cascade is not satisfied with limits in Reorder()
70 !WindowHelper::IsRectSatisfiedWithSizeLimits(rect, node->GetWindowUpdatedSizeLimits())) { in Reorder()
77 rect = StepCascadeRect(rect, displayId); in Reorder()
79 node->SetRequestRect(rect); in Reorder()
89 WLOGFD("Cascade reorder Id: %{public}d, rect:[%{public}d, %{public}d, %{public}d, %{public}d]", in Reorder()
90 node->GetWindowId(), rect.posX_, rect.posY_, rect in Reorder()
215 LimitDividerInDisplayRegion(Rect& rect, DisplayId displayId) const LimitDividerInDisplayRegion() argument
239 auto rect = node->GetRequestRect(); UpdateDividerPosition() local
603 StepCascadeRect(Rect rect, DisplayId displayId) const StepCascadeRect() argument
638 Rect rect; SetDefaultCascadeRect() local
[all...]
/foundation/window/window_manager/extension/window_extension/src/zidl/
H A Dwindow_extension_proxy.cpp29 void WindowExtensionProxy::SetBounds(const Rect& rect) in SetBounds() argument
39 if (!(data.WriteInt32(rect.posX_) && data.WriteInt32(rect.posY_) && in SetBounds()
40 data.WriteUint32(rect.width_) && data.WriteUint32(rect.height_))) { in SetBounds()
41 WLOGFE("write rect failed"); in SetBounds()
/foundation/window/window_manager/test/systemtest/wms/
H A Dwindow_test_utils.h39 Rect rect; member
75 static Rect CalcLimitedRect(const Rect& rect, float virtualPixelRatio);
76 static Rect GetDecorateRect(const Rect& rect, float virtualPixelRatio);
77 static Rect GetFloatingLimitedRect(const Rect& rect, float virtualPixelRatio);
88 static AvoidPosType GetAvoidPosType(const Rect& rect);
/foundation/window/window_manager/wm/src/
H A Dgtx_input_event_sender.cpp32 void GtxInputEventSender::SetTouchEvent(Rosen::Rect rect, in SetTouchEvent() argument
46 mEvent.extent = { rect.posX_, rect.posY_, rect.width_, rect.height_ }; in SetTouchEvent()
/third_party/skia/src/gpu/
H A DGrScissorState.h29 bool set(const SkIRect& rect) { in set() argument
31 return this->intersect(rect); in set()
34 bool SK_WARN_UNUSED_RESULT intersect(const SkIRect& rect) { in intersect() argument
35 if (!fRect.intersect(rect)) { in intersect()
73 const SkIRect& rect() const { in rect() function in GrScissorState
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/scrollable/
H A Dscrollable_paint_method.cpp112 auto rect = geo->GetPaddingRect(); in TryContentClip() local
113 rect.SetOffset(rect.GetOffset() - geo->GetFrameOffset()); in TryContentClip()
114 renderContext->SetContentClip(rect); in TryContentClip()
131 auto rect = geo->GetFrameRect(); in TryContentClip() local
132 rect.SetOffset({ 0.0f, 0.0f }); in TryContentClip()
133 renderContext->SetContentClip(rect); in TryContentClip()
/foundation/graphic/graphic_2d/rosen/samples/hello_native_window/
H A Dhello_native_window.cpp104 struct Region::Rect *rect = new Region::Rect(); in main() local
105 rect->x = 0x100; in main()
106 rect->y = 0x100; in main()
107 rect->w = 0x100; in main()
108 rect->h = 0x100; in main()
109 region->rects = rect; in main()
117 delete rect; in main()
/foundation/window/window_manager/utils/src/
H A Dcutout_info.cpp65 for (DMRect rect : boundingRects) { in WriteBoundingRectsVector()
66 if (!(parcel.WriteInt32(rect.posX_) && parcel.WriteInt32(rect.posY_) && in WriteBoundingRectsVector()
67 parcel.WriteUint32(rect.width_) && parcel.WriteUint32(rect.height_))) { in WriteBoundingRectsVector()
92 DMRect rect = {posX, posY, width, height}; in ReadBoundingRectsVector() local
93 unmarBoundingRects.push_back(rect); in ReadBoundingRectsVector()

Completed in 13 milliseconds

1...<<11121314151617181920>>...96