Home
last modified time | relevance | path

Searched refs:subwindow (Results 1 – 25 of 56) sorted by relevance

123

/ohos5.0/foundation/arkui/ace_engine/frameworks/base/subwindow/
H A Dsubwindow_manager.cpp98 if (!subwindow) { in AddSubwindow()
114 if (!subwindow) { in AddToastSubwindow()
130 if (!subwindow) { in AddSystemToastWindow()
155 if (subwindow) { in DeleteHotAreas()
251 auto subwindow = in ShowPreviewNG() local
304 if (subwindow) { in HidePreviewNG()
313 if (subwindow) { in HideMenuNG()
322 if (subwindow) { in HideMenuNG()
331 if (subwindow) { in UpdateHideMenuOffsetNG()
372 subwindow = in ClearMenuNG()
[all …]
H A Dsubwindow_manager.h61 void SetCurrentSubwindow(const RefPtr<Subwindow>& subwindow);
110 void AddDialogSubwindow(int32_t instanceId, const RefPtr<Subwindow>& subwindow);
114 void SetCurrentDialogSubwindow(const RefPtr<Subwindow>& subwindow);
122 void AddToastSubwindow(int32_t instanceId, RefPtr<Subwindow> subwindow);
144 void AddSystemToastWindow(int32_t instanceId, RefPtr<Subwindow> subwindow);
146 bool IsSubwindowExist(RefPtr<Subwindow> subwindow);
/ohos5.0/docs/en/application-dev/windowmanager/
H A Dapplication-window-fa.md54 1. Create or obtain a subwindow.
64 // Method 1: Create a subwindow.
75 // Method 2: Find a subwindow.
83 2. Set the properties of the subwindow.
88 // Move the subwindow.
98 // Change the size of the subwindow.
109 3. Load content to and show the subwindow.
111 Call **setUIContent** to load content to the subwindow and **showWindow** to show the subwindow.
114 // Load content to the subwindow.
123 // Show the subwindow.
[all …]
H A Dapplication-window-stage.md125 1. Create a subwindow.
129 2. Set the properties of the subwindow.
133 3. Load content to and show the subwindow.
135 Call **setUIContent** to load content to the subwindow and **showWindow** to show the subwindow.
137 4. Destroy the subwindow.
153 // 1. Create a subwindow.
183 // 3.1 Load content to the subwindow.
191 // 3.2 Show the subwindow.
262 // 1. Create a subwindow.
292 // 3. Load content to the subwindow.
[all …]
H A Dwindow-overview.md39 …- A subwindow is an auxiliary window of an application, such as a dialog box and floating window. …
70 - The application main window and subwindow have the following size limits: [320, 2560] in width a…
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/base/
H A Dview_abstract_model_ng.cpp139 CHECK_NULL_VOID(subwindow); in BindMenu()
140 auto childContainerId = subwindow->GetChildContainerId(); in BindMenu()
174 CHECK_NULL_VOID(subwindow); in UpdateIsShowStatusForMenu()
175 auto overlayManager = subwindow->GetOverlayManager(); in UpdateIsShowStatusForMenu()
192 if (subwindow) { in BindContextMenuSingle()
193 auto childContainerId = subwindow->GetChildContainerId(); in BindContextMenuSingle()
238 if (subwindow) { in BindContextMenu()
239 auto childContainerId = subwindow->GetChildContainerId(); in BindContextMenu()
342 auto subwindow = SubwindowManager::GetInstance()->GetSubwindow(containerId); in BindContextMenu() local
343 CHECK_NULL_VOID(subwindow); in BindContextMenu()
[all …]
/ohos5.0/foundation/arkui/ace_engine/test/unittest/base/
H A Dsubwindow_manager_test.cpp65 auto subwindow = manager->ShowPreviewNG(false); variable
66 ASSERT_EQ(subwindow, nullptr);
/ohos5.0/docs/en/application-dev/reference/apis-arkui/
H A Djs-apis-arkui-uiExtension.md225 Creates a subwindow for this window proxy. This API uses a promise to return the result.
237 | name | string | Yes | Name of the subwindow.|
269 title: 'This is a subwindow',
272 // Create a subwindow.
289 console.info(`The subwindow has been shown!`);
291 console.error(`Failed to show the subwindow!`);
298 console.error(`Create subwindow failed: ${JSON.stringify(error)}`);
433 'title': 'This is a subwindow',
453 console.info(`The subwindow has been shown!`);
455 console.error(`Failed to show the subwindow!`);
[all …]
H A Djs-apis-uiExtensionHost-sys.md323 | name | string | Yes | Name of the subwindow.|
330 | Promise&lt;[window.Window](js-apis-window.md#window)&gt; | Promise used to return the subwindow c…
355 title: 'This is a subwindow',
358 // Create a subwindow.
375 console.info(`The subwindow has been shown!`);
377 console.error(`Failed to show the subwindow!`);
384 console.error(`Create subwindow failed: ${JSON.stringify(error)}`);
593 'title': 'This is a subwindow',
613 console.info(`The subwindow has been shown!`);
615 console.error(`Failed to show the subwindow!`);
[all …]
H A Djs-apis-window.md693 // Create or obtain a subwindow and its ID. In this case, the subwindow has focus.
5413 - Hides the subwindow if the caller is a subwindow. The subwindow cannot be restored in the dock ba…
5460 - Hides the subwindow if the caller is a subwindow. The subwindow cannot be restored in the dock ba…
6066 This API must be called by a subwindow and the setting takes effect for the subwindow.
6112 // Create a subwindow.
6141 …n the subwindow is of the window-modal type, its parent window does not respond to user interactio…
6190 // Create a subwindow.
6529 | name | string | Yes | Name of the subwindow.|
6812 // Create a subwindow.
9383 Enumerates the modality types of the subwindow.
[all …]
/ohos5.0/docs/zh-cn/third-party-cases/
H A Dsubwindow-mainwindow-communication.md10 ![subwindow-mainwindow-communication](figures/subwindow-mainwindow-communication.gif)
37 console.error('Failed to create the subwindow. Cause: ' + JSON.stringify(err));
41 console.info('Succeeded in creating the subwindow. Data: ' + JSON.stringify(data));
286 console.error('Failed to create the subwindow. Cause: ' + JSON.stringify(err));
290 console.info('Succeeded in creating the subwindow. Data: ' + JSON.stringify(data));
/ohos5.0/docs/zh-cn/application-dev/reference/apis-arkui/
H A Djs-apis-arkui-uiExtension.md381 title: 'This is a subwindow',
401 console.info(`The subwindow has been shown!`);
403 console.error(`Failed to show the subwindow!`);
410 console.error(`Create subwindow failed: ${JSON.stringify(error)}`);
586 'title': 'This is a subwindow',
606 console.info(`The subwindow has been shown!`);
608 console.error(`Failed to show the subwindow!`);
615 console.error(`Create subwindow failed: ${JSON.stringify(error)}`);
H A Djs-apis-uiExtensionHost-sys.md355 title: 'This is a subwindow',
375 console.info(`The subwindow has been shown!`);
377 console.error(`Failed to show the subwindow!`);
384 console.error(`Create subwindow failed: ${JSON.stringify(error)}`);
653 'title': 'This is a subwindow',
673 console.info(`The subwindow has been shown!`);
675 console.error(`Failed to show the subwindow!`);
682 console.error(`Create subwindow failed: ${JSON.stringify(error)}`);
/ohos5.0/docs/en/release-notes/changelogs/OpenHarmony_4.1.3.5/
H A Dchangelogs-menu.md57subwindow outside the application window on KLV devices. The value **true** means to show the menu…
67 * true: The menu is displayed in a subwindow outside the application window.
/ohos5.0/docs/en/application-dev/application-models/
H A Dwindow-switch.md6 …** to create a subwindow, whereas an application developed on the stage model uses **WindowStage.C…
/ohos5.0/docs/en/application-dev/ui/
H A Darkts-create-toast.md30subwindow is created (the size of the subwindow on mobile devices is the same as the main window).…
35 …r level as the main window, generally low.| The toast is displayed in a subwindow, generally highe…
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/pipeline/
H A Dpipeline_base.cpp737 … auto subwindow = SubwindowManager::GetInstance()->GetSubwindow(currentContainer->GetInstanceId()); in OnVirtualKeyboardAreaChange() local
738 if (subwindow && subwindow->GetShown()) { in OnVirtualKeyboardAreaChange()
757 … auto subwindow = SubwindowManager::GetInstance()->GetSubwindow(currentContainer->GetInstanceId()); in OnVirtualKeyboardAreaChange() local
758 …if (subwindow && subwindow->GetShown() && subwindow->IsFocused() && !CheckNeedAvoidInSubWindow()) { in OnVirtualKeyboardAreaChange()
/ohos5.0/foundation/arkui/ace_engine/test/unittest/core/pattern/container_modal/
H A Dcontainer_modal_pattern_enhance_test_ng.cpp151 auto subwindow = Subwindow::CreateSubwindow(VALID_CURRENT_ID); variable
152 SubwindowManager::GetInstance()->SetCurrentSubwindow(subwindow);
166 auto subwindow = AceType::MakeRefPtr<MockSubwindow>(); variable
167 SubwindowManager::GetInstance()->SetCurrentSubwindow(subwindow);
168 EXPECT_CALL(*subwindow, GetShown()).WillOnce(testing::Return(true));
182 auto subwindow = AceType::MakeRefPtr<MockSubwindow>(); variable
183 SubwindowManager::GetInstance()->SetCurrentSubwindow(subwindow);
/ohos5.0/foundation/arkui/ace_engine/adapter/ohos/osal/
H A Dlayout_inspector.cpp107 auto subwindow = SubwindowManager::GetInstance()->GetSubwindow( in GetWindow() local
109 CHECK_NULL_RETURN(subwindow, nullptr); in GetWindow()
110 if (AceType::InstanceOf<SubwindowOhos>(subwindow)) { in GetWindow()
111 auto subWindowOhos = AceType::DynamicCast<SubwindowOhos>(subwindow); in GetWindow()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/bubble/
H A Dbubble_pattern.cpp702 … auto subwindow = SubwindowManager::GetInstance()->GetSubwindow(Container::CurrentId()); in OnWindowSizeChanged() local
703 CHECK_NULL_VOID(subwindow); in OnWindowSizeChanged()
704 subwindow->HidePopupNG(targetNodeId_); in OnWindowSizeChanged()
723 auto subwindow = SubwindowManager::GetInstance()->GetSubwindow(Container::CurrentId()); in OnWindowHide() local
724 CHECK_NULL_VOID(subwindow); in OnWindowHide()
725 subwindow->HidePopupNG(targetNodeId_); in OnWindowHide()
/ohos5.0/docs/zh-cn/application-dev/windowmanager/
H A Dapplication-window-stage.md154 console.error('Failed to create the subwindow. Cause: windowStage_ is null');
160 console.error('Failed to create the subwindow. Cause: ' + JSON.stringify(err));
164 console.info('Succeeded in creating the subwindow. Data: ' + JSON.stringify(data));
263 console.error('Failed to create the subwindow. Cause: windowStage_ is null');
269 console.error('Failed to create the subwindow. Cause: ' + JSON.stringify(err));
273 console.info('Succeeded in creating the subwindow. Data: ' + JSON.stringify(data));
H A Dapplication-window-as.md140 console.error('Failed to create the subwindow. Cause: windowStage_ is null');
146 console.error('Failed to create the subwindow. Cause: ' + JSON.stringify(err));
150 console.info('Succeeded in creating the subwindow. Data: ' + JSON.stringify(data));
H A Dapplication-window-fa.md146 console.error('Failed to destroy the subwindow. Cause:' + JSON.stringify(err));
149 console.info('Succeeded in destroying the subwindow.');
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/pattern/toast/
H A Dtoast_pattern.cpp584 auto subwindow = SubwindowManager::GetInstance()->GetSystemToastWindow(parentContainerId); in GetSystemTopMostSubwindowSize() local
585 if (subwindow) { in GetSystemTopMostSubwindowSize()
586 auto rect = subwindow->GetRect(); in GetSystemTopMostSubwindowSize()
/ohos5.0/foundation/arkui/ace_engine/frameworks/core/components_ng/manager/drag_drop/
H A Ddrag_drop_manager.cpp1690 auto subwindow = SubwindowManager::GetInstance()->GetSubwindow( in GetTouchOffsetRelativeToSubwindow() local
1693 if (subwindow) { in GetTouchOffsetRelativeToSubwindow()
1694 auto subwindowOffset = subwindow->GetRect().GetOffset(); in GetTouchOffsetRelativeToSubwindow()
1754 auto subwindow = SubwindowManager::GetInstance()->GetSubwindow(containerId); in GetCurrentDistance() local
1755 CHECK_NULL_RETURN(subwindow, distance); in GetCurrentDistance()
1756 auto overlayManager = subwindow->GetOverlayManager(); in GetCurrentDistance()
2199 …auto subwindow = SubwindowManager::GetInstance()->GetSubwindow(containerId >= MIN_SUBCONTAINER_ID ? in GetDragAnimationOverlayManager() local
2201 CHECK_NULL_RETURN(subwindow, nullptr); in GetDragAnimationOverlayManager()
2202 return subwindow->GetOverlayManager(); in GetDragAnimationOverlayManager()

123