Home
last modified time | relevance | path

Searched refs:winRect (Results 1 – 17 of 17) sorted by relevance

/foundation/window/window_manager/wmserver/src/
Dwindow_layout_policy_cascade.cpp401 …wLayoutPolicyCascade::ApplyWindowRectConstraints(const sptr<WindowNode>& node, Rect& winRect) const in ApplyWindowRectConstraints()
404 node->GetWindowId(), winRect.posX_, winRect.posY_, winRect.width_, winRect.height_); in ApplyWindowRectConstraints()
407 winRect = node->GetRequestRect(); in ApplyWindowRectConstraints()
408 LimitFloatingWindowSize(node, winRect); in ApplyWindowRectConstraints()
409 LimitMainFloatingWindowPosition(node, winRect); in ApplyWindowRectConstraints()
416 ((!WindowHelper::IsLandscapeRect(winRect) && IsVerticalDisplay(node->GetDisplayId())) || in ApplyWindowRectConstraints()
417 (WindowHelper::IsLandscapeRect(winRect) && !IsVerticalDisplay(node->GetDisplayId())))) { in ApplyWindowRectConstraints()
418 winRect = cascadeRectsMap_[node->GetDisplayId()].dividerRect_; in ApplyWindowRectConstraints()
419 node->SetRequestRect(winRect); in ApplyWindowRectConstraints()
421 winRect.posX_, winRect.posY_, winRect.width_, winRect.height_); in ApplyWindowRectConstraints()
[all …]
Dwindow_layout_policy.cpp371 const Rect& winRect, WindowSizeChangeReason reason) in NotifyClientAndAnimation() argument
377 node->GetWindowToken()->UpdateWindowRect(winRect, node->GetDecoStatus(), reason, in NotifyClientAndAnimation()
380 node->GetWindowToken()->UpdateWindowRect(winRect, node->GetDecoStatus(), reason); in NotifyClientAndAnimation()
383 …"%{public}u", node->GetWindowId(), winRect.posX_, winRect.posY_, winRect.width_, winRect.height_, … in NotifyClientAndAnimation()
400 Rect WindowLayoutPolicy::CalcEntireWindowHotZone(const sptr<WindowNode>& node, const Rect& winRect,… in CalcEntireWindowHotZone() argument
403 Rect rect = winRect; in CalcEntireWindowHotZone()
426 void WindowLayoutPolicy::CalcAndSetNodeHotZone(const Rect& winRect, const sptr<WindowNode>& node) in CalcAndSetNodeHotZone() argument
435 …auto hotZoneRectTouch = CalcEntireWindowHotZone(node, winRect, HOTZONE_TOUCH, virtualPixelRatio, h… in CalcAndSetNodeHotZone()
436 …auto hotZoneRectPointer = CalcEntireWindowHotZone(node, winRect, HOTZONE_POINTER, virtualPixelRati… in CalcAndSetNodeHotZone()
449 if (!WindowHelper::CalculateTouchHotAreas(winRect, requestedHotAreas, touchHotAreas)) { in CalcAndSetNodeHotZone()
[all …]
Dwindow_layout_policy_tile.cpp352 Rect winRect = node->GetRequestRect(); in UpdateLayoutRect() local
355 winRect.posX_, winRect.posY_, winRect.width_, winRect.height_); in UpdateLayoutRect()
360 winRect = needAvoid ? limitDisplayRect : displayRect; in UpdateLayoutRect()
364 …%{public}u, %{public}u]", node->GetWindowId(), node->GetDecoStatus(), winRect.posX_, winRect.posY_, in UpdateLayoutRect()
365 winRect.width_, winRect.height_); in UpdateLayoutRect()
366 node->SetWindowRect(winRect); in UpdateLayoutRect()
369 CalcAndSetNodeHotZone(winRect, node); in UpdateLayoutRect()
370 UpdateSurfaceBounds(node, winRect, lastRect); in UpdateLayoutRect()
371 NotifyClientAndAnimation(node, winRect, node->GetWindowSizeChangeReason()); in UpdateLayoutRect()
Ddisplay_group_controller.cpp152 const auto& winRect = node->GetWindowRect(); in UpdateWindowShowingDisplays() local
157 if (((winRect.posX_ + static_cast<int32_t>(winRect.width_)) > curDisplayRect.posX_) && in UpdateWindowShowingDisplays()
158 … (winRect.posX_ < (curDisplayRect.posX_ + static_cast<int32_t>(curDisplayRect.width_)))) { in UpdateWindowShowingDisplays()
165 if (((winRect.posX_ + static_cast<int32_t>(winRect.width_)) <= in UpdateWindowShowingDisplays()
169 if (winRect.posX_ >= in UpdateWindowShowingDisplays()
193 const auto& winRect = node->GetWindowRect(); in UpdateWindowDisplayIdIfNeeded() local
198 int32_t halfWidth = static_cast<int32_t>(winRect.width_ * 0.5); in UpdateWindowDisplayIdIfNeeded()
202 if ((winRect.posX_ < displayRect.posX_) && in UpdateWindowDisplayIdIfNeeded()
203 (winRect.posX_ + static_cast<int32_t>(winRect.width_) > in UpdateWindowDisplayIdIfNeeded()
208 if (winRect.posX_ >= displayRect.posX_) { // current display is default display in UpdateWindowDisplayIdIfNeeded()
[all …]
Dstarting_window.cpp351 auto winRect = weak->GetWindowRect(); in AddNodeOnRSTree() local
353 winRect.posX_, winRect.posY_, winRect.width_, winRect.height_); in AddNodeOnRSTree()
355 …weak->leashWinSurfaceNode_->SetBounds(winRect.posX_, winRect.posY_, winRect.width_, winRect.height… in AddNodeOnRSTree()
Dremote_animation.cpp271 auto winRect = weakNode->GetWindowRect(); in GetTransitionFinishedCallback() local
274 winRect.posX_, winRect.posY_, winRect.width_, winRect.height_); in GetTransitionFinishedCallback()
279 winRect.posX_, winRect.posY_, winRect.width_, winRect.height_); in GetTransitionFinishedCallback()
772 auto winRect = node->GetWindowRect(); in PostProcessShowCallback() local
779 winRect.posX_, winRect.posY_, winRect.width_, winRect.height_); in PostProcessShowCallback()
781 winRect.posX_, winRect.posY_, winRect.width_, winRect.height_); in PostProcessShowCallback()
Dwindow_node_container.cpp221 auto winRect = node->GetWindowRect(); in LayoutWhenAddWindowNode() local
223 node->surfaceNode_->SetBounds(0, 0, winRect.width_, winRect.height_); in LayoutWhenAddWindowNode()
225 node->GetWindowId(), winRect.posX_, winRect.posY_, winRect.width_, winRect.height_); in LayoutWhenAddWindowNode()
226 … layoutPolicy_->NotifyClientAndAnimation(node, winRect, WindowSizeChangeReason::UNDEFINED); in LayoutWhenAddWindowNode()
/foundation/window/window_manager/wmserver/test/unittest/
Dwindow_layout_policy_test.cpp154 Rect winRect = { 50, 100, 400, 500 }; // rect: 50, 100, 400, 500 variable
155 …auto actRect0 = layoutPolicy_->CalcEntireWindowHotZone(node0, winRect, 10, 2.f, hotZoneScale); // …
161 …auto actRect1 = layoutPolicy_->CalcEntireWindowHotZone(node1, winRect, 10, 2.f, hotZoneScale); // …
167 …auto actRect2 = layoutPolicy_->CalcEntireWindowHotZone(node2, winRect, 10, 2.f, hotZoneScale); // …
242 Rect winRect = { variable
248 node ->SetRequestRect(winRect);
271 Rect winRect = { variable
277 node ->SetRequestRect(winRect);
892 Rect winRect = { 0, 0, 0, 0}; variable
893 layoutPolicy_->UpdateFloatingWindowSizeForStretchableWindow(node, displayRect, winRect);
[all …]
/foundation/window/window_manager/wmserver/include/
Dwindow_layout_policy_cascade.h57 void LimitDividerPositionBySplitRatio(DisplayId displayId, Rect& winRect) const;
66 void ApplyWindowRectConstraints(const sptr<WindowNode>& node, Rect& winRect) const;
74 void LimitFloatingWindowSize(const sptr<WindowNode>& node, Rect& winRect) const;
75 void LimitMainFloatingWindowPosition(const sptr<WindowNode>& node, Rect& winRect) const;
77 const Rect& displayRect, Rect& winRect) const;
79 const Rect& displayRect, Rect& winRect) const;
80 void LimitWindowPositionWhenInitRectOrMove(const sptr<WindowNode>& node, Rect& winRect) const;
81 void LimitWindowPositionWhenDrag(const sptr<WindowNode>& node, Rect& winRect) const;
82 …void FixWindowSizeByRatioIfDragBeyondLimitRegion(const sptr<WindowNode>& node, Rect& winRect) cons…
83 …void FixWindowRectWhenDrag(const sptr<WindowNode>& node, const Rect& oriWinRect, Rect& winRect) co…
Dwindow_layout_policy.h59 …void NotifyClientAndAnimation(const sptr<WindowNode>& node, const Rect& winRect, WindowSizeChangeR…
63 static void CalcAndSetNodeHotZone(const Rect& winRect, const sptr<WindowNode>& node);
107 …static Rect CalcEntireWindowHotZone(const sptr<WindowNode>& node, const Rect& winRect, uint32_t ho…
109 … void UpdateSurfaceBounds(const sptr<WindowNode>& node, const Rect& winRect, const Rect& preRect);
/foundation/window/window_manager/window_scene/session/host/src/
Dmove_drag_controller.cpp529 int32_t sourceType, const WSRect& winRect) in IsPointInDragHotZone() argument
533 rectWithHotzone.posX_ = winRect.posX_ - static_cast<int32_t>(HOTZONE_POINTER); in IsPointInDragHotZone()
534 rectWithHotzone.posY_ = winRect.posY_ - static_cast<int32_t>(HOTZONE_POINTER); in IsPointInDragHotZone()
535 rectWithHotzone.width_ = winRect.width_ + HOTZONE_POINTER * 2u; // double hotZone in IsPointInDragHotZone()
536 rectWithHotzone.height_ = winRect.height_ + HOTZONE_POINTER * 2u; // double hotZone in IsPointInDragHotZone()
550 void MoveDragController::CalculateStartRectExceptHotZone(float vpr, const WSRect& winRect) in CalculateStartRectExceptHotZone() argument
552 rectExceptFrame_.posX_ = winRect.posX_ + in CalculateStartRectExceptHotZone()
554 rectExceptFrame_.posY_ = winRect.posY_ + in CalculateStartRectExceptHotZone()
556 rectExceptFrame_.width_ = winRect.width_ - in CalculateStartRectExceptHotZone()
558 rectExceptFrame_.height_ = winRect.height_ - in CalculateStartRectExceptHotZone()
[all …]
/foundation/window/window_manager/window_scene/session/host/include/
Dmove_drag_controller.h72 …id HandleMouseStyle(const std::shared_ptr<MMI::PointerEvent>& pointerEvent, const WSRect& winRect);
96 int32_t sourceType, const WSRect& winRect);
97 void CalculateStartRectExceptHotZone(float vpr, const WSRect& winRect);
/foundation/arkui/ui_lite/frameworks/core/
Drender_manager.cpp173 Rect winRect = rootView->GetBoundWindow()->GetRect(); in RenderRect() local
174 winRect.SetPosition(0, 0); in RenderRect()
175 mask.Intersect(rect, winRect); in RenderRect()
/foundation/window/window_manager_lite/services/wms/
Dlite_wm.cpp427 Rect& winRect = window->config_.rect; in CalculateUpdateRegion() local
429 …GRAPHIC_LOGD("winRect={%d,%d,%d,%d}, rect={%d,%d,%d,%d}", EXPAND_RECT(winRect), EXPAND_RECT(rect)); in CalculateUpdateRegion()
430 if (mask.Intersect(winRect, rect)) { in CalculateUpdateRegion()
526 Rect& winRect = window->config_.rect; in DrawRegion() local
529 window->backBuf_ == nullptr || !mask.Intersect(winRect, rect)) { in DrawRegion()
530 …GRAPHIC_LOGI("winRect={%d,%d,%d,%d}, rect={%d,%d,%d,%d}", EXPAND_RECT(winRect), EXPAND_RECT(rect)); in DrawRegion()
543 srcRect.SetPosition(mask.GetLeft() - winRect.GetLeft(), mask.GetTop() - winRect.GetTop()); in DrawRegion()
/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/security_component/
Dsecurity_component_handler.cpp62 OHOS::Security::SecurityComponent::SecCompRect& winRect) in GetWindowRect() argument
69 winRect.x_ = rect.Left(); in GetWindowRect()
70 winRect.y_ = rect.Top(); in GetWindowRect()
71 winRect.width_ = rect.Right() - rect.Left(); in GetWindowRect()
72 winRect.height_ = rect.Bottom() - rect.Top(); in GetWindowRect()
Dsecurity_component_handler.h40 …ol GetWindowRect(RefPtr<FrameNode>& node, OHOS::Security::SecurityComponent::SecCompRect& winRect);
/foundation/window/window_manager/utils/include/
Dsurface_draw.h40 static bool DrawImageRect(std::shared_ptr<RSSurfaceNode> surfaceNode, Rect winRect,