Lines Matching defs:rect
131 WLOGD("Before update rect in display group, windowId: %{public}d, rect: [%{public}d, %{public}d, "
137 WLOGD("After update rect in display group, windowId: %{public}d, newRect: [%{public}d, %{public}d, "
181 WLOGFD("Recalculate window rect in display group, displayId: %{public}" PRIu64", rootType: %{public}d",
329 // reset limit rect
352 * 1. update window rect
405 Rect rect = winRect;
410 if (rect.width_ < rect.height_) {
411 rect.posX_ -= static_cast<int32_t>(hotZoneX);
412 rect.width_ += (hotZoneX + hotZoneX);
414 rect.posY_ -= static_cast<int32_t>(hotZoneY);
415 rect.height_ += (hotZoneY + hotZoneY);
418 rect = DisplayGroupInfo::GetInstance().GetDisplayRect(node->GetDisplayId());
420 rect.posX_ -= static_cast<int32_t>(hotZoneX);
421 rect.posY_ -= static_cast<int32_t>(hotZoneY);
422 rect.width_ += (hotZoneX + hotZoneX);
423 rect.height_ += (hotZoneY + hotZoneY);
425 return rect;
552 AvoidPosType WindowLayoutPolicy::GetAvoidPosType(const Rect& rect, DisplayId displayId) const
560 return WindowHelper::GetAvoidPosType(rect, displayRect);
784 Rect rect = node->GetRequestRect();
787 rect.posY_ = displayRect.posY_;
790 rect.posY_ = static_cast<int32_t>(displayRect.height_) + displayRect.posY_ -
791 static_cast<int32_t>(rect.height_);
802 rect.posY_ = std::max(rect.posY_, displayRect.posY_);
803 rect.posY_ = std::min(rect.posY_, displayRect.posY_ + static_cast<int32_t>(displayRect.height_));
805 node->SetRequestRect(rect);
807 node->GetWindowId(), rect.posX_, rect.posY_, rect.width_, rect.height_);