![]() |
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 37 of file qohoswindowproxy.h.
Definition at line 44 of file qohoswindowproxy.h.
Definition at line 139 of file qohoswindowproxy.h.
Definition at line 141 of file qohoswindowproxy.h.
Definition at line 52 of file qohoswindowproxy.h.
Definition at line 138 of file qohoswindowproxy.h.
Definition at line 48 of file qohoswindowproxy.h.
Definition at line 50 of file qohoswindowproxy.h.
Definition at line 46 of file qohoswindowproxy.h.
Definition at line 140 of file qohoswindowproxy.h.
| using QOhosWindowProxy::SupportWindowMode = QtOhosQpa::enums::ohos::bundle::bundleManager::SupportWindowMode |
Definition at line 122 of file qohoswindowproxy.h.
Definition at line 40 of file qohoswindowproxy.h.
Definition at line 42 of file qohoswindowproxy.h.
|
delete |
|
delete |
| QOhosWindowProxy::~QOhosWindowProxy | ( | ) |
Definition at line 383 of file qohoswindowproxy.cpp.
| QHarmonyJsObjectRef QOhosWindowProxy::abilityObjectRef | ( | ) | const |
Definition at line 1487 of file qohoswindowproxy.cpp.
|
static |
Definition at line 1458 of file qohoswindowproxy.cpp.
|
static |
Definition at line 1448 of file qohoswindowproxy.cpp.
|
static |
Definition at line 1468 of file qohoswindowproxy.cpp.
| std::shared_ptr< QOhosWindowProxy > QOhosWindowProxy::createSubWindow | ( | const SubWindowCreateInfo & | createInfo | ) |
Definition at line 1498 of file qohoswindowproxy.cpp.
| void QOhosWindowProxy::enableDrag | ( | bool | enable, |
| JsCallBatch & | jsCallBatch = JsCallBatch::immediate() ) |
Definition at line 1932 of file qohoswindowproxy.cpp.
References QtOhos::mapBoolToTrueFalseStr(), and qtIsMainWindow().
Definition at line 1869 of file qohoswindowproxy.cpp.
| bool QOhosWindowProxy::getImmersiveModeEnabledState | ( | ) |
Definition at line 915 of file qohoswindowproxy.cpp.
| QOhosWindowProxy::AvoidArea QOhosWindowProxy::getWindowAvoidArea | ( | AvoidAreaType | type | ) | const |
Definition at line 1029 of file qohoswindowproxy.cpp.
| QOhosWindowProxy::WindowLimits QOhosWindowProxy::getWindowLimits | ( | ) | const |
Definition at line 1011 of file qohoswindowproxy.cpp.
| QArkUi::WindowProperties QOhosWindowProxy::getWindowProperties | ( | ) | const |
Definition at line 609 of file qohoswindowproxy.cpp.
Referenced by moveWindowToGlobalOrGlobalDisplay(), and QWindowProxyRegistry::registerQWindowWithWindowProxy().
| std::optional< bool > QOhosWindowProxy::isFocused | ( | ) | const |
Definition at line 1954 of file qohoswindowproxy.cpp.
| bool QOhosWindowProxy::isSubWindowMaximizeSupported | ( | ) | const |
Definition at line 697 of file qohoswindowproxy.cpp.
| bool QOhosWindowProxy::isWindowRectAutoSave | ( | ) | const |
Definition at line 1280 of file qohoswindowproxy.cpp.
Referenced by QT_BEGIN_NAMESPACE::syncWindowGeometryPersistenceState().
| QHarmonyJsObjectRef QOhosWindowProxy::jsWindowObjectRef | ( | ) | const |
Definition at line 1492 of file qohoswindowproxy.cpp.
| void QOhosWindowProxy::minimize | ( | JsCallBatch & | jsCallBatch = JsCallBatch::immediate() | ) |
Definition at line 780 of file qohoswindowproxy.cpp.
| void QOhosWindowProxy::moveWindowToGlobal | ( | const QPoint & | position, |
| const MoveConfiguration & | moveConfiguration, | ||
| JsCallBatch & | jsCallBatch = JsCallBatch::immediate() ) |
Definition at line 2005 of file qohoswindowproxy.cpp.
| void QOhosWindowProxy::moveWindowToGlobalOrGlobalDisplay | ( | const QPoint & | position, |
| std::optional< QOhosDisplayInfo::JsDisplayId > | optDisplayId, | ||
| JsCallBatch & | jsCallBatch = JsCallBatch::immediate() ) |
Definition at line 418 of file qohoswindowproxy.cpp.
References getWindowProperties(), and QOhosDisplayInfo::isDisplayMainOrExtended().
| std::shared_ptr< QXComponentNode > QOhosWindowProxy::nodeXComponent | ( | ) | const |
Definition at line 1477 of file qohoswindowproxy.cpp.
|
delete |
|
delete |
| std::string QOhosWindowProxy::qAbilityInstanceId | ( | ) | const |
Definition at line 1482 of file qohoswindowproxy.cpp.
| bool QOhosWindowProxy::qtIsMainWindow | ( | ) | const |
Definition at line 692 of file qohoswindowproxy.cpp.
References MainWindow.
Referenced by enableDrag(), setFollowParentMultiScreenPolicy(), setSubWindowModalDisabled(), setSubWindowModalEnabled(), setWindowCornerRadius(), setWindowMask(), setWindowShadowRadius(), setWindowTitleButtonVisible(), setWindowTopmost(), and tryGetMainWindowJsDisplayId().
|
static |
Definition at line 1996 of file qohoswindowproxy.cpp.
|
static |
Definition at line 1966 of file qohoswindowproxy.cpp.
| void QOhosWindowProxy::raiseToAppTop | ( | JsCallBatch & | jsCallBatch = JsCallBatch::immediate() | ) |
Definition at line 702 of file qohoswindowproxy.cpp.
| void QOhosWindowProxy::recover | ( | JsCallBatch & | jsCallBatch = JsCallBatch::immediate() | ) |
Definition at line 747 of file qohoswindowproxy.cpp.
| void QOhosWindowProxy::removeStartingWindow | ( | JsCallBatch & | jsCallBatch = JsCallBatch::immediate() | ) |
Definition at line 395 of file qohoswindowproxy.cpp.
References QtOhos::QUiAbilityPeer::tryCastFromQAbilityPeerOrNull().
| void QOhosWindowProxy::resetSubWindowCloseHandler | ( | ) |
Definition at line 1417 of file qohoswindowproxy.cpp.
| void QOhosWindowProxy::restore | ( | JsCallBatch & | jsCallBatch = JsCallBatch::immediate() | ) |
Definition at line 764 of file qohoswindowproxy.cpp.
| void QOhosWindowProxy::setCustomCursor | ( | const QImage & | customCursorImage, |
| const QPoint & | hotSpot, | ||
| JsCallBatch & | jsCallBatch = JsCallBatch::immediate() ) |
Definition at line 549 of file qohoswindowproxy.cpp.
| void QOhosWindowProxy::setFollowParentMultiScreenPolicy | ( | bool | enabled, |
| JsCallBatch & | jsCallBatch = JsCallBatch::immediate() ) |
Definition at line 1311 of file qohoswindowproxy.cpp.
References qtIsMainWindow().
| void QOhosWindowProxy::setNonClientAreaMouseWindowCallbackReceiver | ( | QObject * | contextObject, |
| QOhosConsumer< std::vector< NonClientAreaMouseEvent > > | mouseEventBatchConsumer, | ||
| JsCallBatch & | jsCallBatch = JsCallBatch::immediate() ) |
Definition at line 644 of file qohoswindowproxy.cpp.
| void QOhosWindowProxy::setNonClientAreaTouchWindowCallbackReceiver | ( | QObject * | contextObject, |
| QOhosConsumer< std::vector< NonClientAreaTouchEvent > > | touchEventBatchConsumer, | ||
| JsCallBatch & | jsCallBatch = JsCallBatch::immediate() ) |
Definition at line 668 of file qohoswindowproxy.cpp.
| void QOhosWindowProxy::setPointerStyleSync | ( | const QCursor & | cursor, |
| JsCallBatch & | jsCallBatch = JsCallBatch::immediate() ) |
Definition at line 593 of file qohoswindowproxy.cpp.
| void QOhosWindowProxy::setSize | ( | const QSize & | size, |
| JsCallBatch & | jsCallBatch = JsCallBatch::immediate() ) |
Definition at line 502 of file qohoswindowproxy.cpp.
| void QOhosWindowProxy::setSubWindowCloseHandler | ( | std::function< void()> | handler, |
| bool | handlerReturnValue ) |
Definition at line 1410 of file qohoswindowproxy.cpp.
| void QOhosWindowProxy::setSubWindowModalDisabled | ( | JsCallBatch & | jsCallBatch = JsCallBatch::immediate() | ) |
Definition at line 1101 of file qohoswindowproxy.cpp.
References qtIsMainWindow().
| void QOhosWindowProxy::setSubWindowModalEnabled | ( | ModalityType | ModalityType, |
| JsCallBatch & | jsCallBatch = JsCallBatch::immediate() ) |
Definition at line 1119 of file qohoswindowproxy.cpp.
References QtOhosQpa::enums::ohos::window::APPLICATION_MODALITY, QOhosSettings::instance(), QOhosSettings::isWindowPcModeEnabled(), and qtIsMainWindow().
| void QOhosWindowProxy::setSupportedWindowModes | ( | const std::set< SupportWindowMode > & | supportedWindowModes, |
| JsCallBatch & | jsCallBatch = JsCallBatch::immediate() ) |
Definition at line 1347 of file qohoswindowproxy.cpp.
References MainWindow.
| void QOhosWindowProxy::setTitle | ( | const QString & | title, |
| JsCallBatch & | jsCallBatch = JsCallBatch::immediate() ) |
Definition at line 1145 of file qohoswindowproxy.cpp.
| void QOhosWindowProxy::setWindowBackgroundColor | ( | const QColor & | color, |
| JsCallBatch & | jsCallBatch = JsCallBatch::immediate() ) |
Definition at line 536 of file qohoswindowproxy.cpp.
| void QOhosWindowProxy::setWindowCallbackReceiver | ( | std::unique_ptr< WindowCallbacks > | receiver, |
| JsCallBatch & | jsCallBatch = JsCallBatch::immediate() ) |
Definition at line 620 of file qohoswindowproxy.cpp.
| void QOhosWindowProxy::setWindowCornerRadius | ( | double | radius, |
| JsCallBatch & | jsCallBatch = JsCallBatch::immediate() ) |
Definition at line 1266 of file qohoswindowproxy.cpp.
References qtIsMainWindow().
| void QOhosWindowProxy::setWindowDecorVisible | ( | bool | visible, |
| JsCallBatch & | jsCallBatch = JsCallBatch::immediate() ) |
Definition at line 1220 of file qohoswindowproxy.cpp.
| void QOhosWindowProxy::setWindowFocusable | ( | bool | focusable, |
| JsCallBatch & | jsCallBatch = JsCallBatch::immediate() ) |
Definition at line 944 of file qohoswindowproxy.cpp.
| void QOhosWindowProxy::setWindowKeepScreenOn | ( | bool | keepScreenOn, |
| JsCallBatch & | jsCallBatch = JsCallBatch::immediate() ) |
Definition at line 1329 of file qohoswindowproxy.cpp.
References QtOhos::mapBoolToTrueFalseStr().
| void QOhosWindowProxy::setWindowLayoutFullScreen | ( | bool | isLayoutFullScreen, |
| JsCallBatch & | jsCallBatch = JsCallBatch::immediate() ) |
Definition at line 837 of file qohoswindowproxy.cpp.
| void QOhosWindowProxy::setWindowLimits | ( | const QSize & | minSize, |
| const QSize & | maxSize, | ||
| JsCallBatch & | jsCallBatch = JsCallBatch::immediate() ) |
Definition at line 978 of file qohoswindowproxy.cpp.
References QOhosDeviceInfo::is2in1().
| void QOhosWindowProxy::setWindowMask | ( | const WindowMask & | windowMask, |
| const std::optional< QSize > & | ohosMaskSizeOverride = {}, | ||
| JsCallBatch & | jsCallBatch = JsCallBatch::immediate() ) |
Definition at line 1043 of file qohoswindowproxy.cpp.
References qtIsMainWindow().
| void QOhosWindowProxy::setWindowPrivacyMode | ( | bool | privacyMode, |
| JsCallBatch & | jsCallBatch = JsCallBatch::immediate() ) |
Definition at line 926 of file qohoswindowproxy.cpp.
| void QOhosWindowProxy::setWindowRectAutoSave | ( | bool | enabed, |
| JsCallBatch & | jsCallBatch = JsCallBatch::immediate() ) |
Definition at line 1387 of file qohoswindowproxy.cpp.
References QtOhos::QUiAbilityPeer::tryCastFromQAbilityPeerOrNull().
Referenced by QT_BEGIN_NAMESPACE::syncWindowGeometryPersistenceState().
| void QOhosWindowProxy::setWindowShadowRadius | ( | double | radius, |
| JsCallBatch & | jsCallBatch = JsCallBatch::immediate() ) |
Definition at line 1249 of file qohoswindowproxy.cpp.
References QOhosDeviceInfo::is2in1(), QOhosDeviceInfo::isTablet(), and qtIsMainWindow().
| void QOhosWindowProxy::setWindowSystemBarEnable | ( | const QStringList & | names, |
| JsCallBatch & | jsCallBatch = JsCallBatch::immediate() ) |
Definition at line 854 of file qohoswindowproxy.cpp.
| void QOhosWindowProxy::setWindowTitleButtonVisible | ( | bool | maximizeVisible, |
| bool | minimizeVisible, | ||
| bool | closeVisible, | ||
| JsCallBatch & | jsCallBatch = JsCallBatch::immediate() ) |
Definition at line 1161 of file qohoswindowproxy.cpp.
References QtOhos::isEmulatorQuirkWorkaroundsEnabled(), qtIsMainWindow(), and QtOhos::runIgnoringJsBusinessError().
| void QOhosWindowProxy::setWindowTitleMoveEnabled | ( | bool | enabled, |
| JsCallBatch & | jsCallBatch = JsCallBatch::immediate() ) |
Definition at line 1232 of file qohoswindowproxy.cpp.
References QOhosSettings::instance(), and QOhosSettings::isWindowPcModeEnabled().
| void QOhosWindowProxy::setWindowTopmost | ( | bool | topmost, |
| JsCallBatch & | jsCallBatch = JsCallBatch::immediate() ) |
Definition at line 1194 of file qohoswindowproxy.cpp.
References QOhosSettings::instance(), QOhosSettings::isWindowPcModeEnabled(), and qtIsMainWindow().
| void QOhosWindowProxy::setWindowTouchable | ( | bool | touchable, |
| JsCallBatch & | jsCallBatch = JsCallBatch::immediate() ) |
Definition at line 961 of file qohoswindowproxy.cpp.
| void QOhosWindowProxy::showAbility | ( | JsCallBatch & | jsCallBatch = JsCallBatch::immediate() | ) |
Definition at line 872 of file qohoswindowproxy.cpp.
| void QOhosWindowProxy::showWindow | ( | const ShowWindowOptions & | options = ShowWindowOptions(), |
| JsCallBatch & | jsCallBatch = JsCallBatch::immediate() ) |
Definition at line 719 of file qohoswindowproxy.cpp.
| QPixmap QOhosWindowProxy::snapshot | ( | ) | const |
Definition at line 1841 of file qohoswindowproxy.cpp.
| bool QOhosWindowProxy::startMoving | ( | ) |
Definition at line 1914 of file qohoswindowproxy.cpp.
| std::optional< QOhosDisplayInfo::JsDisplayId > QOhosWindowProxy::tryGetMainWindowJsDisplayId | ( | ) | const |
Definition at line 2030 of file qohoswindowproxy.cpp.
References qtIsMainWindow().
Referenced by QT_BEGIN_NAMESPACE::tryGetSubWindowJsDisplayId().
| bool QOhosWindowProxy::tryHideAbility | ( | ) |
Definition at line 890 of file qohoswindowproxy.cpp.
| bool QOhosWindowProxy::tryMaximize | ( | MaximizePresentation | maximizePresentation | ) |
Definition at line 796 of file qohoswindowproxy.cpp.
References MainWindow, and SubWindow.
| bool QOhosWindowProxy::tryShiftAppWindowFocus | ( | QOhosWindowProxy & | targetProxy | ) |
Definition at line 2045 of file qohoswindowproxy.cpp.