Home
last modified time | relevance | path

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

/foundation/window/window_manager/wmserver/src/
Ddrag_controller.cpp338 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 …]
Dwindow_layout_policy_cascade.cpp334 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()
350newRect.width_ = static_cast<uint32_t>(static_cast<float>(newRect.height_) * aspectRatio); in ComputeRectByAspectRatio()
[all …]
Dwindow_layout_policy.cpp128 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()
Ddisplay_group_controller.cpp324 Rect newRect = node->GetRequestRect(); in MoveNotCrossNodeToDefaultDisplay() local
326newRect.posX_ = static_cast<int32_t>(dstDisplayRect.width_ / 2); // default pointerX : displayRect… in MoveNotCrossNodeToDefaultDisplay()
327newRect.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()
Dwindow_controller.cpp538 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/
Dwindow_layout_policy_test.cpp657 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/
Drender_mouse_listener.cpp62 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/
Dwindow_scene_session_impl.cpp624 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/
Drs_dirty_region_manager.cpp145 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/
Drender_gesture_listener.cpp483 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/
Dscrollable_pattern.cpp812 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/
Ddrag_controller.h96 void CalculateNewWindowRect(Rect& newRect, DisplayId displayId, int32_t posX, int32_t posY);
/foundation/window/window_manager/window_scene/session_manager/src/
Dscene_session_manager.cpp2803 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/
Drosen_render_context.cpp1353 auto newRect = GetPaintRectWithoutTransform(); in GetPaintRectWithTransform() local
1365 leftX = newRect.GetOffset().GetX() + leftXCalc; in GetPaintRectWithTransform()
1366 leftY = newRect.GetOffset().GetY() + leftYCalc; in GetPaintRectWithTransform()