Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
QOhosWindowProxy Class Referencefinal

#include <qohoswindowproxy.h>

Collaboration diagram for QOhosWindowProxy:

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

using WindowEventType = QtOhosQpa::enums::ohos::window::WindowEventType
using WindowStatusType = QtOhosQpa::enums::ohos::window::WindowStatusType
using AvoidAreaType = QtOhosQpa::enums::ohos::window::AvoidAreaType
using RectChangeReason = QtOhosQpa::enums::ohos::window::RectChangeReason
using MaximizePresentation = QtOhosQpa::enums::ohos::window::MaximizePresentation
using ModalityType = QtOhosQpa::enums::ohos::window::ModalityType
using SupportWindowMode = QtOhosQpa::enums::ohos::bundle::bundleManager::SupportWindowMode
using MainWindowCreateInfo = QOhosWindowProxyMainWindowCreateInfo
using ExistingMainWindowCreateInfo = QOhosWindowProxyExistingMainWindowCreateInfo
using SubWindowCreateInfo = QOhosWindowProxySubWindowCreateInfo
using FloatWindowCreateInfo = QOhosWindowProxyFloatWindowCreateInfo

Public Member Functions

 QOhosWindowProxy (const QOhosWindowProxy &)=delete
 QOhosWindowProxy (QOhosWindowProxy &&)=delete
QOhosWindowProxy & operator= (const QOhosWindowProxy &)=delete
QOhosWindowProxy & operator= (QOhosWindowProxy &&)=delete
 ~QOhosWindowProxy ()
void moveWindowToGlobalOrGlobalDisplay (const QPoint &position, std::optional< QOhosDisplayInfo::JsDisplayId > optDisplayId)
void setSize (const QSize &size)
void moveWindowToGlobal (const QPoint &position, const MoveConfiguration &moveConfiguration)
void setWindowBackgroundColor (const QColor &color)
void setCustomCursor (const QImage &customCursorImage, const QPoint &hotSpot)
void setPointerStyleSync (const QCursor &cursor)
void setWindowPrivacyMode (bool privacyMode)
void setWindowFocusable (bool focusable)
void setWindowTouchable (bool touchable)
void setWindowLimits (const QSize &minSize, const QSize &maxSize)
void setWindowMask (const WindowMask &windowMask, const std::optional< QSize > &ohosMaskSizeOverride={})
void setSubWindowModalDisabled ()
void setSubWindowModalEnabled (ModalityType ModalityType)
void setTitle (const QString &title)
void setWindowTitleButtonVisible (bool maximizeVisible, bool minimizeVisible, bool closeVisible)
void setWindowTopmost (bool topmost)
void setWindowDecorVisible (bool visible)
void setWindowTitleMoveEnabled (bool enabled)
void setWindowShadowRadius (double radius)
void setWindowCornerRadius (double radius)
void setWindowRectAutoSave (bool enabed)
bool isWindowRectAutoSave () const
void setFollowParentMultiScreenPolicy (bool enabled)
void setWindowKeepScreenOn (bool keepScreenOn)
void setSupportedWindowModes (const std::set< SupportWindowMode > &supportedWindowModes)
void setSubWindowCloseHandler (std::function< void()> handler, bool handlerReturnValue)
void resetSubWindowCloseHandler ()
void raiseToAppTop ()
void showWindow (const ShowWindowOptions &options=ShowWindowOptions())
void recover ()
void restore ()
void maximize (MaximizePresentation maximizePresentation)
void minimize ()
void setWindowLayoutFullScreen (bool isLayoutFullScreen)
void setWindowSystemBarEnable (const QStringList &names)
QList< QRect > getDisplayCutoutRects () const
void showAbility ()
bool tryHideAbility ()
void removeStartingWindow ()
bool getImmersiveModeEnabledState ()
QPixmap snapshot () const
bool startMoving ()
void enableDrag (bool enable)
std::optional< bool > isFocused () const
QArkUi::WindowProperties getWindowProperties () const
void setWindowCallbackReceiver (std::unique_ptr< WindowCallbacks > receiver)
void setNonClientAreaMouseWindowCallbackReceiver (QObject *contextObject, QOhosConsumer< std::vector< NonClientAreaMouseEvent > > mouseEventBatchConsumer)
void setNonClientAreaTouchWindowCallbackReceiver (QObject *contextObject, QOhosConsumer< std::vector< NonClientAreaTouchEvent > > touchEventBatchConsumer)
std::shared_ptr< QOhosWindowProxy > createSubWindow (const SubWindowCreateInfo &createInfo)
bool qtIsMainWindow () const
WindowLimits getWindowLimits () const
AvoidArea getWindowAvoidArea (AvoidAreaType type) const
std::shared_ptr< QXComponentNode > nodeXComponent () const
std::string qAbilityInstanceId () const
std::optional< QOhosDisplayInfo::JsDisplayId > tryGetMainWindowJsDisplayId () const
void shiftAppWindowFocus (QOhosWindowProxy &targetProxy)

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)

Detailed Description

Definition at line 36 of file qohoswindowproxy.h.

Member Typedef Documentation

◆ AvoidAreaType

◆ ExistingMainWindowCreateInfo

◆ FloatWindowCreateInfo

◆ MainWindowCreateInfo

◆ MaximizePresentation

◆ ModalityType

◆ RectChangeReason

◆ SubWindowCreateInfo

◆ SupportWindowMode

◆ WindowEventType

◆ WindowStatusType

Constructor & Destructor Documentation

◆ QOhosWindowProxy() [1/2]

QOhosWindowProxy::QOhosWindowProxy ( const QOhosWindowProxy & )
delete

◆ QOhosWindowProxy() [2/2]

QOhosWindowProxy::QOhosWindowProxy ( QOhosWindowProxy && )
delete

◆ ~QOhosWindowProxy()

QOhosWindowProxy::~QOhosWindowProxy ( )

Definition at line 364 of file qohoswindowproxy.cpp.

Member Function Documentation

◆ createFloatWindow()

std::shared_ptr< QOhosWindowProxy > QOhosWindowProxy::createFloatWindow ( const FloatWindowCreateInfo & createInfo)
static

Definition at line 1361 of file qohoswindowproxy.cpp.

◆ createForExistingMainWindow()

std::shared_ptr< QOhosWindowProxy > QOhosWindowProxy::createForExistingMainWindow ( const ExistingMainWindowCreateInfo & createInfo)
static

Definition at line 1351 of file qohoswindowproxy.cpp.

◆ createMainWindow()

std::shared_ptr< QOhosWindowProxy > QOhosWindowProxy::createMainWindow ( const MainWindowCreateInfo & createInfo)
static

Definition at line 1371 of file qohoswindowproxy.cpp.

◆ createSubWindow()

std::shared_ptr< QOhosWindowProxy > QOhosWindowProxy::createSubWindow ( const SubWindowCreateInfo & createInfo)

Definition at line 1391 of file qohoswindowproxy.cpp.

◆ enableDrag()

void QOhosWindowProxy::enableDrag ( bool enable)

Definition at line 1818 of file qohoswindowproxy.cpp.

References QtOhos::mapBoolToTrueFalseStr(), and qtIsMainWindow().

Here is the call graph for this function:

◆ getDisplayCutoutRects()

QList< QRect > QOhosWindowProxy::getDisplayCutoutRects ( ) const

Definition at line 1755 of file qohoswindowproxy.cpp.

◆ getImmersiveModeEnabledState()

bool QOhosWindowProxy::getImmersiveModeEnabledState ( )

Definition at line 839 of file qohoswindowproxy.cpp.

◆ getWindowAvoidArea()

QOhosWindowProxy::AvoidArea QOhosWindowProxy::getWindowAvoidArea ( AvoidAreaType type) const

Definition at line 950 of file qohoswindowproxy.cpp.

◆ getWindowLimits()

QOhosWindowProxy::WindowLimits QOhosWindowProxy::getWindowLimits ( ) const

Definition at line 932 of file qohoswindowproxy.cpp.

◆ getWindowProperties()

QArkUi::WindowProperties QOhosWindowProxy::getWindowProperties ( ) const

Definition at line 568 of file qohoswindowproxy.cpp.

Referenced by QWindowProxyRegistry::registerQWindowWithWindowProxy(), and setWindowMask().

Here is the caller graph for this function:

◆ isFocused()

std::optional< bool > QOhosWindowProxy::isFocused ( ) const

Definition at line 1840 of file qohoswindowproxy.cpp.

◆ isWindowRectAutoSave()

bool QOhosWindowProxy::isWindowRectAutoSave ( ) const

Definition at line 1193 of file qohoswindowproxy.cpp.

Referenced by QT_BEGIN_NAMESPACE::syncWindowGeometryPersistenceState().

Here is the caller graph for this function:

◆ maximize()

void QOhosWindowProxy::maximize ( MaximizePresentation maximizePresentation)

Definition at line 738 of file qohoswindowproxy.cpp.

References qtIsMainWindow().

Referenced by QOhosView::maximize(), and QOhosView::setFullScreen().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ minimize()

void QOhosWindowProxy::minimize ( )

Definition at line 723 of file qohoswindowproxy.cpp.

Referenced by QOhosView::minimize().

Here is the caller graph for this function:

◆ moveWindowToGlobal()

void QOhosWindowProxy::moveWindowToGlobal ( const QPoint & position,
const MoveConfiguration & moveConfiguration )

Definition at line 1891 of file qohoswindowproxy.cpp.

◆ moveWindowToGlobalOrGlobalDisplay()

void QOhosWindowProxy::moveWindowToGlobalOrGlobalDisplay ( const QPoint & position,
std::optional< QOhosDisplayInfo::JsDisplayId > optDisplayId )

Definition at line 399 of file qohoswindowproxy.cpp.

◆ nodeXComponent()

std::shared_ptr< QXComponentNode > QOhosWindowProxy::nodeXComponent ( ) const

Definition at line 1380 of file qohoswindowproxy.cpp.

◆ operator=() [1/2]

QOhosWindowProxy & QOhosWindowProxy::operator= ( const QOhosWindowProxy & )
delete

◆ operator=() [2/2]

QOhosWindowProxy & QOhosWindowProxy::operator= ( QOhosWindowProxy && )
delete

◆ qAbilityInstanceId()

std::string QOhosWindowProxy::qAbilityInstanceId ( ) const

Definition at line 1385 of file qohoswindowproxy.cpp.

◆ qtIsMainWindow()

bool QOhosWindowProxy::qtIsMainWindow ( ) const

Definition at line 644 of file qohoswindowproxy.cpp.

References MainWindow.

Referenced by enableDrag(), maximize(), setFollowParentMultiScreenPolicy(), setSubWindowModalDisabled(), setSubWindowModalEnabled(), setWindowCornerRadius(), setWindowMask(), setWindowShadowRadius(), setWindowTitleButtonVisible(), and setWindowTopmost().

Here is the caller graph for this function:

◆ queryQtManagedWindowIdsByPredicate()

std::vector< QArkUi::JsWindowId > QOhosWindowProxy::queryQtManagedWindowIdsByPredicate ( const std::function< bool(QOhosJsState &jsState, const QArkUi::JsWindowRef &)> & predicate)
static

Definition at line 1882 of file qohoswindowproxy.cpp.

◆ queryWindowIdsByCoordinate()

std::vector< QArkUi::JsWindowId > QOhosWindowProxy::queryWindowIdsByCoordinate ( QOhosDisplayInfo::JsDisplayId displayId,
const QPoint & queryLocation,
std::uint32_t queryLimit = 0 )
static

Definition at line 1852 of file qohoswindowproxy.cpp.

◆ raiseToAppTop()

void QOhosWindowProxy::raiseToAppTop ( )

Definition at line 649 of file qohoswindowproxy.cpp.

◆ recover()

void QOhosWindowProxy::recover ( )

Definition at line 692 of file qohoswindowproxy.cpp.

Referenced by QOhosView::recover().

Here is the caller graph for this function:

◆ removeStartingWindow()

void QOhosWindowProxy::removeStartingWindow ( )

Definition at line 376 of file qohoswindowproxy.cpp.

◆ resetSubWindowCloseHandler()

void QOhosWindowProxy::resetSubWindowCloseHandler ( )

Definition at line 1320 of file qohoswindowproxy.cpp.

◆ restore()

void QOhosWindowProxy::restore ( )

Definition at line 708 of file qohoswindowproxy.cpp.

◆ setCustomCursor()

void QOhosWindowProxy::setCustomCursor ( const QImage & customCursorImage,
const QPoint & hotSpot )

Definition at line 511 of file qohoswindowproxy.cpp.

◆ setFollowParentMultiScreenPolicy()

void QOhosWindowProxy::setFollowParentMultiScreenPolicy ( bool enabled)

Definition at line 1224 of file qohoswindowproxy.cpp.

References qtIsMainWindow().

Here is the call graph for this function:

◆ setNonClientAreaMouseWindowCallbackReceiver()

void QOhosWindowProxy::setNonClientAreaMouseWindowCallbackReceiver ( QObject * contextObject,
QOhosConsumer< std::vector< NonClientAreaMouseEvent > > mouseEventBatchConsumer )

Definition at line 600 of file qohoswindowproxy.cpp.

◆ setNonClientAreaTouchWindowCallbackReceiver()

void QOhosWindowProxy::setNonClientAreaTouchWindowCallbackReceiver ( QObject * contextObject,
QOhosConsumer< std::vector< NonClientAreaTouchEvent > > touchEventBatchConsumer )

Definition at line 622 of file qohoswindowproxy.cpp.

◆ setPointerStyleSync()

void QOhosWindowProxy::setPointerStyleSync ( const QCursor & cursor)

Definition at line 554 of file qohoswindowproxy.cpp.

◆ setSize()

void QOhosWindowProxy::setSize ( const QSize & size)

Definition at line 472 of file qohoswindowproxy.cpp.

◆ setSubWindowCloseHandler()

void QOhosWindowProxy::setSubWindowCloseHandler ( std::function< void()> handler,
bool handlerReturnValue )

Definition at line 1313 of file qohoswindowproxy.cpp.

◆ setSubWindowModalDisabled()

void QOhosWindowProxy::setSubWindowModalDisabled ( )

Definition at line 1023 of file qohoswindowproxy.cpp.

References qtIsMainWindow().

Here is the call graph for this function:

◆ setSubWindowModalEnabled()

void QOhosWindowProxy::setSubWindowModalEnabled ( ModalityType ModalityType)

Definition at line 1041 of file qohoswindowproxy.cpp.

References QtOhosQpa::enums::ohos::window::APPLICATION_MODALITY, QOhosSettings::instance(), QOhosSettings::isWindowPcModeEnabled(), and qtIsMainWindow().

Here is the call graph for this function:

◆ setSupportedWindowModes()

void QOhosWindowProxy::setSupportedWindowModes ( const std::set< SupportWindowMode > & supportedWindowModes)

Definition at line 1260 of file qohoswindowproxy.cpp.

◆ setTitle()

void QOhosWindowProxy::setTitle ( const QString & title)

Definition at line 1067 of file qohoswindowproxy.cpp.

◆ setWindowBackgroundColor()

void QOhosWindowProxy::setWindowBackgroundColor ( const QColor & color)

Definition at line 499 of file qohoswindowproxy.cpp.

◆ setWindowCallbackReceiver()

void QOhosWindowProxy::setWindowCallbackReceiver ( std::unique_ptr< WindowCallbacks > receiver)

Definition at line 579 of file qohoswindowproxy.cpp.

◆ setWindowCornerRadius()

void QOhosWindowProxy::setWindowCornerRadius ( double radius)

Definition at line 1179 of file qohoswindowproxy.cpp.

References qtIsMainWindow().

Here is the call graph for this function:

◆ setWindowDecorVisible()

void QOhosWindowProxy::setWindowDecorVisible ( bool visible)

Definition at line 1136 of file qohoswindowproxy.cpp.

◆ setWindowFocusable()

void QOhosWindowProxy::setWindowFocusable ( bool focusable)

Definition at line 867 of file qohoswindowproxy.cpp.

◆ setWindowKeepScreenOn()

void QOhosWindowProxy::setWindowKeepScreenOn ( bool keepScreenOn)

Definition at line 1242 of file qohoswindowproxy.cpp.

References QtOhos::mapBoolToTrueFalseStr().

Here is the call graph for this function:

◆ setWindowLayoutFullScreen()

void QOhosWindowProxy::setWindowLayoutFullScreen ( bool isLayoutFullScreen)

Definition at line 762 of file qohoswindowproxy.cpp.

◆ setWindowLimits()

void QOhosWindowProxy::setWindowLimits ( const QSize & minSize,
const QSize & maxSize )

Definition at line 899 of file qohoswindowproxy.cpp.

◆ setWindowMask()

void QOhosWindowProxy::setWindowMask ( const WindowMask & windowMask,
const std::optional< QSize > & ohosMaskSizeOverride = {} )

Definition at line 964 of file qohoswindowproxy.cpp.

References getWindowProperties(), and qtIsMainWindow().

Here is the call graph for this function:

◆ setWindowPrivacyMode()

void QOhosWindowProxy::setWindowPrivacyMode ( bool privacyMode)

Definition at line 850 of file qohoswindowproxy.cpp.

◆ setWindowRectAutoSave()

void QOhosWindowProxy::setWindowRectAutoSave ( bool enabed)

Definition at line 1289 of file qohoswindowproxy.cpp.

Referenced by QT_BEGIN_NAMESPACE::syncWindowGeometryPersistenceState().

Here is the caller graph for this function:

◆ setWindowShadowRadius()

void QOhosWindowProxy::setWindowShadowRadius ( double radius)

Definition at line 1163 of file qohoswindowproxy.cpp.

References QOhosDeviceInfo::is2in1(), QOhosDeviceInfo::isTablet(), and qtIsMainWindow().

Here is the call graph for this function:

◆ setWindowSystemBarEnable()

void QOhosWindowProxy::setWindowSystemBarEnable ( const QStringList & names)

Definition at line 779 of file qohoswindowproxy.cpp.

◆ setWindowTitleButtonVisible()

void QOhosWindowProxy::setWindowTitleButtonVisible ( bool maximizeVisible,
bool minimizeVisible,
bool closeVisible )

Definition at line 1083 of file qohoswindowproxy.cpp.

References qtIsMainWindow().

Here is the call graph for this function:

◆ setWindowTitleMoveEnabled()

void QOhosWindowProxy::setWindowTitleMoveEnabled ( bool enabled)

Definition at line 1147 of file qohoswindowproxy.cpp.

References QOhosSettings::instance(), and QOhosSettings::isWindowPcModeEnabled().

Here is the call graph for this function:

◆ setWindowTopmost()

void QOhosWindowProxy::setWindowTopmost ( bool topmost)

Definition at line 1110 of file qohoswindowproxy.cpp.

References QOhosSettings::instance(), QOhosSettings::isWindowPcModeEnabled(), and qtIsMainWindow().

Here is the call graph for this function:

◆ setWindowTouchable()

void QOhosWindowProxy::setWindowTouchable ( bool touchable)

Definition at line 883 of file qohoswindowproxy.cpp.

◆ shiftAppWindowFocus()

void QOhosWindowProxy::shiftAppWindowFocus ( QOhosWindowProxy & targetProxy)

Definition at line 1931 of file qohoswindowproxy.cpp.

◆ showAbility()

void QOhosWindowProxy::showAbility ( )

Definition at line 797 of file qohoswindowproxy.cpp.

◆ showWindow()

void QOhosWindowProxy::showWindow ( const ShowWindowOptions & options = ShowWindowOptions())

Definition at line 665 of file qohoswindowproxy.cpp.

◆ snapshot()

QPixmap QOhosWindowProxy::snapshot ( ) const

Definition at line 1727 of file qohoswindowproxy.cpp.

◆ startMoving()

bool QOhosWindowProxy::startMoving ( )

Definition at line 1800 of file qohoswindowproxy.cpp.

◆ tryGetMainWindowJsDisplayId()

std::optional< QOhosDisplayInfo::JsDisplayId > QOhosWindowProxy::tryGetMainWindowJsDisplayId ( ) const

Definition at line 1916 of file qohoswindowproxy.cpp.

Referenced by QT_BEGIN_NAMESPACE::tryGetSubWindowJsDisplayId().

Here is the caller graph for this function:

◆ tryHideAbility()

bool QOhosWindowProxy::tryHideAbility ( )

Definition at line 814 of file qohoswindowproxy.cpp.


The documentation for this class was generated from the following files: