Lines Matching refs:newRect
354 void MoveDragController::CalculateNewWindowRect(Rect& newRect, DisplayId displayId, int32_t posX, int32_t posY)
374 newRect.posX_ += diffX;
375 newRect.width_ = static_cast<uint32_t>(static_cast<int32_t>(newRect.width_) - diffX);
380 newRect.width_ = static_cast<uint32_t>(static_cast<int32_t>(newRect.width_) + diffX);
386 newRect.posY_ += diffY;
387 newRect.height_ = static_cast<uint32_t>(static_cast<int32_t>(newRect.height_) - diffY);
392 newRect.height_ = static_cast<uint32_t>(static_cast<int32_t>(newRect.height_) + diffY);
404 Rect newRect = moveDragProperty_->startPointRect_;
405 CalculateNewWindowRect(newRect, displayId, posX, posY);
407 if (!CheckWindowRect(displayId, DisplayGroupInfo::GetInstance().GetDisplayVirtualPixelRatio(displayId), newRect)) {
411 WLOGFD("[WMS] HandleDragEvent, id: %{public}u, newRect: [%{public}d, %{public}d, %{public}d, %{public}d]",
412 windowProperty_->GetWindowId(), newRect.posX_, newRect.posY_, newRect.width_, newRect.height_);
413 windowProperty_->SetRequestRect(newRect);
437 Rect newRect = { targetX, targetY, oriRect.width_, oriRect.height_ };
439 newRect.posY_ = std::max(newRect.posY_, limitRectMap_[displayId].posY_);
441 WLOGFD("[WMS] HandleMoveEvent, id: %{public}u, newRect: [%{public}d, %{public}d, %{public}d, %{public}d]",
442 windowProperty_->GetWindowId(), newRect.posX_, newRect.posY_, newRect.width_, newRect.height_);
443 windowProperty_->SetRequestRect(newRect);