Lines Matching refs:newRect
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()
396 … windowProperty_->GetWindowId(), newRect.posX_, newRect.posY_, newRect.width_, newRect.height_); in HandleDragEvent()
397 windowProperty_->SetRequestRect(newRect); in HandleDragEvent()
421 Rect newRect = { targetX, targetY, oriRect.width_, oriRect.height_ }; in HandleMoveEvent() local
423 newRect.posY_ = std::max(newRect.posY_, limitRectMap_[displayId].posY_); in HandleMoveEvent()
426 … windowProperty_->GetWindowId(), newRect.posX_, newRect.posY_, newRect.width_, newRect.height_); in HandleMoveEvent()
427 windowProperty_->SetRequestRect(newRect); in HandleMoveEvent()