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
qohoswindowutils_p.h
Go to the documentation of this file.
1
// Copyright (C) 2026 The Qt Company Ltd.
2
// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4
#
ifndef
QOHOSWINDOWUTILS_P_H
5
#
define
QOHOSWINDOWUTILS_P_H
6
7
//
8
// W A R N I N G
9
// -------------
10
//
11
// This file is not part of the Qt API. It exists purely as an
12
// implementation detail. This header file may change from version to
13
// version without notice, or even be removed.
14
//
15
// We mean it.
16
//
17
18
#
include
<
QtHarmonyExtras
/
private
/
qtharmonyextrasglobal_p
.
h
>
19
20
#
include
<
QtGui
/
qcolor
.
h
>
21
#
include
<
QtGui
/
qscreen
.
h
>
22
#
include
<
QtGui
/
qwindow
.
h
>
23
#
include
<
QtWidgets
/
qwidget
.
h
>
24
#
include
<
QtCore
/
qtypes
.
h
>
25
26
#
include
<
optional
>
27
28
QT_BEGIN_NAMESPACE
29
30
namespace
QtHarmonyExtras
{
31
32
namespace
Window {
33
34
Q_NAMESPACE
35
36
enum
class
WindowGeometryPersistenceHint
37
{
38
Disabled
,
39
Enabled
,
40
FollowSystemSetting
,
41
};
42
Q_ENUM_NS(WindowGeometryPersistenceHint)
43
44
Q_HARMONYEXTRAS_EXPORT
void
setShowWindowAsFloatWindowHint(QWindow *window,
bool
showAsFloatWindow);
45
Q_HARMONYEXTRAS_EXPORT
void
setShowWindowAsFloatWindowHint
(QWidget *widget,
bool
showAsFloatWindow);
46
47
Q_HARMONYEXTRAS_EXPORT
void
setWindowPrivacyMode
(QWindow *window,
bool
privacyModeEnabled);
48
49
Q_HARMONYEXTRAS_EXPORT
void
setSurfaceBackgroundColor
(QWindow *window,
const
QColor &color);
50
Q_HARMONYEXTRAS_EXPORT
void
setSurfaceBackgroundColor
(QWidget *widget,
const
QColor &color);
51
52
Q_HARMONYEXTRAS_EXPORT
void
setWindowCornerRadius
(QWindow *window,
double
radius);
53
Q_HARMONYEXTRAS_EXPORT
void
setWindowCornerRadius
(QWidget *widget,
double
radius);
54
55
Q_HARMONYEXTRAS_EXPORT
void
setWindowKeepScreenOn
(QWindow *window,
bool
keepScreenOn);
56
Q_HARMONYEXTRAS_EXPORT
void
setWindowKeepScreenOn
(QWidget *widget,
bool
keepScreenOn);
57
58
Q_HARMONYEXTRAS_EXPORT
void
setWindowDragResizable
(QWindow *window,
bool
dragResizable);
59
Q_HARMONYEXTRAS_EXPORT
void
setWindowDragResizable
(QWidget *widget,
bool
dragResizable);
60
61
Q_HARMONYEXTRAS_EXPORT
void
setMainWindowGeometryPersistenceHint
(
WindowGeometryPersistenceHint
hint);
62
63
}
64
65
Q_HARMONYEXTRAS_EXPORT
std
::
optional
<
qint64
>
tryGetNativeWindowId
(
QWindow
*
window
);
66
67
Q_HARMONYEXTRAS_EXPORT
std
::
optional
<
qint64
>
tryGetScreenDisplayId
(
QScreen
*
screen
);
68
69
}
70
71
QT_END_NAMESPACE
72
73
#
endif
// QOHOSWINDOWUTILS_P_H
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qsequentialanimationgroup.cpp:47
QtHarmonyExtras::Window::setWindowKeepScreenOn
void setWindowKeepScreenOn(QWindow *window, bool keepScreenOn)
Sets or unsets a given window to keep the screen on according to keepScreenOn.
Definition
qohoswindowutils.cpp:124
QtHarmonyExtras::Window::setWindowCornerRadius
void setWindowCornerRadius(QWindow *window, double radius)
Sets the corner radius of a window.
Definition
qohoswindowutils.cpp:96
QtHarmonyExtras::Window::setShowWindowAsFloatWindowHint
void setShowWindowAsFloatWindowHint(QWindow *window, bool showAsFloatWindow)
Sets or unsets a given window as a floating window according to showAsFloatWindow.
Definition
qohoswindowutils.cpp:47
QtHarmonyExtras::Window::setSurfaceBackgroundColor
void setSurfaceBackgroundColor(QWindow *window, const QColor &color)
Sets a given color as the background color of the window inner native layer.
Definition
qohoswindowutils.cpp:73
QtHarmonyExtras::Window::WindowGeometryPersistenceHint
WindowGeometryPersistenceHint
Definition
qohoswindowutils_p.h:37
QtHarmonyExtras::Window::WindowGeometryPersistenceHint::Enabled
@ Enabled
Definition
qohoswindowutils_p.h:39
QtHarmonyExtras::Window::WindowGeometryPersistenceHint::FollowSystemSetting
@ FollowSystemSetting
Definition
qohoswindowutils_p.h:40
QtHarmonyExtras::Window::WindowGeometryPersistenceHint::Disabled
@ Disabled
Definition
qohoswindowutils_p.h:38
QtHarmonyExtras::Window::setWindowDragResizable
void setWindowDragResizable(QWindow *window, bool dragResizable)
Enables or disables resizing of window by dragging its edges according to dragResizable.
Definition
qohoswindowutils.cpp:145
QtHarmonyExtras::Window::setWindowPrivacyMode
void setWindowPrivacyMode(QWindow *window, bool privacyModeEnabled)
Changes the privacy mode of window according to privacyModeEnabled.
Definition
qohoswindowutils.cpp:64
QtHarmonyExtras::Window::setMainWindowGeometryPersistenceHint
void setMainWindowGeometryPersistenceHint(WindowGeometryPersistenceHint hint)
Sets whether the application's main window restores its last geometry on startup according to hint.
Definition
qohoswindowutils.cpp:169
QtHarmonyExtras
Definition
qohosabilitycontext.cpp:36
QtHarmonyExtras::tryGetNativeWindowId
std::optional< qint64 > tryGetNativeWindowId(QWindow *window)
Definition
qohoswindowutils.cpp:190
QtHarmonyExtras::tryGetScreenDisplayId
std::optional< qint64 > tryGetScreenDisplayId(QScreen *screen)
Definition
qohoswindowutils.cpp:209
std
[33]
Definition
src_corelib_tools_qhash.cpp:421
qtbase
src
plugins
platforms
ohos
extras
qohoswindowutils_p.h
Generated on
for Qt by
1.16.1