![]() |
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(QtOhos::JsState &jsState, const QArkUi::JsWindowRef &)> &predicate) |
Definition at line 34 of file qohoswindowproxy.h.
Definition at line 41 of file qohoswindowproxy.h.
Definition at line 131 of file qohoswindowproxy.h.
Definition at line 133 of file qohoswindowproxy.h.
Definition at line 130 of file qohoswindowproxy.h.
Definition at line 45 of file qohoswindowproxy.h.
Definition at line 47 of file qohoswindowproxy.h.
Definition at line 43 of file qohoswindowproxy.h.
Definition at line 132 of file qohoswindowproxy.h.
| using QOhosWindowProxy::SupportWindowMode = QtOhos::enums::ohos::bundle::bundleManager::SupportWindowMode |
Definition at line 116 of file qohoswindowproxy.h.
Definition at line 37 of file qohoswindowproxy.h.
Definition at line 39 of file qohoswindowproxy.h.
|
delete |
|
delete |
| QOhosWindowProxy::~QOhosWindowProxy | ( | ) |
Definition at line 339 of file qohoswindowproxy.cpp.
|
static |
Definition at line 1299 of file qohoswindowproxy.cpp.
|
static |
Definition at line 1283 of file qohoswindowproxy.cpp.
|
static |
Definition at line 1314 of file qohoswindowproxy.cpp.
| std::shared_ptr< QOhosWindowProxy > QOhosWindowProxy::createSubWindow | ( | const SubWindowCreateInfo & | createInfo | ) |
Definition at line 1340 of file qohoswindowproxy.cpp.
| void QOhosWindowProxy::enableDrag | ( | bool | enable | ) |
Definition at line 1713 of file qohoswindowproxy.cpp.
References QtOhos::invokeInJsThreadAndWaitForContinue(), QtOhos::mapBoolToTrueFalseStr(), and qtIsMainWindow().
| bool QOhosWindowProxy::getImmersiveModeEnabledState | ( | ) |
Definition at line 784 of file qohoswindowproxy.cpp.
| QOhosWindowProxy::AvoidArea QOhosWindowProxy::getWindowAvoidArea | ( | AvoidAreaType | type | ) | const |
Definition at line 885 of file qohoswindowproxy.cpp.
| QOhosWindowProxy::WindowLimits QOhosWindowProxy::getWindowLimits | ( | ) | const |
Definition at line 867 of file qohoswindowproxy.cpp.
| QArkUi::WindowProperties QOhosWindowProxy::getWindowProperties | ( | ) | const |
Definition at line 528 of file qohoswindowproxy.cpp.
Referenced by moveWindowToGlobalOrGlobalDisplay(), QWindowProxyRegistry::registerQWindowWithWindowProxy(), setWindowMask(), and tryGetMainWindowJsDisplayId().
| QOhosOptional< bool > QOhosWindowProxy::isFocused | ( | ) | const |
Definition at line 1735 of file qohoswindowproxy.cpp.
| bool QOhosWindowProxy::isWindowRectAutoSave | ( | ) | const |
Definition at line 1125 of file qohoswindowproxy.cpp.
References QtOhos::QUiAbilityPeer::tryCastFromQAbilityPeerOrNull().
Referenced by QT_BEGIN_NAMESPACE::syncWindowGeometryPersistenceState().
| void QOhosWindowProxy::maximize | ( | MaximizePresentation | maximizePresentation | ) |
Definition at line 690 of file qohoswindowproxy.cpp.
References qtIsMainWindow(), and QtOhos::runInJsThreadAndWait().
| void QOhosWindowProxy::minimize | ( | ) |
Definition at line 677 of file qohoswindowproxy.cpp.
References QtOhos::invokeInJsThreadAndWaitForContinue().
| void QOhosWindowProxy::moveWindowToGlobal | ( | const QPoint & | position, |
| const MoveConfiguration & | moveConfiguration ) |
Definition at line 1788 of file qohoswindowproxy.cpp.
References QtOhos::invokeInJsThreadAndWaitForContinue().
| void QOhosWindowProxy::moveWindowToGlobalOrGlobalDisplay | ( | const QPoint & | position, |
| QOhosOptional< QOhosDisplayInfo::JsDisplayId > | optDisplayId ) |
Definition at line 371 of file qohoswindowproxy.cpp.
References getWindowProperties(), QtOhos::invokeInJsThreadAndWaitForContinue(), and QOhosDisplayInfo::isDisplayMainOrExtended().
| std::shared_ptr< QXComponentNode > QOhosWindowProxy::nodeXComponent | ( | ) | const |
Definition at line 1329 of file qohoswindowproxy.cpp.
|
delete |
|
delete |
| std::string QOhosWindowProxy::qAbilityInstanceId | ( | ) | const |
Definition at line 1334 of file qohoswindowproxy.cpp.
| bool QOhosWindowProxy::qtIsMainWindow | ( | ) | const |
Definition at line 604 of file qohoswindowproxy.cpp.
References MainWindow.
Referenced by enableDrag(), maximize(), setFollowParentMultiScreenPolicy(), setSubWindowModalDisabled(), setSubWindowModalEnabled(), setWindowCornerRadius(), setWindowMask(), setWindowShadowRadius(), setWindowTitleButtonVisible(), setWindowTopmost(), and tryGetMainWindowJsDisplayId().
|
static |
Definition at line 1778 of file qohoswindowproxy.cpp.
|
static |
Definition at line 1748 of file qohoswindowproxy.cpp.
| void QOhosWindowProxy::raiseToAppTop | ( | ) |
Definition at line 614 of file qohoswindowproxy.cpp.
References QtOhos::invokeInJsThreadAndWaitForContinue().
| void QOhosWindowProxy::recover | ( | ) |
Definition at line 653 of file qohoswindowproxy.cpp.
References QtOhos::runInJsThreadAndWait().
| void QOhosWindowProxy::removeStartingWindow | ( | ) |
Definition at line 350 of file qohoswindowproxy.cpp.
References QtOhos::invokeInJsThreadAndWaitForContinue(), and QtOhos::QUiAbilityPeer::tryCastFromQAbilityPeerOrNull().
| void QOhosWindowProxy::resetSubWindowCloseHandler | ( | ) |
Definition at line 1252 of file qohoswindowproxy.cpp.
| void QOhosWindowProxy::restore | ( | ) |
Definition at line 664 of file qohoswindowproxy.cpp.
References QtOhos::invokeInJsThreadAndWaitForContinue().
Definition at line 471 of file qohoswindowproxy.cpp.
References QtOhos::invokeInJsThreadAndWaitForContinue().
| void QOhosWindowProxy::setFollowParentMultiScreenPolicy | ( | bool | enabled | ) |
Definition at line 1156 of file qohoswindowproxy.cpp.
References QtOhos::invokeInJsThreadAndWaitForContinue(), and qtIsMainWindow().
| void QOhosWindowProxy::setNonClientAreaMouseWindowCallbackReceiver | ( | QObject * | contextObject, |
| QOhosConsumer< std::vector< NonClientAreaMouseEvent > > | mouseEventBatchConsumer ) |
Definition at line 560 of file qohoswindowproxy.cpp.
References QtOhos::runInJsThreadAndWait().
| void QOhosWindowProxy::setNonClientAreaTouchWindowCallbackReceiver | ( | QObject * | contextObject, |
| QOhosConsumer< std::vector< NonClientAreaTouchEvent > > | touchEventBatchConsumer ) |
Definition at line 582 of file qohoswindowproxy.cpp.
References QtOhos::runInJsThreadAndWait().
Definition at line 514 of file qohoswindowproxy.cpp.
References QtOhos::runInJsThreadAndWait().
Definition at line 442 of file qohoswindowproxy.cpp.
References QtOhos::invokeInJsThreadAndWaitForContinue().
| void QOhosWindowProxy::setSubWindowCloseHandler | ( | std::function< void()> | handler, |
| bool | handlerReturnValue ) |
Definition at line 1245 of file qohoswindowproxy.cpp.
| void QOhosWindowProxy::setSubWindowModalDisabled | ( | ) |
Definition at line 958 of file qohoswindowproxy.cpp.
References QtOhos::invokeInJsThreadAndWaitForContinue(), and qtIsMainWindow().
| void QOhosWindowProxy::setSubWindowModalEnabled | ( | ModalityType | ModalityType | ) |
Definition at line 976 of file qohoswindowproxy.cpp.
References QtOhos::enums::ohos::window::APPLICATION_MODALITY, QOhosPlatformIntegration::instance(), QtOhos::invokeInJsThreadAndWaitForContinue(), QOhosSettings::isWindowPcModeEnabled(), qtIsMainWindow(), and QOhosPlatformIntegration::settings().
| void QOhosWindowProxy::setSupportedWindowModes | ( | const std::set< SupportWindowMode > & | supportedWindowModes | ) |
Definition at line 1192 of file qohoswindowproxy.cpp.
References QtOhos::invokeInJsThreadAndWaitForContinue(), and QtOhos::QUiAbilityPeer::tryCastFromQAbilityPeerOrNull().
Definition at line 1002 of file qohoswindowproxy.cpp.
References QtOhos::invokeInJsThreadAndWaitForContinue().
Definition at line 459 of file qohoswindowproxy.cpp.
References QtOhos::runInJsThreadAndWait().
| void QOhosWindowProxy::setWindowCallbackReceiver | ( | std::unique_ptr< WindowCallbacks > | receiver | ) |
Definition at line 539 of file qohoswindowproxy.cpp.
References QtOhos::runInJsThreadAndWait().
| void QOhosWindowProxy::setWindowCornerRadius | ( | double | radius | ) |
Definition at line 1112 of file qohoswindowproxy.cpp.
References QtOhos::invokeInJsThreadAndWaitForContinue(), and qtIsMainWindow().
| void QOhosWindowProxy::setWindowDecorVisible | ( | bool | visible | ) |
Definition at line 1069 of file qohoswindowproxy.cpp.
References QtOhos::runInJsThreadAndWait().
| void QOhosWindowProxy::setWindowFocusable | ( | bool | focusable | ) |
Definition at line 812 of file qohoswindowproxy.cpp.
References QtOhos::runInJsThreadAndWait().
| void QOhosWindowProxy::setWindowKeepScreenOn | ( | bool | keepScreenOn | ) |
Definition at line 1174 of file qohoswindowproxy.cpp.
References QtOhos::invokeInJsThreadAndWaitForContinue(), and QtOhos::mapBoolToTrueFalseStr().
| void QOhosWindowProxy::setWindowLayoutFullScreen | ( | bool | isLayoutFullScreen | ) |
Definition at line 707 of file qohoswindowproxy.cpp.
References QtOhos::invokeInJsThreadAndWaitForContinue().
Definition at line 834 of file qohoswindowproxy.cpp.
References QtOhos::invokeInJsThreadAndWaitForContinue(), and QOhosDeviceInfo::is2in1().
| void QOhosWindowProxy::setWindowMask | ( | const WindowMask & | windowMask, |
| const QOhosOptional< QSize > & | ohosMaskSizeOverride = {} ) |
Definition at line 899 of file qohoswindowproxy.cpp.
References getWindowProperties(), QtOhos::invokeInJsThreadAndWaitForContinue(), and qtIsMainWindow().
| void QOhosWindowProxy::setWindowPrivacyMode | ( | bool | privacyMode | ) |
Definition at line 795 of file qohoswindowproxy.cpp.
References QtOhos::invokeInJsThreadAndWaitForContinue().
| void QOhosWindowProxy::setWindowRectAutoSave | ( | bool | enabed | ) |
Definition at line 1221 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 1096 of file qohoswindowproxy.cpp.
References QOhosDeviceInfo::is2in1(), QOhosDeviceInfo::isTablet(), qtIsMainWindow(), and QtOhos::runInJsThreadAndWait().
| void QOhosWindowProxy::setWindowSystemBarEnable | ( | const QStringList & | names | ) |
Definition at line 724 of file qohoswindowproxy.cpp.
References QtOhos::invokeInJsThreadAndWaitForContinue().
| void QOhosWindowProxy::setWindowTitleButtonVisible | ( | bool | maximizeVisible, |
| bool | minimizeVisible, | ||
| bool | closeVisible ) |
Definition at line 1017 of file qohoswindowproxy.cpp.
References qtIsMainWindow(), and QtOhos::runInJsThreadAndWait().
| void QOhosWindowProxy::setWindowTitleMoveEnabled | ( | bool | enabled | ) |
Definition at line 1080 of file qohoswindowproxy.cpp.
References QOhosPlatformIntegration::instance(), QOhosSettings::isWindowPcModeEnabled(), QtOhos::runInJsThreadAndWait(), and QOhosPlatformIntegration::settings().
| void QOhosWindowProxy::setWindowTopmost | ( | bool | topmost | ) |
Definition at line 1044 of file qohoswindowproxy.cpp.
References QOhosPlatformIntegration::instance(), QtOhos::invokeInJsThreadAndWaitForContinue(), QOhosSettings::isWindowPcModeEnabled(), qtIsMainWindow(), and QOhosPlatformIntegration::settings().
| void QOhosWindowProxy::setWindowTouchable | ( | bool | touchable | ) |
Definition at line 823 of file qohoswindowproxy.cpp.
References QtOhos::runInJsThreadAndWait().
| void QOhosWindowProxy::shiftAppWindowFocus | ( | QOhosWindowProxy & | targetProxy | ) |
Definition at line 1827 of file qohoswindowproxy.cpp.
References QtOhos::invokeInJsThreadAndWaitForContinue().
| void QOhosWindowProxy::showAbility | ( | ) |
Definition at line 742 of file qohoswindowproxy.cpp.
References QtOhos::invokeInJsThreadAndWaitForContinue().
| void QOhosWindowProxy::showWindow | ( | const ShowWindowOptions & | options = ShowWindowOptions() | ) |
Definition at line 628 of file qohoswindowproxy.cpp.
References QtOhos::invokeInJsThreadAndWaitForContinue().
| QPixmap QOhosWindowProxy::snapshot | ( | ) | const |
Definition at line 1667 of file qohoswindowproxy.cpp.
| bool QOhosWindowProxy::startMoving | ( | ) |
Definition at line 1695 of file qohoswindowproxy.cpp.
References QtOhos::invokeInJsThreadAndWaitForContinue().
| QOhosOptional< QOhosDisplayInfo::JsDisplayId > QOhosWindowProxy::tryGetMainWindowJsDisplayId | ( | ) | const |
Definition at line 1812 of file qohoswindowproxy.cpp.
References getWindowProperties(), qtIsMainWindow(), and QtOhos::QUiAbilityPeer::tryCastFromQAbilityPeerOrNull().
| bool QOhosWindowProxy::tryHideAbility | ( | ) |
Definition at line 759 of file qohoswindowproxy.cpp.
| WindowProxyType QOhosWindowProxy::windowProxyType | ( | ) | const |
Definition at line 609 of file qohoswindowproxy.cpp.