/ohos5.0/foundation/window/window_manager/test/systemtest/wms/ |
H A D | window_input_test.cpp | 88 Rect windowRect = window->GetRect(); variable 92 uint32_t hotAreaWidth = windowRect.width_ / hotAreasNum; 93 uint32_t hotAreaHeight = windowRect.height_ / hotAreasNum; 136 Rect windowRect = window->GetRect(); variable 141 uint32_t hotAreaWidth = windowRect.width_ / hotAreasNum; 142 uint32_t hotAreaHeight = windowRect.height_ / hotAreasNum; 149 rects.emplace_back(Rect{ -1, 0, windowRect.width_ / 2, windowRect.height_ / 2 }); 153 rects.emplace_back(Rect{ 0, -1, windowRect.width_ / 2, windowRect.height_ / 2 }); 161 rects.emplace_back(Rect{ 0, 0, windowRect.width_ / 2, 0 }); 165 rects.emplace_back(Rect{ windowRect.width_, 0, windowRect.width_ / 2, windowRect.height_ / 2 }); [all …]
|
/ohos5.0/base/security/security_component_manager/services/security_component_service/sa/test/unittest/src/ |
H A D | sec_comp_info_helper_test.cpp | 151 SecCompRect windowRect = GetDefaultRect(); variable 197 windowRect.x_ = g_testWidth + 1; 199 windowRect.x_ = g_testWidth; 201 windowRect.y_ = g_testHeight + 1; 203 windowRect.y_ = g_testHeight; 205 windowRect.width_ = g_testWidth - 1; 207 windowRect.width_ = g_testWidth; 209 windowRect.height_ = g_testHeight - 1; 211 windowRect.height_ = g_testHeight; 215 windowRect.width_ = g_testWidth; [all …]
|
/ohos5.0/base/notification/distributed_notification_service/services/dialog_ui/enable_notification_dialog/entry/src/main/ets/ServiceExtAbility/ |
H A D | NotificationServiceExtAbility.ts | 154 let windowRect = extensionWindow.properties?.uiExtensionHostWindowProxyRect; 155 …console.info(TAG, `size : ${windowRect?.left} ${windowRect?.top} ${windowRect?.width} ${windowRec… 156 await subWindow.moveWindowTo(windowRect?.left, windowRect?.top); 157 await subWindow.resize(windowRect?.width, windowRect?.height);
|
/ohos5.0/foundation/window/window_manager/wmserver/src/ |
H A D | window_layout_policy.cpp | 55 Rect windowRect = node->GetRequestRect(); in LimitWindowToBottomRightCorner() local 57 windowRect.posX_ = std::max(windowRect.posX_, displayRect.posX_); in LimitWindowToBottomRightCorner() 58 windowRect.posY_ = std::max(windowRect.posY_, displayRect.posY_); in LimitWindowToBottomRightCorner() 59 windowRect.width_ = std::min(windowRect.width_, displayRect.width_); in LimitWindowToBottomRightCorner() 60 windowRect.height_ = std::min(windowRect.height_, displayRect.height_); in LimitWindowToBottomRightCorner() 62 if (windowRect.posX_ + static_cast<int32_t>(windowRect.width_) > in LimitWindowToBottomRightCorner() 65 static_cast<int32_t>(windowRect.width_); in LimitWindowToBottomRightCorner() 68 if (windowRect.posY_ + static_cast<int32_t>(windowRect.height_) > in LimitWindowToBottomRightCorner() 71 static_cast<int32_t>(windowRect.height_); in LimitWindowToBottomRightCorner() 73 node->SetRequestRect(windowRect); in LimitWindowToBottomRightCorner() [all …]
|
H A D | avoid_area_controller.cpp | 233 AvoidPosType AvoidAreaController::GetAvoidPosType(const Rect& windowRect, const Rect& overlayRect) … in GetAvoidPosType() argument 235 if (windowRect.width_ == 0 || windowRect.height_ == 0) { in GetAvoidPosType() 240 …float res1 = float(centerY) - float(windowRect.height_) / float(windowRect.width_) * float(centerX… in GetAvoidPosType() 241 …float res2 = float(centerY) + float(windowRect.height_) / float(windowRect.width_) * float(center… in GetAvoidPosType() 242 float(windowRect.height_); in GetAvoidPosType()
|
/ohos5.0/base/security/security_component_manager/services/security_component_service/sa/sa_main/ |
H A D | sec_comp_info_helper.cpp | 99 bool SecCompInfoHelper::CheckRectValid(const SecCompRect& rect, const SecCompRect& windowRect) in CheckRectValid() argument 125 if (GreatNotEqual(windowRect.x_, rect.x_) || GreatNotEqual(windowRect.y_, rect.y_) || in CheckRectValid() 126 GreatNotEqual(rect.x_ + rect.width_, windowRect.x_ + windowRect.width_) || in CheckRectValid() 127 GreatNotEqual(rect.y_ + rect.height_, windowRect.y_ + windowRect.height_)) { in CheckRectValid()
|
H A D | sec_comp_info_helper.h | 44 static bool CheckRectValid(const SecCompRect& rect, const SecCompRect& windowRect);
|
/ohos5.0/foundation/window/window_manager/window_scene/session_manager/src/ |
H A D | scene_session_dirty_manager.cpp | 206 WSRect windowRect = sceneSession->GetSessionGlobalRect(); in UpdateDefaultHotAreas() local 453 if (extensionInfo.windowRect.width_ != 0 || extensionInfo.windowRect.height_ != 0) { in AddModalExtensionWindowInfo() 454 MMI::Rect windowRect = { in AddModalExtensionWindowInfo() local 455 .x = extensionInfo.windowRect.posX_, in AddModalExtensionWindowInfo() 456 .y = extensionInfo.windowRect.posY_, in AddModalExtensionWindowInfo() 457 .width = extensionInfo.windowRect.width_, in AddModalExtensionWindowInfo() 458 .height = extensionInfo.windowRect.height_ in AddModalExtensionWindowInfo() 460 windowInfo.area = windowRect; in AddModalExtensionWindowInfo() 465 .width = extensionInfo.windowRect.width_, in AddModalExtensionWindowInfo() 466 .height = extensionInfo.windowRect.height_ in AddModalExtensionWindowInfo() [all …]
|
/ohos5.0/base/notification/distributed_notification_service/services/dialog_ui/enable_notification_dialog/entry/src/main/ets/pages/ |
H A D | pcNotificationDialog.ets | 307 let windowRect = this.dialog?.extensionWindow.properties?.uiExtensionHostWindowProxyRect; 308 …o(TAG, `windowSizeChange event, size = ${windowRect?.left}-${windowRect?.top}-${windowRect?.width}… 309 this.dialog?.subWindow?.moveWindowTo(windowRect?.left, windowRect?.top); 310 this.dialog?.subWindow?.resize(windowRect?.width, windowRect?.height);
|
/ohos5.0/foundation/window/window_manager/interfaces/kits/napi/window_runtime/window_napi/ |
H A D | js_extension_window_config.cpp | 153 return CreateJsValue(env, extensionWindowConfig_->windowRect.posX_); in OnGetWindowRectLeft() 165 return CreateJsValue(env, extensionWindowConfig_->windowRect.posY_); in OnGetWindowRectTop() 177 return CreateJsValue(env, extensionWindowConfig_->windowRect.width_); in OnGetWindowRectWidth() 371 extensionWindowConfig_->windowRect.posX_ = res; in OnSetWindowRect() 376 extensionWindowConfig_->windowRect.posY_ = res; in OnSetWindowRect() 382 extensionWindowConfig_->windowRect.width_ = ures; in OnSetWindowRect() 387 extensionWindowConfig_->windowRect.height_ = ures; in OnSetWindowRect() 410 extensionWindowConfig_->windowRect.posX_ = left; in OnSetWindowRectLeft() 433 extensionWindowConfig_->windowRect.posY_ = top; in OnSetWindowRectTop() 456 extensionWindowConfig_->windowRect.width_ = width; in OnSetWindowRectWidth() [all …]
|
/ohos5.0/foundation/window/window_manager/interfaces/kits/napi/extension_window/ |
H A D | js_extension_window_utils.cpp | 68 Rect windowRect = window->GetRect(); in CreateJsExtensionWindowPropertiesObject() local 69 napi_value windowRectObj = GetRectAndConvertToJsValue(env, windowRect); in CreateJsExtensionWindowPropertiesObject() 87 Rect windowRect = window->GetRect(); in CreateJsExtensionWindowProperties() local 88 napi_value windowRectObj = GetRectAndConvertToJsValue(env, windowRect); in CreateJsExtensionWindowProperties()
|
/ohos5.0/foundation/window/window_manager/window_scene/test/unittest/ |
H A D | move_drag_controller_test.cpp | 746 WSRect windowRect = { 0, 0, 0, 0 }; variable 747 moveDragController->CalcFirstMoveTargetRect(windowRect, false); 750 moveDragController->CalcFirstMoveTargetRect(windowRect, false); 756 moveDragController->CalcFirstMoveTargetRect(windowRect, false); 759 moveDragController->CalcFirstMoveTargetRect(windowRect, false); 762 moveDragController->CalcFirstMoveTargetRect(windowRect, false); 770 moveDragController->CalcFirstMoveTargetRect(windowRect, true); 783 WSRect windowRect = { 1, 2, 3, 4 }; variable 786 moveDragController->CalcFirstMoveTargetRect(windowRect, true); 799 WSRect windowRect = { 5, 6, 7, 8 }; variable [all …]
|
H A D | scene_session_dirty_manager_test2.cpp | 109 WSRect windowRect = {0, 0, 1270, 2700}; in InitSceneSession() local 110 sceneSession->SetSessionRect(windowRect); in InitSceneSession() 133 WSRect windowRect = {0, 0, 1270, 2700}; variable 134 sceneSession->SetSessionRect(windowRect); 135 sceneSession->globalRect_ = windowRect; 169 WSRect windowRect = {0, 0, 1270, 2700}; variable 170 sceneSession->SetSessionRect(windowRect);
|
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/window_scene/scene/ |
H A D | window_scene.cpp | 169 Rosen::Rect windowRect { in RegisterResponseRegionCallback() local 175 hotAreas.push_back(windowRect); in RegisterResponseRegionCallback() 229 Rosen::WSRect windowRect { in OnBoundsChanged() local 237 host->GetGeometryNode()->SetFrameSize(SizeF(windowRect.width_, windowRect.height_)); in OnBoundsChanged() 247 windowRect.posX_ = std::round(bounds.x_ + session_->GetOffsetX()); in OnBoundsChanged() 248 windowRect.posY_ = std::round(bounds.y_ + session_->GetOffsetY()); in OnBoundsChanged() 250 auto transaction = transactionController && session_->GetSessionRect() != windowRect ? in OnBoundsChanged() 258 session_->GetPersistentId(), sizeChangeReason, windowRect.ToString().c_str()); in OnBoundsChanged() 489 RectF windowRect(0, 0, frameSize.Width(), frameSize.Height()); in OnConnect() local 490 context->SyncGeometryProperties(windowRect); in OnConnect() [all …]
|
H A D | system_window_scene.cpp | 48 Rosen::WSRect windowRect { in OnBoundsChanged() local 63 windowRect.posX_ = std::round(bounds.x_ + session_->GetOffsetX()); in OnBoundsChanged() 64 windowRect.posY_ = std::round(bounds.y_ + session_->GetOffsetY()); in OnBoundsChanged() 65 …auto ret = session_->UpdateRect(windowRect, Rosen::SizeChangeReason::UNDEFINED, "OnBoundsChanged"); in OnBoundsChanged() 240 Rosen::Rect windowRect { in RegisterResponseRegionCallback() local 246 hotAreas.push_back(windowRect); in RegisterResponseRegionCallback()
|
/ohos5.0/docs/zh-cn/release-notes/changelogs/OpenHarmony_5.0.0.45/ |
H A D | changelogs-window.md | 12 通过本次变更,在on('windowSizeChange')回调中同步更新windowRect和drawableRect,应用可基于此进行更加灵活的自绘制布局。 42 在API 11、API 12中,不建议使用该字段进行布局,可以基于windowRect进行布局。
|
/ohos5.0/foundation/window/window_manager/utils/include/ |
H A D | window_helper.h | 486 … static bool CalculateTouchHotAreas(const Rect& windowRect, const std::vector<Rect>& requestRects, in CalculateTouchHotAreas() argument 495 if (rect.posX_ >= static_cast<int32_t>(windowRect.width_) || in CalculateTouchHotAreas() 496 rect.posY_ >= static_cast<int32_t>(windowRect.height_)) { in CalculateTouchHotAreas() 500 hotArea.posX_ = windowRect.posX_ + rect.posX_; in CalculateTouchHotAreas() 501 hotArea.posY_ = windowRect.posY_ + rect.posY_; in CalculateTouchHotAreas() 503 windowRect.posX_ + windowRect.width_) - hotArea.posX_); in CalculateTouchHotAreas() 505 windowRect.posY_ + windowRect.height_) - hotArea.posY_); in CalculateTouchHotAreas()
|
/ohos5.0/docs/zh-cn/application-dev/faqs/ |
H A D | faqs-graphics.md | 28 引入窗口模块\@ohos.window,获取指定窗口对象Window后,在该对象上使用getWindowProperties()获取窗口各个属性,在属性windowRect中获取窗口宽高信息。 29 …ponent-lifecycle.md#abouttoappear)阶段,不代表此时窗口可见,仅代表当前组件已创建,此时获取到的窗口尺寸信息(windowRect)可能有误。建议在页面生命周期[o… 46 let rect = properties.windowRect;
|
/ohos5.0/docs/zh-cn/application-dev/reference/apis-ability-kit/ |
H A D | js-apis-app-ability-dialogRequest.md | 138 | windowRect<sup>10+</sup> | [WindowRect](#windowrect10) | 否 | 表示模态弹框的位置属性。 … 149 console.info(`getRequestInfo windowRect=, ${JSON.stringify(requestInfo.windowRect)}` );
|
/ohos5.0/foundation/window/window_manager/window_scene/session/host/src/ |
H A D | move_drag_controller.cpp | 115 …veDragController::GetFullScreenToFloatingRect(const WSRect& originalRect, const WSRect& windowRect) in GetFullScreenToFloatingRect() argument 123 return windowRect; in GetFullScreenToFloatingRect() 126 … float newPosX = static_cast<float>(windowRect.width_) / static_cast<float>(originalRect.width_) * in GetFullScreenToFloatingRect() 131 windowRect.width_, in GetFullScreenToFloatingRect() 132 windowRect.height_, in GetFullScreenToFloatingRect() 744 void MoveDragController::CalcFirstMoveTargetRect(const WSRect& windowRect, bool isFullToFloating) in CalcFirstMoveTargetRect() argument 753 windowRect.width_, in CalcFirstMoveTargetRect() 754 windowRect.height_ in CalcFirstMoveTargetRect() 757 originalRect.posX_ = windowRect.posX_; in CalcFirstMoveTargetRect() 758 originalRect.posY_ = windowRect.posY_; in CalcFirstMoveTargetRect()
|
/ohos5.0/foundation/window/window_manager/wm/src/ |
H A D | window_scene_session_impl.cpp | 1491 requestRect.width_, requestRect.height_, windowRect.posX_, windowRect.posY_, in MoveTo() 1492 windowRect.width_, windowRect.height_, newRect.posX_, newRect.posY_, in MoveTo() 1557 requestRect.width_, requestRect.height_, windowRect.posX_, windowRect.posY_, in MoveWindowToGlobal() 1558 windowRect.width_, windowRect.height_, newRect.posX_, newRect.posY_, in MoveWindowToGlobal() 1732 requestRect.width_, requestRect.height_, windowRect.posX_, windowRect.posY_, in Resize() 1733 windowRect.width_, windowRect.height_, newRect.posX_, newRect.posY_, in Resize() 3792 windowRect = GetRect(); in UpdateNewSize() 4016 if ((windowRect.height_ > 0 && windowRect.height_ != maskHeight) || in HandleWindowMask() 4017 (windowRect.width_ > 0 && windowRect.width_ != maskWidth)) { in HandleWindowMask() 4345 xMappingScale = static_cast<float>(windowRect.width_) / windowRect.posX_; in HandleDownForCompatibleMode() [all …]
|
/ohos5.0/foundation/window/window_manager/test/fuzztest/wms/windowscene_fuzzer/ |
H A D | windowscene_fuzzer.cpp | 78 Rect windowRect; in InitWindowOption1() local 79 startPos += GetObject<Rect>(windowRect, data + startPos, size - startPos); in InitWindowOption1() 80 windowOption.SetWindowRect(windowRect); in InitWindowOption1()
|
/ohos5.0/foundation/arkui/ace_engine/adapter/ohos/entrance/ |
H A D | ace_ability.cpp | 471 auto windowRect = window->GetRect(); in OnStart() local 472 rect.SetRect(windowRect.posX_, windowRect.posY_, windowRect.width_, windowRect.height_); in OnStart() 502 auto windowRect = window->GetRect(); in OnStart() local 503 if (!windowRect.IsUninitializedRect()) { in OnStart() 505 OnSizeChange(windowRect, OHOS::Rosen::WindowSizeChangeReason::UNDEFINED); in OnStart()
|
/ohos5.0/docs/en/application-dev/faqs/ |
H A D | faqs-graphics.md | 28 …dowProperties()** of the object to obtain the window properties. The **windowRect** field in the p… 30 …has been created. As such, the window size information (specified by **windowRect**) obtained in t… 47 let rect = properties.windowRect;
|
/ohos5.0/foundation/window/window_manager/window_scene/session/host/include/ |
H A D | move_drag_controller.h | 60 void CalcFirstMoveTargetRect(const WSRect& windowRect, bool isFullToFloating); 61 WSRect GetFullScreenToFloatingRect(const WSRect& originalRect, const WSRect& windowRect);
|