![]() |
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 |
Public Types | |
| enum class | WindowEventType { WINDOW_SHOWN , WINDOW_ACTIVE , WINDOW_INACTIVE , WINDOW_HIDDEN , WINDOW_DESTROYED } |
| enum class | WindowStatusType { UNDEFINED , FULL_SCREEN , MAXIMIZE , MINIMIZE , FLOATING , SPLIT_SCREEN } |
| enum class | AvoidAreaType { TYPE_SYSTEM , TYPE_CUTOUT , TYPE_SYSTEM_GESTURE , TYPE_KEYBOARD , TYPE_NAVIGATION_INDICATOR } |
| enum class | RectChangeReason { UNDEFINED , MAXIMIZE , RECOVER , MOVE , DRAG , DRAG_START , DRAG_END } |
| enum class | MaximizePresentation { FOLLOW_APP_IMMERSIVE_SETTING , EXIT_IMMERSIVE , ENTER_IMMERSIVE } |
| enum class | ModalityType { WINDOW_MODALITY , APPLICATION_MODALITY } |
| using | SupportWindowMode = QtOhos::enums::ohos::bundle::bundleManager::SupportWindowMode |
| using | MainWindowCreateInfo = QOhosWindowProxyMainWindowCreateInfo |
| using | ExistingMainWindowCreateInfo = QOhosWindowProxyExistingMainWindowCreateInfo |
| using | SubWindowCreateInfo = QOhosWindowProxySubWindowCreateInfo |
| using | FloatWindowCreateInfo = QOhosWindowProxyFloatWindowCreateInfo |
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 36 of file qohoswindowproxy.h.
Definition at line 170 of file qohoswindowproxy.h.
Definition at line 172 of file qohoswindowproxy.h.
Definition at line 169 of file qohoswindowproxy.h.
Definition at line 171 of file qohoswindowproxy.h.
| using QOhosWindowProxy::SupportWindowMode = QtOhos::enums::ohos::bundle::bundleManager::SupportWindowMode |
Definition at line 156 of file qohoswindowproxy.h.
|
strong |
| Enumerator | |
|---|---|
| TYPE_SYSTEM | |
| TYPE_CUTOUT | |
| TYPE_SYSTEM_GESTURE | |
| TYPE_KEYBOARD | |
| TYPE_NAVIGATION_INDICATOR | |
Definition at line 58 of file qohoswindowproxy.h.
|
strong |
| Enumerator | |
|---|---|
| FOLLOW_APP_IMMERSIVE_SETTING | |
| EXIT_IMMERSIVE | |
| ENTER_IMMERSIVE | |
Definition at line 78 of file qohoswindowproxy.h.
|
strong |
| Enumerator | |
|---|---|
| WINDOW_MODALITY | |
| APPLICATION_MODALITY | |
Definition at line 85 of file qohoswindowproxy.h.
|
strong |
| Enumerator | |
|---|---|
| UNDEFINED | |
| MAXIMIZE | |
| RECOVER | |
| MOVE | |
| DRAG | |
| DRAG_START | |
| DRAG_END | |
Definition at line 67 of file qohoswindowproxy.h.
|
strong |
| Enumerator | |
|---|---|
| WINDOW_SHOWN | |
| WINDOW_ACTIVE | |
| WINDOW_INACTIVE | |
| WINDOW_HIDDEN | |
| WINDOW_DESTROYED | |
Definition at line 39 of file qohoswindowproxy.h.
|
strong |
| Enumerator | |
|---|---|
| UNDEFINED | |
| FULL_SCREEN | |
| MAXIMIZE | |
| MINIMIZE | |
| FLOATING | |
| SPLIT_SCREEN | |
Definition at line 48 of file qohoswindowproxy.h.
|
delete |
|
delete |
| QOhosWindowProxy::~QOhosWindowProxy | ( | ) |
Definition at line 321 of file qohoswindowproxy.cpp.
|
static |
Definition at line 1204 of file qohoswindowproxy.cpp.
|
static |
Definition at line 1190 of file qohoswindowproxy.cpp.
|
static |
Definition at line 1217 of file qohoswindowproxy.cpp.
| std::shared_ptr< QOhosWindowProxy > QOhosWindowProxy::createSubWindow | ( | const SubWindowCreateInfo & | createInfo | ) |
Definition at line 1241 of file qohoswindowproxy.cpp.
| bool QOhosWindowProxy::getImmersiveModeEnabledState | ( | ) |
Definition at line 669 of file qohoswindowproxy.cpp.
| QOhosWindowProxy::AvoidArea QOhosWindowProxy::getWindowAvoidArea | ( | AvoidAreaType | type | ) | const |
Definition at line 779 of file qohoswindowproxy.cpp.
| QOhosWindowProxy::WindowLimits QOhosWindowProxy::getWindowLimits | ( | ) | const |
Definition at line 762 of file qohoswindowproxy.cpp.
| QArkUi::WindowProperties QOhosWindowProxy::getWindowProperties | ( | ) | const |
Definition at line 434 of file qohoswindowproxy.cpp.
Referenced by QWindowProxyRegistry::registerQWindowWithWindowProxy(), setWindowMask(), and tryGetMainWindowJsDisplayId().
| QOhosOptional< bool > QOhosWindowProxy::isFocused | ( | ) | const |
Definition at line 1602 of file qohoswindowproxy.cpp.
| bool QOhosWindowProxy::isWindowRectAutoSave | ( | ) | const |
Definition at line 1019 of file qohoswindowproxy.cpp.
References QOhosDeviceInfo::is2in1(), and QtOhos::QUiAbilityPeer::tryCastFromQAbilityPeerOrNull().
Referenced by QT_BEGIN_NAMESPACE::syncWindowGeometryPersistenceState().
| void QOhosWindowProxy::maximize | ( | MaximizePresentation | maximizePresentation | ) |
Definition at line 595 of file qohoswindowproxy.cpp.
References qtIsMainWindow(), and QtOhos::runInJsThreadAndWait().
| void QOhosWindowProxy::minimize | ( | ) |
Definition at line 582 of file qohoswindowproxy.cpp.
References QtOhos::invokeInJsThreadAndWaitForContinue().
| void QOhosWindowProxy::moveWindowToGlobal | ( | const QPoint & | position, |
| const MoveConfiguration & | moveConfiguration ) |
Definition at line 1652 of file qohoswindowproxy.cpp.
References QtOhos::invokeInJsThreadAndWaitForContinue().
| std::shared_ptr< QXComponentNode > QOhosWindowProxy::nodeXComponent | ( | ) | const |
Definition at line 1230 of file qohoswindowproxy.cpp.
|
delete |
|
delete |
| std::string QOhosWindowProxy::qAbilityInstanceId | ( | ) | const |
Definition at line 1235 of file qohoswindowproxy.cpp.
| bool QOhosWindowProxy::qtIsMainWindow | ( | ) | const |
Definition at line 505 of file qohoswindowproxy.cpp.
References MainWindow.
Referenced by maximize(), setFollowParentMultiScreenPolicy(), setSubWindowModalDisabled(), setSubWindowModalEnabled(), setWindowCornerRadius(), setWindowMask(), setWindowShadowRadius(), setWindowTitleButtonVisible(), setWindowTopmost(), and tryGetMainWindowJsDisplayId().
|
static |
Definition at line 1643 of file qohoswindowproxy.cpp.
|
static |
Definition at line 1614 of file qohoswindowproxy.cpp.
| void QOhosWindowProxy::raiseToAppTop | ( | ) |
Definition at line 515 of file qohoswindowproxy.cpp.
References QtOhos::invokeInJsThreadAndWaitForContinue().
| void QOhosWindowProxy::recover | ( | ) |
Definition at line 560 of file qohoswindowproxy.cpp.
References QtOhos::runInJsThreadAndWait().
| void QOhosWindowProxy::removeStartingWindow | ( | ) |
Definition at line 332 of file qohoswindowproxy.cpp.
References QtOhos::invokeInJsThreadAndWaitForContinue(), and QtOhos::QUiAbilityPeer::tryCastFromQAbilityPeerOrNull().
| void QOhosWindowProxy::resetSubWindowCloseHandler | ( | ) |
Definition at line 1160 of file qohoswindowproxy.cpp.
| void QOhosWindowProxy::restore | ( | ) |
Definition at line 570 of file qohoswindowproxy.cpp.
References QtOhos::invokeInJsThreadAndWaitForContinue().
Definition at line 379 of file qohoswindowproxy.cpp.
References QtOhos::invokeInJsThreadAndWaitForContinue().
| void QOhosWindowProxy::setFollowParentMultiScreenPolicy | ( | bool | enabled | ) |
Definition at line 1057 of file qohoswindowproxy.cpp.
References QtOhos::invokeInJsThreadAndWaitForContinue(), QOhosSettings::isWindowPcModeEnabled(), and qtIsMainWindow().
| void QOhosWindowProxy::setNonClientAreaMouseWindowCallbackReceiver | ( | QObject * | contextObject, |
| QOhosConsumer< std::vector< NonClientAreaMouseEvent > > | mouseEventBatchConsumer ) |
Definition at line 463 of file qohoswindowproxy.cpp.
References QtOhos::runInJsThreadAndWait().
| void QOhosWindowProxy::setNonClientAreaTouchWindowCallbackReceiver | ( | QObject * | contextObject, |
| QOhosConsumer< std::vector< NonClientAreaTouchEvent > > | touchEventBatchConsumer ) |
Definition at line 484 of file qohoswindowproxy.cpp.
References QtOhos::runInJsThreadAndWait().
Definition at line 421 of file qohoswindowproxy.cpp.
References QtOhos::runInJsThreadAndWait().
Definition at line 352 of file qohoswindowproxy.cpp.
References QtOhos::invokeInJsThreadAndWaitForContinue().
| void QOhosWindowProxy::setSubWindowCloseHandler | ( | std::function< void()> | handler, |
| bool | handlerReturnValue ) |
Definition at line 1153 of file qohoswindowproxy.cpp.
| void QOhosWindowProxy::setSubWindowModalDisabled | ( | ) |
Definition at line 862 of file qohoswindowproxy.cpp.
References QtOhos::invokeInJsThreadAndWaitForContinue(), and qtIsMainWindow().
| void QOhosWindowProxy::setSubWindowModalEnabled | ( | ModalityType | ModalityType | ) |
Definition at line 879 of file qohoswindowproxy.cpp.
References APPLICATION_MODALITY, QtOhos::invokeInJsThreadAndWaitForContinue(), QOhosDeviceInfo::is2in1(), and qtIsMainWindow().
| void QOhosWindowProxy::setSupportedWindowModes | ( | const std::set< SupportWindowMode > & | supportedWindowModes | ) |
Definition at line 1096 of file qohoswindowproxy.cpp.
References QtOhos::invokeInJsThreadAndWaitForContinue(), and QtOhos::QUiAbilityPeer::tryCastFromQAbilityPeerOrNull().
Definition at line 904 of file qohoswindowproxy.cpp.
References QtOhos::invokeInJsThreadAndWaitForContinue().
Definition at line 368 of file qohoswindowproxy.cpp.
References QtOhos::runInJsThreadAndWait().
| void QOhosWindowProxy::setWindowCallbackReceiver | ( | std::unique_ptr< WindowCallbacks > | receiver | ) |
Definition at line 444 of file qohoswindowproxy.cpp.
References QtOhos::runInJsThreadAndWait().
| void QOhosWindowProxy::setWindowCornerRadius | ( | double | radius | ) |
Definition at line 1007 of file qohoswindowproxy.cpp.
References QtOhos::invokeInJsThreadAndWaitForContinue(), and qtIsMainWindow().
| void QOhosWindowProxy::setWindowDecorVisible | ( | bool | visible | ) |
Definition at line 967 of file qohoswindowproxy.cpp.
References QtOhos::runInJsThreadAndWait().
| void QOhosWindowProxy::setWindowFocusable | ( | bool | focusable | ) |
Definition at line 705 of file qohoswindowproxy.cpp.
References QtOhos::runInJsThreadAndWait().
| void QOhosWindowProxy::setWindowKeepScreenOn | ( | bool | keepScreenOn | ) |
Definition at line 1079 of file qohoswindowproxy.cpp.
References QtOhos::invokeInJsThreadAndWaitForContinue(), and QtOhos::mapBoolToTrueFalseStr().
Definition at line 725 of file qohoswindowproxy.cpp.
References QtOhos::invokeInJsThreadAndWaitForContinue(), and QOhosDeviceInfo::is2in1().
| void QOhosWindowProxy::setWindowMask | ( | const WindowMask & | windowMask, |
| const QOhosOptional< QSize > & | ohosMaskSizeOverride = {} ) |
Definition at line 792 of file qohoswindowproxy.cpp.
References getWindowProperties(), QtOhos::invokeInJsThreadAndWaitForContinue(), and qtIsMainWindow().
| void QOhosWindowProxy::setWindowPrivacyMode | ( | bool | privacyMode | ) |
Definition at line 679 of file qohoswindowproxy.cpp.
References QtOhos::invokeInJsThreadAndWaitForContinue().
| void QOhosWindowProxy::setWindowRectAutoSave | ( | bool | enabed | ) |
Definition at line 1122 of file qohoswindowproxy.cpp.
References QtOhos::invokeInJsThreadAndWaitForContinue(), QOhosDeviceInfo::is2in1(), and QtOhos::QUiAbilityPeer::tryCastFromQAbilityPeerOrNull().
Referenced by QT_BEGIN_NAMESPACE::syncWindowGeometryPersistenceState().
| void QOhosWindowProxy::setWindowShadowRadius | ( | double | radius | ) |
Definition at line 992 of file qohoswindowproxy.cpp.
References QOhosDeviceInfo::is2in1(), QOhosDeviceInfo::isTablet(), qtIsMainWindow(), and QtOhos::runInJsThreadAndWait().
| void QOhosWindowProxy::setWindowTitleButtonVisible | ( | bool | maximizeVisible, |
| bool | minimizeVisible, | ||
| bool | closeVisible ) |
Definition at line 918 of file qohoswindowproxy.cpp.
References QOhosSettings::isWindowPcModeEnabled(), qtIsMainWindow(), and QtOhos::runInJsThreadAndWait().
| void QOhosWindowProxy::setWindowTitleMoveEnabled | ( | bool | enabled | ) |
Definition at line 977 of file qohoswindowproxy.cpp.
References QOhosSettings::isWindowPcModeEnabled(), and QtOhos::runInJsThreadAndWait().
| void QOhosWindowProxy::setWindowTopmost | ( | bool | topmost | ) |
Definition at line 943 of file qohoswindowproxy.cpp.
References QtOhos::invokeInJsThreadAndWaitForContinue(), QOhosSettings::isWindowPcModeEnabled(), and qtIsMainWindow().
| void QOhosWindowProxy::setWindowTouchable | ( | bool | touchable | ) |
Definition at line 715 of file qohoswindowproxy.cpp.
References QtOhos::runInJsThreadAndWait().
| void QOhosWindowProxy::shiftAppWindowFocus | ( | QOhosWindowProxy & | targetProxy | ) |
Definition at line 1689 of file qohoswindowproxy.cpp.
References QtOhos::invokeInJsThreadAndWaitForContinue().
| void QOhosWindowProxy::showAbility | ( | ) |
Definition at line 611 of file qohoswindowproxy.cpp.
References QtOhos::invokeInJsThreadAndWaitForContinue().
| void QOhosWindowProxy::showWindow | ( | const ShowWindowOptions & | options = ShowWindowOptions() | ) |
Definition at line 528 of file qohoswindowproxy.cpp.
References QtOhos::invokeInJsThreadAndWaitForContinue(), and QOhosDeviceInfo::sdkApiVersion().
| QPixmap QOhosWindowProxy::snapshot | ( | ) | const |
Definition at line 1558 of file qohoswindowproxy.cpp.
| bool QOhosWindowProxy::startMoving | ( | ) |
Definition at line 1585 of file qohoswindowproxy.cpp.
References QtOhos::invokeInJsThreadAndWaitForContinue().
| QOhosOptional< QOhosDisplayInfo::JsDisplayId > QOhosWindowProxy::tryGetMainWindowJsDisplayId | ( | ) | const |
Definition at line 1675 of file qohoswindowproxy.cpp.
References getWindowProperties(), qtIsMainWindow(), and QtOhos::QUiAbilityPeer::tryCastFromQAbilityPeerOrNull().
Referenced by QT_BEGIN_NAMESPACE::tryGetSubWindowJsDisplayId().
| bool QOhosWindowProxy::tryHideAbility | ( | ) |
Definition at line 636 of file qohoswindowproxy.cpp.
| WindowProxyType QOhosWindowProxy::windowProxyType | ( | ) | const |
Definition at line 510 of file qohoswindowproxy.cpp.