![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include <qohoswindowproxy.h>
Classes | |
| struct | WindowEvent |
| struct | WindowStatus |
| struct | WindowLimits |
| struct | AvoidArea |
| struct | RectChangeOptions |
| struct | WindowMask |
| struct | MoveConfiguration |
| struct | NonClientAreaMouseEvent |
| struct | NonClientAreaTouchEvent |
| struct | ShowWindowOptions |
| struct | WindowCallbacks |
Static Public Member Functions | |
| static std::shared_ptr< QOhosWindowProxy > | createMainWindow (const MainWindowCreateInfo &createInfo) |
| static std::shared_ptr< QOhosWindowProxy > | createForExistingMainWindow (const ExistingMainWindowCreateInfo &createInfo) |
| static std::shared_ptr< QOhosWindowProxy > | createFloatWindow (const FloatWindowCreateInfo &createInfo) |
| static std::vector< QArkUi::JsWindowId > | queryWindowIdsByCoordinate (QOhosDisplayInfo::JsDisplayId displayId, const QPoint &queryLocation, std::uint32_t queryLimit=0) |
| static std::vector< QArkUi::JsWindowId > | queryQtManagedWindowIdsByPredicate (const std::function< bool(QOhosJsState &jsState, const QArkUi::JsWindowRef &)> &predicate) |
Definition at line 35 of file qohoswindowproxy.h.
Definition at line 42 of file qohoswindowproxy.h.
Definition at line 133 of file qohoswindowproxy.h.
Definition at line 135 of file qohoswindowproxy.h.
Definition at line 132 of file qohoswindowproxy.h.
Definition at line 46 of file qohoswindowproxy.h.
Definition at line 48 of file qohoswindowproxy.h.
Definition at line 44 of file qohoswindowproxy.h.
Definition at line 134 of file qohoswindowproxy.h.
| using QOhosWindowProxy::SupportWindowMode = QtOhosQpa::enums::ohos::bundle::bundleManager::SupportWindowMode |
Definition at line 118 of file qohoswindowproxy.h.
Definition at line 38 of file qohoswindowproxy.h.
Definition at line 40 of file qohoswindowproxy.h.
|
delete |
|
delete |
| QOhosWindowProxy::~QOhosWindowProxy | ( | ) |
Definition at line 337 of file qohoswindowproxy.cpp.
|
static |
Definition at line 1322 of file qohoswindowproxy.cpp.
|
static |
Definition at line 1306 of file qohoswindowproxy.cpp.
|
static |
Definition at line 1337 of file qohoswindowproxy.cpp.
| std::shared_ptr< QOhosWindowProxy > QOhosWindowProxy::createSubWindow | ( | const SubWindowCreateInfo & | createInfo | ) |
Definition at line 1363 of file qohoswindowproxy.cpp.
| void QOhosWindowProxy::enableDrag | ( | bool | enable | ) |
Definition at line 1790 of file qohoswindowproxy.cpp.
References QtOhos::invokeInJsThreadAndWaitForContinue(), QtOhos::mapBoolToTrueFalseStr(), and qtIsMainWindow().
Definition at line 1727 of file qohoswindowproxy.cpp.
| bool QOhosWindowProxy::getImmersiveModeEnabledState | ( | ) |
Definition at line 797 of file qohoswindowproxy.cpp.
| QOhosWindowProxy::AvoidArea QOhosWindowProxy::getWindowAvoidArea | ( | AvoidAreaType | type | ) | const |
Definition at line 908 of file qohoswindowproxy.cpp.
| QOhosWindowProxy::WindowLimits QOhosWindowProxy::getWindowLimits | ( | ) | const |
Definition at line 890 of file qohoswindowproxy.cpp.
| QArkUi::WindowProperties QOhosWindowProxy::getWindowProperties | ( | ) | const |
Definition at line 534 of file qohoswindowproxy.cpp.
Referenced by moveWindowToGlobalOrGlobalDisplay(), QWindowProxyRegistry::registerQWindowWithWindowProxy(), setWindowMask(), and tryGetMainWindowJsDisplayId().
| std::optional< bool > QOhosWindowProxy::isFocused | ( | ) | const |
Definition at line 1812 of file qohoswindowproxy.cpp.
| bool QOhosWindowProxy::isWindowRectAutoSave | ( | ) | const |
Definition at line 1148 of file qohoswindowproxy.cpp.
References QtOhos::QUiAbilityPeer::tryCastFromQAbilityPeerOrNull().
Referenced by QT_BEGIN_NAMESPACE::syncWindowGeometryPersistenceState().
| void QOhosWindowProxy::maximize | ( | MaximizePresentation | maximizePresentation | ) |
Definition at line 696 of file qohoswindowproxy.cpp.
References QtOhos::invokeInJsThreadAndWaitForContinue(), and qtIsMainWindow().
Referenced by QOhosView::maximize(), and QOhosView::setFullScreen().
| void QOhosWindowProxy::minimize | ( | ) |
Definition at line 683 of file qohoswindowproxy.cpp.
References QtOhos::invokeInJsThreadAndWaitForContinue().
Referenced by QOhosView::minimize().
| void QOhosWindowProxy::moveWindowToGlobal | ( | const QPoint & | position, |
| const MoveConfiguration & | moveConfiguration ) |
Definition at line 1864 of file qohoswindowproxy.cpp.
References QtOhos::invokeInJsThreadAndWaitForContinue().
| void QOhosWindowProxy::moveWindowToGlobalOrGlobalDisplay | ( | const QPoint & | position, |
| std::optional< QOhosDisplayInfo::JsDisplayId > | optDisplayId ) |
Definition at line 369 of file qohoswindowproxy.cpp.
References getWindowProperties(), QtOhos::invokeInJsThreadAndWaitForContinue(), and QOhosDisplayInfo::isDisplayMainOrExtended().
| std::shared_ptr< QXComponentNode > QOhosWindowProxy::nodeXComponent | ( | ) | const |
Definition at line 1352 of file qohoswindowproxy.cpp.
|
delete |
|
delete |
| std::string QOhosWindowProxy::qAbilityInstanceId | ( | ) | const |
Definition at line 1357 of file qohoswindowproxy.cpp.
| bool QOhosWindowProxy::qtIsMainWindow | ( | ) | const |
Definition at line 610 of file qohoswindowproxy.cpp.
References MainWindow.
Referenced by enableDrag(), maximize(), setFollowParentMultiScreenPolicy(), setSubWindowModalDisabled(), setSubWindowModalEnabled(), setWindowCornerRadius(), setWindowMask(), setWindowShadowRadius(), setWindowTitleButtonVisible(), setWindowTopmost(), and tryGetMainWindowJsDisplayId().
|
static |
Definition at line 1854 of file qohoswindowproxy.cpp.
|
static |
Definition at line 1824 of file qohoswindowproxy.cpp.
| void QOhosWindowProxy::raiseToAppTop | ( | ) |
Definition at line 615 of file qohoswindowproxy.cpp.
References QtOhos::invokeInJsThreadAndWaitForContinue().
| void QOhosWindowProxy::recover | ( | ) |
Definition at line 654 of file qohoswindowproxy.cpp.
References QtOhos::invokeInJsThreadAndWaitForContinue().
Referenced by QOhosView::recover().
| void QOhosWindowProxy::removeStartingWindow | ( | ) |
Definition at line 348 of file qohoswindowproxy.cpp.
References QtOhos::invokeInJsThreadAndWaitForContinue(), and QtOhos::QUiAbilityPeer::tryCastFromQAbilityPeerOrNull().
| void QOhosWindowProxy::resetSubWindowCloseHandler | ( | ) |
Definition at line 1275 of file qohoswindowproxy.cpp.
| void QOhosWindowProxy::restore | ( | ) |
Definition at line 670 of file qohoswindowproxy.cpp.
References QtOhos::invokeInJsThreadAndWaitForContinue().
Definition at line 477 of file qohoswindowproxy.cpp.
References QtOhos::invokeInJsThreadAndWaitForContinue().
| void QOhosWindowProxy::setFollowParentMultiScreenPolicy | ( | bool | enabled | ) |
Definition at line 1179 of file qohoswindowproxy.cpp.
References QtOhos::invokeInJsThreadAndWaitForContinue(), and qtIsMainWindow().
| void QOhosWindowProxy::setNonClientAreaMouseWindowCallbackReceiver | ( | QObject * | contextObject, |
| QOhosConsumer< std::vector< NonClientAreaMouseEvent > > | mouseEventBatchConsumer ) |
Definition at line 566 of file qohoswindowproxy.cpp.
References QtOhos::runInJsThreadAndWait().
| void QOhosWindowProxy::setNonClientAreaTouchWindowCallbackReceiver | ( | QObject * | contextObject, |
| QOhosConsumer< std::vector< NonClientAreaTouchEvent > > | touchEventBatchConsumer ) |
Definition at line 588 of file qohoswindowproxy.cpp.
References QtOhos::runInJsThreadAndWait().
Definition at line 520 of file qohoswindowproxy.cpp.
References QtOhos::runInJsThreadAndWait().
Definition at line 440 of file qohoswindowproxy.cpp.
References QtOhos::invokeInJsThreadAndWaitForContinue().
| void QOhosWindowProxy::setSubWindowCloseHandler | ( | std::function< void()> | handler, |
| bool | handlerReturnValue ) |
Definition at line 1268 of file qohoswindowproxy.cpp.
| void QOhosWindowProxy::setSubWindowModalDisabled | ( | ) |
Definition at line 981 of file qohoswindowproxy.cpp.
References QtOhos::invokeInJsThreadAndWaitForContinue(), and qtIsMainWindow().
| void QOhosWindowProxy::setSubWindowModalEnabled | ( | ModalityType | ModalityType | ) |
Definition at line 999 of file qohoswindowproxy.cpp.
References QtOhosQpa::enums::ohos::window::APPLICATION_MODALITY, QOhosSettings::instance(), QtOhos::invokeInJsThreadAndWaitForContinue(), QOhosSettings::isWindowPcModeEnabled(), and qtIsMainWindow().
| void QOhosWindowProxy::setSupportedWindowModes | ( | const std::set< SupportWindowMode > & | supportedWindowModes | ) |
Definition at line 1215 of file qohoswindowproxy.cpp.
References QtOhos::invokeInJsThreadAndWaitForContinue(), and QtOhos::QUiAbilityPeer::tryCastFromQAbilityPeerOrNull().
Definition at line 1025 of file qohoswindowproxy.cpp.
References QtOhos::invokeInJsThreadAndWaitForContinue().
Definition at line 465 of file qohoswindowproxy.cpp.
References QtOhos::runInJsThreadAndWait().
| void QOhosWindowProxy::setWindowCallbackReceiver | ( | std::unique_ptr< WindowCallbacks > | receiver | ) |
Definition at line 545 of file qohoswindowproxy.cpp.
References QtOhos::runInJsThreadAndWait().
| void QOhosWindowProxy::setWindowCornerRadius | ( | double | radius | ) |
Definition at line 1135 of file qohoswindowproxy.cpp.
References QtOhos::invokeInJsThreadAndWaitForContinue(), and qtIsMainWindow().
| void QOhosWindowProxy::setWindowDecorVisible | ( | bool | visible | ) |
Definition at line 1092 of file qohoswindowproxy.cpp.
References QtOhos::runInJsThreadAndWait().
| void QOhosWindowProxy::setWindowFocusable | ( | bool | focusable | ) |
Definition at line 825 of file qohoswindowproxy.cpp.
References QtOhos::invokeInJsThreadAndWaitForContinue().
| void QOhosWindowProxy::setWindowKeepScreenOn | ( | bool | keepScreenOn | ) |
Definition at line 1197 of file qohoswindowproxy.cpp.
References QtOhos::invokeInJsThreadAndWaitForContinue(), and QtOhos::mapBoolToTrueFalseStr().
| void QOhosWindowProxy::setWindowLayoutFullScreen | ( | bool | isLayoutFullScreen | ) |
Definition at line 720 of file qohoswindowproxy.cpp.
References QtOhos::invokeInJsThreadAndWaitForContinue().
Definition at line 857 of file qohoswindowproxy.cpp.
References QtOhos::invokeInJsThreadAndWaitForContinue(), and QOhosDeviceInfo::is2in1().
| void QOhosWindowProxy::setWindowMask | ( | const WindowMask & | windowMask, |
| const std::optional< QSize > & | ohosMaskSizeOverride = {} ) |
Definition at line 922 of file qohoswindowproxy.cpp.
References getWindowProperties(), QtOhos::invokeInJsThreadAndWaitForContinue(), and qtIsMainWindow().
| void QOhosWindowProxy::setWindowPrivacyMode | ( | bool | privacyMode | ) |
Definition at line 808 of file qohoswindowproxy.cpp.
References QtOhos::invokeInJsThreadAndWaitForContinue().
| void QOhosWindowProxy::setWindowRectAutoSave | ( | bool | enabed | ) |
Definition at line 1244 of file qohoswindowproxy.cpp.
References QtOhos::invokeInJsThreadAndWaitForContinue(), and QtOhos::QUiAbilityPeer::tryCastFromQAbilityPeerOrNull().
Referenced by QT_BEGIN_NAMESPACE::syncWindowGeometryPersistenceState().
| void QOhosWindowProxy::setWindowShadowRadius | ( | double | radius | ) |
Definition at line 1119 of file qohoswindowproxy.cpp.
References QOhosDeviceInfo::is2in1(), QOhosDeviceInfo::isTablet(), qtIsMainWindow(), and QtOhos::runInJsThreadAndWait().
| void QOhosWindowProxy::setWindowSystemBarEnable | ( | const QStringList & | names | ) |
Definition at line 737 of file qohoswindowproxy.cpp.
References QtOhos::invokeInJsThreadAndWaitForContinue().
| void QOhosWindowProxy::setWindowTitleButtonVisible | ( | bool | maximizeVisible, |
| bool | minimizeVisible, | ||
| bool | closeVisible ) |
Definition at line 1040 of file qohoswindowproxy.cpp.
References qtIsMainWindow(), QtOhos::runIgnoringJsBusinessError(), and QtOhos::runInJsThreadAndWait().
| void QOhosWindowProxy::setWindowTitleMoveEnabled | ( | bool | enabled | ) |
Definition at line 1103 of file qohoswindowproxy.cpp.
References QOhosSettings::instance(), QOhosSettings::isWindowPcModeEnabled(), and QtOhos::runInJsThreadAndWait().
| void QOhosWindowProxy::setWindowTopmost | ( | bool | topmost | ) |
Definition at line 1067 of file qohoswindowproxy.cpp.
References QOhosSettings::instance(), QtOhos::invokeInJsThreadAndWaitForContinue(), QOhosSettings::isWindowPcModeEnabled(), and qtIsMainWindow().
| void QOhosWindowProxy::setWindowTouchable | ( | bool | touchable | ) |
Definition at line 841 of file qohoswindowproxy.cpp.
References QtOhos::invokeInJsThreadAndWaitForContinue().
| void QOhosWindowProxy::shiftAppWindowFocus | ( | QOhosWindowProxy & | targetProxy | ) |
Definition at line 1903 of file qohoswindowproxy.cpp.
References QtOhos::invokeInJsThreadAndWaitForContinue().
| void QOhosWindowProxy::showAbility | ( | ) |
Definition at line 755 of file qohoswindowproxy.cpp.
References QtOhos::invokeInJsThreadAndWaitForContinue().
| void QOhosWindowProxy::showWindow | ( | const ShowWindowOptions & | options = ShowWindowOptions() | ) |
Definition at line 629 of file qohoswindowproxy.cpp.
References QtOhos::invokeInJsThreadAndWaitForContinue().
| QPixmap QOhosWindowProxy::snapshot | ( | ) | const |
Definition at line 1699 of file qohoswindowproxy.cpp.
| bool QOhosWindowProxy::startMoving | ( | ) |
Definition at line 1772 of file qohoswindowproxy.cpp.
References QtOhos::invokeInJsThreadAndWaitForContinue().
| std::optional< QOhosDisplayInfo::JsDisplayId > QOhosWindowProxy::tryGetMainWindowJsDisplayId | ( | ) | const |
Definition at line 1888 of file qohoswindowproxy.cpp.
References getWindowProperties(), qtIsMainWindow(), and QtOhos::QUiAbilityPeer::tryCastFromQAbilityPeerOrNull().
Referenced by QT_BEGIN_NAMESPACE::tryGetSubWindowJsDisplayId().
| bool QOhosWindowProxy::tryHideAbility | ( | ) |
Definition at line 772 of file qohoswindowproxy.cpp.