/foundation/window/window_manager/wmserver/src/ |
D | drag_controller.cpp | 338 void MoveDragController::CalculateNewWindowRect(Rect& newRect, DisplayId displayId, int32_t posX, i… in CalculateNewWindowRect() argument 358 newRect.posX_ += diffX; in CalculateNewWindowRect() 359 newRect.width_ = static_cast<uint32_t>(static_cast<int32_t>(newRect.width_) - diffX); in CalculateNewWindowRect() 364 newRect.width_ = static_cast<uint32_t>(static_cast<int32_t>(newRect.width_) + diffX); in CalculateNewWindowRect() 370 newRect.posY_ += diffY; in CalculateNewWindowRect() 371 newRect.height_ = static_cast<uint32_t>(static_cast<int32_t>(newRect.height_) - diffY); in CalculateNewWindowRect() 376 newRect.height_ = static_cast<uint32_t>(static_cast<int32_t>(newRect.height_) + diffY); in CalculateNewWindowRect() 388 Rect newRect = moveDragProperty_->startPointRect_; in HandleDragEvent() local 389 CalculateNewWindowRect(newRect, displayId, posX, posY); in HandleDragEvent() 391 …Rect(displayId, DisplayGroupInfo::GetInstance().GetDisplayVirtualPixelRatio(displayId), newRect)) { in HandleDragEvent() [all …]
|
D | window_layout_policy_cascade.cpp | 334 auto newRect = node->GetRequestRect(); in ComputeRectByAspectRatio() local 336 newRect.width_ -= winFrameW; in ComputeRectByAspectRatio() 337 newRect.height_ -= winFrameH; in ComputeRectByAspectRatio() 339 auto oriRect = newRect; in ComputeRectByAspectRatio() 342 newRect.width_ = std::max(newLimits.minWidth_, newRect.width_); in ComputeRectByAspectRatio() 343 newRect.height_ = std::max(newLimits.minHeight_, newRect.height_); in ComputeRectByAspectRatio() 344 newRect.width_ = std::min(newLimits.maxWidth_, newRect.width_); in ComputeRectByAspectRatio() 345 newRect.height_ = std::min(newLimits.maxHeight_, newRect.height_); in ComputeRectByAspectRatio() 346 float curRatio = static_cast<float>(newRect.width_) / static_cast<float>(newRect.height_); in ComputeRectByAspectRatio() 350 … newRect.width_ = static_cast<uint32_t>(static_cast<float>(newRect.height_) * aspectRatio); in ComputeRectByAspectRatio() [all …]
|
D | window_layout_policy.cpp | 128 Rect newRect = node->GetRequestRect(); in UpdateRectInDisplayGroup() local 130 …"%{public}d, %{public}d]", node->GetWindowId(), newRect.posX_, newRect.posY_, newRect.width_, newR… in UpdateRectInDisplayGroup() 132 newRect.posX_ = newRect.posX_ - oriDisplayRect.posX_ + newDisplayRect.posX_; in UpdateRectInDisplayGroup() 133 newRect.posY_ = newRect.posY_ - oriDisplayRect.posY_ + newDisplayRect.posY_; in UpdateRectInDisplayGroup() 134 node->SetRequestRect(newRect); in UpdateRectInDisplayGroup() 136 …"%{public}d, %{public}d]", node->GetWindowId(), newRect.posX_, newRect.posY_, newRect.width_, newR… in UpdateRectInDisplayGroup()
|
D | display_group_controller.cpp | 324 Rect newRect = node->GetRequestRect(); in MoveNotCrossNodeToDefaultDisplay() local 326 …newRect.posX_ = static_cast<int32_t>(dstDisplayRect.width_ / 2); // default pointerX : displayRect… in MoveNotCrossNodeToDefaultDisplay() 327 …newRect.posY_ = static_cast<int32_t>(dstDisplayRect.height_ / 2); // default pointerY : displayRec… in MoveNotCrossNodeToDefaultDisplay() 329 newRect.posX_ = newRect.posX_ - srcDisplayRect.posX_ + dstDisplayRect.posX_; in MoveNotCrossNodeToDefaultDisplay() 330 newRect.posY_ = newRect.posY_ - srcDisplayRect.posY_ + dstDisplayRect.posY_; in MoveNotCrossNodeToDefaultDisplay() 333 node->SetRequestRect(newRect); in MoveNotCrossNodeToDefaultDisplay()
|
D | window_controller.cpp | 538 Rect newRect = callingWindowRect; in ResizeSoftInputCallingWindowIfNeed() local 540 newRect.posY_ = softInputWindowRect.posY_ - static_cast<int32_t>(newRect.height_); in ResizeSoftInputCallingWindowIfNeed() 546 newRect.posY_ = std::max(newRect.posY_, in ResizeSoftInputCallingWindowIfNeed() 553 NotifyInputCallingWindowRectAndOccupiedAreaChange(callingWindow, newRect, softInputWindowRect); in ResizeSoftInputCallingWindowIfNeed() 693 Rect newRect; in ResizeRect() local 695 newRect = { rect.posX_, rect.posY_, lastRect.width_, lastRect.height_ }; in ResizeRect() 699 newRect = lastRect; in ResizeRect() 701 newRect.posX_ = lastRect.posX_; in ResizeRect() 703 newRect.posY_ = lastRect.posY_; in ResizeRect() 707 newRect = { lastRect.posX_, lastRect.posY_, rect.width_, rect.height_ }; in ResizeRect() [all …]
|
/foundation/window/window_manager/wmserver/test/unittest/ |
D | window_layout_policy_test.cpp | 657 auto newRect = node->GetWindowRect(); variable 658 newRect.height_ = 400; // maxHeight: 400 659 node->SetWindowRect(newRect); 662 newRect = { 200, 200, 500, 200 }; // rect: 200, 200, 500, 200 663 node->SetWindowRect(newRect); 666 newRect = { 200, 200, 100, 200 }; // rect: 200, 200, 100, 200 667 node->SetWindowRect(newRect); 683 Rect newRect = { 200, 200, 300, 200 }; // rect: 200, 200, 300, 200 variable 685 node->SetWindowRect(newRect); 698 newRect = { 200, 200, 400, 200 }; // rect: 200, 200, 400, 200 [all …]
|
/foundation/arkui/ace_engine/frameworks/core/components/mouse_listener/ |
D | render_mouse_listener.cpp | 62 Rect newRect = rect; in UpdateTouchRect() local 63 newRect.SetOffset(rect.GetOffset() + GetPaintRect().GetOffset()); in UpdateTouchRect() 64 touchRectList_.emplace_back(newRect); in UpdateTouchRect()
|
/foundation/window/window_manager/wm/src/ |
D | window_scene_session_impl.cpp | 624 Rect newRect = { x, y, requestRect.width_, requestRect.height_ }; // must keep x/y in MoveTo() local 630 windowRect.width_, windowRect.height_, newRect.posX_, newRect.posY_, in MoveTo() 631 newRect.width_, newRect.height_); in MoveTo() 633 property_->SetRequestRect(newRect); in MoveTo() 634 WSRect wsRect = { newRect.posX_, newRect.posY_, newRect.width_, newRect.height_ }; in MoveTo() 732 Rect newRect = { requestRect.posX_, requestRect.posY_, width, height }; // must keep w/h in Resize() local 738 windowRect.width_, windowRect.height_, newRect.posX_, newRect.posY_, in Resize() 739 newRect.width_, newRect.height_); in Resize() 741 property_->SetRequestRect(newRect); in Resize() 742 WSRect wsRect = { newRect.posX_, newRect.posY_, newRect.width_, newRect.height_ }; in Resize()
|
/foundation/graphic/graphic_2d/rosen/modules/render_service_base/src/pipeline/ |
D | rs_dirty_region_manager.cpp | 145 RectI newRect = rect; in GetPixelAlignedRect() local 151 newRect = RectI(left, top, width, height); in GetPixelAlignedRect() 153 return newRect; in GetPixelAlignedRect()
|
/foundation/arkui/ace_engine/frameworks/core/components/gesture_listener/ |
D | render_gesture_listener.cpp | 483 Rect newRect = rect; in UpdateTouchRect() local 484 newRect.SetOffset(rect.GetOffset() + GetPaintRect().GetOffset()); in UpdateTouchRect() 485 touchRectList_.emplace_back(newRect); in UpdateTouchRect()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/scrollable/ |
D | scrollable_pattern.cpp | 812 auto newRect = selectedZone; in HandleInvisibleItemsSelectedStatus() local 817 newRect.SetOffset(OffsetF(selectedZone.Left(), totalOffsetOfMousePressed_)); in HandleInvisibleItemsSelectedStatus() 819 newRect.SetOffset(OffsetF(totalOffsetOfMousePressed_, selectedZone.Top())); in HandleInvisibleItemsSelectedStatus() 823 newRect.SetOffset( in HandleInvisibleItemsSelectedStatus() 826 newRect.SetOffset( in HandleInvisibleItemsSelectedStatus() 832 item.second.FireSelectChangeEvent(newRect.IsIntersectWith(item.second.rect)); in HandleInvisibleItemsSelectedStatus()
|
/foundation/window/window_manager/wmserver/include/ |
D | drag_controller.h | 96 void CalculateNewWindowRect(Rect& newRect, DisplayId displayId, int32_t posX, int32_t posY);
|
/foundation/window/window_manager/window_scene/session_manager/src/ |
D | scene_session_manager.cpp | 2803 WSRect newRect = callingSessionRect; in ResizeSoftInputCallingSessionIfNeed() local 2804 newRect.posY_ = softInputSessionRect.posY_ - static_cast<int32_t>(newRect.height_); in ResizeSoftInputCallingSessionIfNeed() 2805 newRect.posY_ = std::max(newRect.posY_, STATUS_BAR_AVOID_AREA); in ResizeSoftInputCallingSessionIfNeed() 2808 NotifyOccupiedAreaChangeInfo(callingSession_, newRect, softInputSessionRect); in ResizeSoftInputCallingSessionIfNeed() 2809 callingSession_->UpdateSessionRect(newRect, SizeChangeReason::UNDEFINED); in ResizeSoftInputCallingSessionIfNeed()
|
/foundation/arkui/ace_engine/frameworks/core/components_ng/render/adapter/ |
D | rosen_render_context.cpp | 1353 auto newRect = GetPaintRectWithoutTransform(); in GetPaintRectWithTransform() local 1365 leftX = newRect.GetOffset().GetX() + leftXCalc; in GetPaintRectWithTransform() 1366 leftY = newRect.GetOffset().GetY() + leftYCalc; in GetPaintRectWithTransform()
|