Home
last modified time | relevance | path

Searched refs:targetRect (Results 1 – 14 of 14) sorted by relevance

/ohos5.0/foundation/window/window_manager/window_scene/session/host/src/
H A Dmove_drag_controller.cpp128 WSRect targetRect = { in GetFullScreenToFloatingRect() local
135 targetRect.posY_, targetRect.width_, targetRect.height_); in GetFullScreenToFloatingRect()
136 return targetRect; in GetFullScreenToFloatingRect()
403 targetRect.posX_ += tranX; in CalcFreeformTargetRect()
409 targetRect.posY_ += tranY; in CalcFreeformTargetRect()
416 return targetRect; in CalcFreeformTargetRect()
421 return targetRect; in CalcFreeformTargetRect()
425 return targetRect; in CalcFreeformTargetRect()
434 return targetRect; in CalcFreeformTargetRect()
765 WSRect targetRect = { in CalcFirstMoveTargetRect() local
[all …]
/ohos5.0/foundation/window/window_manager/utils/include/
H A Dwindow_helper.h268 static bool IsPointInTargetRect(int32_t pointPosX, int32_t pointPosY, const Rect& targetRect) in IsPointInTargetRect() argument
270 if ((pointPosX > targetRect.posX_) && in IsPointInTargetRect()
271 (pointPosX < (targetRect.posX_ + static_cast<int32_t>(targetRect.width_)) - 1) && in IsPointInTargetRect()
272 (pointPosY > targetRect.posY_) && in IsPointInTargetRect()
273 (pointPosY < (targetRect.posY_ + static_cast<int32_t>(targetRect.height_)) - 1)) { in IsPointInTargetRect()
279 …tic bool IsPointInTargetRectWithBound(int32_t pointPosX, int32_t pointPosY, const Rect& targetRect) in IsPointInTargetRectWithBound() argument
281 if ((pointPosX >= targetRect.posX_) && in IsPointInTargetRectWithBound()
282 (pointPosX < (targetRect.posX_ + static_cast<int32_t>(targetRect.width_))) && in IsPointInTargetRectWithBound()
283 (pointPosY >= targetRect.posY_) && in IsPointInTargetRectWithBound()
284 (pointPosY < (targetRect.posY_ + static_cast<int32_t>(targetRect.height_)))) { in IsPointInTargetRectWithBound()
/ohos5.0/foundation/window/window_manager/wmserver/src/
H A Dwindow_root.cpp711 Rect targetRect = displayRect; in GetDisplayRectWithoutSystemBarAreas() local
716 targetRect.height_ = displayRect.width_; in GetDisplayRectWithoutSystemBarAreas()
717 targetRect.width_ = displayRect.height_; in GetDisplayRectWithoutSystemBarAreas()
718 return targetRect; in GetDisplayRectWithoutSystemBarAreas()
724 targetRect.posY_ = displayRect.posY_ + static_cast<int32_t>( in GetDisplayRectWithoutSystemBarAreas()
726 targetRect.height_ -= systemBarRects[WindowType::WINDOW_TYPE_STATUS_BAR].second.height_; in GetDisplayRectWithoutSystemBarAreas()
728 targetRect.posX_, targetRect.posY_, targetRect.width_, targetRect.height_); in GetDisplayRectWithoutSystemBarAreas()
732 return targetRect; in GetDisplayRectWithoutSystemBarAreas()
734 targetRect.height_ -= systemBarRects[WindowType::WINDOW_TYPE_NAVIGATION_BAR].second.height_; in GetDisplayRectWithoutSystemBarAreas()
736 targetRect.posX_, targetRect.posY_, targetRect.width_, targetRect.height_); in GetDisplayRectWithoutSystemBarAreas()
[all …]
/ohos5.0/foundation/window/window_manager/window_scene/test/dms_unittest/
H A Dscreen_scene_config_test.cpp474 DMRect targetRect{507, 18, 66, 66}; // the rect size after svg parsing variable
475 EXPECT_EQ(result[0].posX_, targetRect.posX_);
476 EXPECT_EQ(result[0].posY_, targetRect.posY_);
477 EXPECT_EQ(result[0].width_, targetRect.width_);
478 EXPECT_EQ(result[0].height_, targetRect.height_);
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/pipeline/
H A Drs_dirty_region_manager.cpp125 bool RSDirtyRegionManager::IfCacheableFilterRectFullyCover(const RectI& targetRect) in IfCacheableFilterRectFullyCover() argument
128 if (targetRect.IsInsideOf(rect)) { in IfCacheableFilterRectFullyCover()
H A Drs_surface_render_node.cpp1665 …ode::CheckValidFilterCacheFullyCoverTarget(const RSRenderNode& filterNode, const RectI& targetRect) in CheckValidFilterCacheFullyCoverTarget() argument
1674 isFilterCacheFullyCovered_ = targetRect.IsInsideOf(filterNode.GetFilterCachedRegion()); in CheckValidFilterCacheFullyCoverTarget()
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/params/
H A Drs_surface_render_params.cpp123 bool isFilterCacheValidForOcclusion, const RectI& filterCachedRect, const RectI& targetRect) in CheckValidFilterCacheFullyCoverTarget() argument
129 isFilterCacheFullyCovered_ = targetRect.IsInsideOf(filterCachedRect); in CheckValidFilterCacheFullyCoverTarget()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/animation/
H A Dgeometry_transition.cpp314 auto targetRect = target->IsRemoving() ? RectF(outNodePos_, outNodeSize_) : in SyncGeometry() local
316 auto targetPos = targetRect.GetOffset(); in SyncGeometry()
334 outNodeTargetAbsRect_ = targetRect; in SyncGeometry()
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_base/include/pipeline/
H A Drs_dirty_region_manager.h77 bool IfCacheableFilterRectFullyCover(const RectI& targetRect);
H A Drs_surface_render_node.h965 …oid CheckValidFilterCacheFullyCoverTarget(const RSRenderNode& filterNode, const RectI& targetRect);
/ohos5.0/foundation/window/window_manager/window_scene/test/unittest/
H A Dmove_drag_controller_test.cpp787 WSRect targetRect = moveDragController->GetTargetRect(); variable
788 ASSERT_EQ(targetRect.posX_, 0);
811 WSRect targetRect = { 1, 2, 7, 8 }; variable
812 ASSERT_EQ(targetRect.posX_, rect.posX_);
/ohos5.0/foundation/graphic/graphic_2d/rosen/modules/render_service_base/include/params/
H A Drs_surface_render_params.h326 … bool isFilterCacheValidForOcclusion, const RectI& filterCachedRect, const RectI& targetRect);
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/menu/
H A Dmenu_layout_algorithm.cpp2494 …Rect targetRect = Rect(targetOffset_.GetX(), targetOffset_.GetY(), targetSize_.Width(), targetSize… in CheckPosition() local
2500 auto y = std::max<float>(targetRect.Bottom(), yAvoid); in CheckPosition()
2502 … wrapperRect_.Bottom() - targetRect.Bottom() - paddingBottom_ - param_.bottomSecurity, maxHeight); in CheckPosition()
2510 auto height = std::min<float>(targetRect.Top() - yAvoid, maxHeight); in CheckPosition()
2518 auto x = std::max<float>(targetRect.Right(), xAvoid); in CheckPosition()
2519 … auto width = std::min<float>(wrapperRect_.Right() - targetRect.Right() - paddingEnd_, maxWidth); in CheckPosition()
2527 auto width = std::min<float>(targetRect.Left() - xAvoid, maxWidth); in CheckPosition()
/ohos5.0/foundation/graphic/graphic_2d/rosen/test/render_service/render_service_base/unittest/pipeline/
H A Drs_surface_render_node_test.cpp1670 RectI targetRect; variable
1671 node->CheckValidFilterCacheFullyCoverTarget(filterNode, targetRect);