![]() |
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 35 of file qohoswindowproxy.h.
Definition at line 42 of file qohoswindowproxy.h.
Definition at line 132 of file qohoswindowproxy.h.
Definition at line 134 of file qohoswindowproxy.h.
Definition at line 131 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 133 of file qohoswindowproxy.h.
| using QOhosWindowProxy::SupportWindowMode = QtOhos::enums::ohos::bundle::bundleManager::SupportWindowMode |
Definition at line 117 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 338 of file qohoswindowproxy.cpp.
|
static |
Definition at line 1301 of file qohoswindowproxy.cpp.
|
static |
Definition at line 1285 of file qohoswindowproxy.cpp.
|
static |
Definition at line 1316 of file qohoswindowproxy.cpp.
| std::shared_ptr< QOhosWindowProxy > QOhosWindowProxy::createSubWindow | ( | const SubWindowCreateInfo & | createInfo | ) |
Definition at line 1342 of file qohoswindowproxy.cpp.
| void QOhosWindowProxy::enableDrag | ( | bool | enable | ) |
Definition at line 1718 of file qohoswindowproxy.cpp.
References QtOhos::invokeInJsThreadAndWaitForContinue(), QtOhos::mapBoolToTrueFalseStr(), and qtIsMainWindow().
| bool QOhosWindowProxy::getImmersiveModeEnabledState | ( | ) |
Definition at line 786 of file qohoswindowproxy.cpp.
| QOhosWindowProxy::AvoidArea QOhosWindowProxy::getWindowAvoidArea | ( | AvoidAreaType | type | ) | const |
Definition at line 887 of file qohoswindowproxy.cpp.
| QOhosWindowProxy::WindowLimits QOhosWindowProxy::getWindowLimits | ( | ) | const |
Definition at line 869 of file qohoswindowproxy.cpp.
| QArkUi::WindowProperties QOhosWindowProxy::getWindowProperties | ( | ) | const |
Definition at line 535 of file qohoswindowproxy.cpp.
Referenced by moveWindowToGlobalOrGlobalDisplay(), QWindowProxyRegistry::registerQWindowWithWindowProxy(), setWindowMask(), and tryGetMainWindowJsDisplayId().
| std::optional< bool > QOhosWindowProxy::isFocused | ( | ) | const |
Definition at line 1740 of file qohoswindowproxy.cpp.
| bool QOhosWindowProxy::isWindowRectAutoSave | ( | ) | const |
Definition at line 1127 of file qohoswindowproxy.cpp.
References QtOhos::QUiAbilityPeer::tryCastFromQAbilityPeerOrNull().
Referenced by QT_BEGIN_NAMESPACE::syncWindowGeometryPersistenceState().
| void QOhosWindowProxy::maximize | ( | MaximizePresentation | maximizePresentation | ) |
Definition at line 692 of file qohoswindowproxy.cpp.
References qtIsMainWindow(), and QtOhos::runInJsThreadAndWait().
Referenced by QOhosView::maximize(), and QOhosView::setFullScreen().
| void QOhosWindowProxy::minimize | ( | ) |
Definition at line 679 of file qohoswindowproxy.cpp.
References QtOhos::invokeInJsThreadAndWaitForContinue().
Referenced by QOhosView::minimize().
| void QOhosWindowProxy::moveWindowToGlobal | ( | const QPoint & | position, |
| const MoveConfiguration & | moveConfiguration ) |
Definition at line 1792 of file qohoswindowproxy.cpp.
References QtOhos::invokeInJsThreadAndWaitForContinue().
| void QOhosWindowProxy::moveWindowToGlobalOrGlobalDisplay | ( | const QPoint & | position, |
| std::optional< QOhosDisplayInfo::JsDisplayId > | optDisplayId ) |
Definition at line 370 of file qohoswindowproxy.cpp.
References getWindowProperties(), QtOhos::invokeInJsThreadAndWaitForContinue(), and QOhosDisplayInfo::isDisplayMainOrExtended().
| std::shared_ptr< QXComponentNode > QOhosWindowProxy::nodeXComponent | ( | ) | const |
Definition at line 1331 of file qohoswindowproxy.cpp.
|
delete |
|
delete |
| std::string QOhosWindowProxy::qAbilityInstanceId | ( | ) | const |
Definition at line 1336 of file qohoswindowproxy.cpp.
| bool QOhosWindowProxy::qtIsMainWindow | ( | ) | const |
Definition at line 611 of file qohoswindowproxy.cpp.
References MainWindow.
Referenced by enableDrag(), maximize(), setFollowParentMultiScreenPolicy(), setSubWindowModalDisabled(), setSubWindowModalEnabled(), setWindowCornerRadius(), setWindowMask(), setWindowShadowRadius(), setWindowTitleButtonVisible(), setWindowTopmost(), and tryGetMainWindowJsDisplayId().
|
static |
Definition at line 1782 of file qohoswindowproxy.cpp.
|
static |
Definition at line 1752 of file qohoswindowproxy.cpp.
| void QOhosWindowProxy::raiseToAppTop | ( | ) |
Definition at line 616 of file qohoswindowproxy.cpp.
References QtOhos::invokeInJsThreadAndWaitForContinue().
| void QOhosWindowProxy::recover | ( | ) |
Definition at line 655 of file qohoswindowproxy.cpp.
References QtOhos::runInJsThreadAndWait().
Referenced by QOhosView::recover().
| void QOhosWindowProxy::removeStartingWindow | ( | ) |
Definition at line 349 of file qohoswindowproxy.cpp.
References QtOhos::invokeInJsThreadAndWaitForContinue(), and QtOhos::QUiAbilityPeer::tryCastFromQAbilityPeerOrNull().
| void QOhosWindowProxy::resetSubWindowCloseHandler | ( | ) |
Definition at line 1254 of file qohoswindowproxy.cpp.
| void QOhosWindowProxy::restore | ( | ) |
Definition at line 666 of file qohoswindowproxy.cpp.
References QtOhos::invokeInJsThreadAndWaitForContinue().
Definition at line 478 of file qohoswindowproxy.cpp.
References QtOhos::invokeInJsThreadAndWaitForContinue().
| void QOhosWindowProxy::setFollowParentMultiScreenPolicy | ( | bool | enabled | ) |
Definition at line 1158 of file qohoswindowproxy.cpp.
References QtOhos::invokeInJsThreadAndWaitForContinue(), and qtIsMainWindow().
| void QOhosWindowProxy::setNonClientAreaMouseWindowCallbackReceiver | ( | QObject * | contextObject, |
| QOhosConsumer< std::vector< NonClientAreaMouseEvent > > | mouseEventBatchConsumer ) |
Definition at line 567 of file qohoswindowproxy.cpp.
References QtOhos::runInJsThreadAndWait().
| void QOhosWindowProxy::setNonClientAreaTouchWindowCallbackReceiver | ( | QObject * | contextObject, |
| QOhosConsumer< std::vector< NonClientAreaTouchEvent > > | touchEventBatchConsumer ) |
Definition at line 589 of file qohoswindowproxy.cpp.
References QtOhos::runInJsThreadAndWait().
Definition at line 521 of file qohoswindowproxy.cpp.
References QtOhos::runInJsThreadAndWait().
Definition at line 441 of file qohoswindowproxy.cpp.
References QtOhos::invokeInJsThreadAndWaitForContinue().
| void QOhosWindowProxy::setSubWindowCloseHandler | ( | std::function< void()> | handler, |
| bool | handlerReturnValue ) |
Definition at line 1247 of file qohoswindowproxy.cpp.
| void QOhosWindowProxy::setSubWindowModalDisabled | ( | ) |
Definition at line 960 of file qohoswindowproxy.cpp.
References QtOhos::invokeInJsThreadAndWaitForContinue(), and qtIsMainWindow().
| void QOhosWindowProxy::setSubWindowModalEnabled | ( | ModalityType | ModalityType | ) |
Definition at line 978 of file qohoswindowproxy.cpp.
References QtOhos::enums::ohos::window::APPLICATION_MODALITY, QOhosSettings::instance(), QtOhos::invokeInJsThreadAndWaitForContinue(), QOhosSettings::isWindowPcModeEnabled(), and qtIsMainWindow().
| void QOhosWindowProxy::setSupportedWindowModes | ( | const std::set< SupportWindowMode > & | supportedWindowModes | ) |
Definition at line 1194 of file qohoswindowproxy.cpp.
References QtOhos::invokeInJsThreadAndWaitForContinue(), and QtOhos::QUiAbilityPeer::tryCastFromQAbilityPeerOrNull().
Definition at line 1004 of file qohoswindowproxy.cpp.
References QtOhos::invokeInJsThreadAndWaitForContinue().
Definition at line 466 of file qohoswindowproxy.cpp.
References QtOhos::runInJsThreadAndWait().
| void QOhosWindowProxy::setWindowCallbackReceiver | ( | std::unique_ptr< WindowCallbacks > | receiver | ) |
Definition at line 546 of file qohoswindowproxy.cpp.
References QtOhos::runInJsThreadAndWait().
| void QOhosWindowProxy::setWindowCornerRadius | ( | double | radius | ) |
Definition at line 1114 of file qohoswindowproxy.cpp.
References QtOhos::invokeInJsThreadAndWaitForContinue(), and qtIsMainWindow().
| void QOhosWindowProxy::setWindowDecorVisible | ( | bool | visible | ) |
Definition at line 1071 of file qohoswindowproxy.cpp.
References QtOhos::runInJsThreadAndWait().
| void QOhosWindowProxy::setWindowFocusable | ( | bool | focusable | ) |
Definition at line 814 of file qohoswindowproxy.cpp.
References QtOhos::runInJsThreadAndWait().
| void QOhosWindowProxy::setWindowKeepScreenOn | ( | bool | keepScreenOn | ) |
Definition at line 1176 of file qohoswindowproxy.cpp.
References QtOhos::invokeInJsThreadAndWaitForContinue(), and QtOhos::mapBoolToTrueFalseStr().
| void QOhosWindowProxy::setWindowLayoutFullScreen | ( | bool | isLayoutFullScreen | ) |
Definition at line 709 of file qohoswindowproxy.cpp.
References QtOhos::invokeInJsThreadAndWaitForContinue().
Definition at line 836 of file qohoswindowproxy.cpp.
References QtOhos::invokeInJsThreadAndWaitForContinue(), and QOhosDeviceInfo::is2in1().
| void QOhosWindowProxy::setWindowMask | ( | const WindowMask & | windowMask, |
| const std::optional< QSize > & | ohosMaskSizeOverride = {} ) |
Definition at line 901 of file qohoswindowproxy.cpp.
References getWindowProperties(), QtOhos::invokeInJsThreadAndWaitForContinue(), and qtIsMainWindow().
| void QOhosWindowProxy::setWindowPrivacyMode | ( | bool | privacyMode | ) |
Definition at line 797 of file qohoswindowproxy.cpp.
References QtOhos::invokeInJsThreadAndWaitForContinue().
| void QOhosWindowProxy::setWindowRectAutoSave | ( | bool | enabed | ) |
Definition at line 1223 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 1098 of file qohoswindowproxy.cpp.
References QOhosDeviceInfo::is2in1(), QOhosDeviceInfo::isTablet(), qtIsMainWindow(), and QtOhos::runInJsThreadAndWait().
| void QOhosWindowProxy::setWindowSystemBarEnable | ( | const QStringList & | names | ) |
Definition at line 726 of file qohoswindowproxy.cpp.
References QtOhos::invokeInJsThreadAndWaitForContinue().
| void QOhosWindowProxy::setWindowTitleButtonVisible | ( | bool | maximizeVisible, |
| bool | minimizeVisible, | ||
| bool | closeVisible ) |
Definition at line 1019 of file qohoswindowproxy.cpp.
References qtIsMainWindow(), and QtOhos::runInJsThreadAndWait().
| void QOhosWindowProxy::setWindowTitleMoveEnabled | ( | bool | enabled | ) |
Definition at line 1082 of file qohoswindowproxy.cpp.
References QOhosSettings::instance(), QOhosSettings::isWindowPcModeEnabled(), and QtOhos::runInJsThreadAndWait().
| void QOhosWindowProxy::setWindowTopmost | ( | bool | topmost | ) |
Definition at line 1046 of file qohoswindowproxy.cpp.
References QOhosSettings::instance(), QtOhos::invokeInJsThreadAndWaitForContinue(), QOhosSettings::isWindowPcModeEnabled(), and qtIsMainWindow().
| void QOhosWindowProxy::setWindowTouchable | ( | bool | touchable | ) |
Definition at line 825 of file qohoswindowproxy.cpp.
References QtOhos::runInJsThreadAndWait().
| void QOhosWindowProxy::shiftAppWindowFocus | ( | QOhosWindowProxy & | targetProxy | ) |
Definition at line 1831 of file qohoswindowproxy.cpp.
References QtOhos::invokeInJsThreadAndWaitForContinue().
| void QOhosWindowProxy::showAbility | ( | ) |
Definition at line 744 of file qohoswindowproxy.cpp.
References QtOhos::invokeInJsThreadAndWaitForContinue().
| void QOhosWindowProxy::showWindow | ( | const ShowWindowOptions & | options = ShowWindowOptions() | ) |
Definition at line 630 of file qohoswindowproxy.cpp.
References QtOhos::invokeInJsThreadAndWaitForContinue().
| QPixmap QOhosWindowProxy::snapshot | ( | ) | const |
Definition at line 1672 of file qohoswindowproxy.cpp.
| bool QOhosWindowProxy::startMoving | ( | ) |
Definition at line 1700 of file qohoswindowproxy.cpp.
References QtOhos::invokeInJsThreadAndWaitForContinue().
| std::optional< QOhosDisplayInfo::JsDisplayId > QOhosWindowProxy::tryGetMainWindowJsDisplayId | ( | ) | const |
Definition at line 1816 of file qohoswindowproxy.cpp.
References getWindowProperties(), qtIsMainWindow(), and QtOhos::QUiAbilityPeer::tryCastFromQAbilityPeerOrNull().
Referenced by QT_BEGIN_NAMESPACE::tryGetSubWindowJsDisplayId().
| bool QOhosWindowProxy::tryHideAbility | ( | ) |
Definition at line 761 of file qohoswindowproxy.cpp.