Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Toggle main menu visibility
Loading...
Searching...
No Matches
qiosscreen.h
Go to the documentation of this file.
1
// Copyright (C) 2016 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
// Qt-Security score:significant reason:default
4
5
#
ifndef
QIOSSCREEN_H
6
#
define
QIOSSCREEN_H
7
8
#
include
<
UIKit
/
UIKit
.
h
>
9
10
#
include
<
qpa
/
qplatformscreen
.
h
>
11
12
#
include
<
QtCore
/
private
/
qcore_mac_p
.
h
>
13
14
@
class
QIOSOrientationListener;
15
16
QT_BEGIN_NAMESPACE
17
18
class
QIOSScreen :
public
QObject,
public
QPlatformScreen
19
{
20
Q_OBJECT
21
22
public
:
23
#
if
!
defined
(
Q_OS_VISIONOS
)
24
QIOSScreen(UIScreen *screen);
25
#
else
26
QIOSScreen();
27
#
endif
28
~QIOSScreen();
29
30
QString name()
const
override;
31
32
QRect geometry()
const
override;
33
QRect availableGeometry()
const
override;
34
int
depth()
const
override;
35
QImage::Format format()
const
override;
36
QSizeF physicalSize()
const
override;
37
QDpi logicalBaseDpi()
const
override;
38
qreal devicePixelRatio()
const
override;
39
qreal refreshRate()
const
override;
40
41
Qt::ScreenOrientation nativeOrientation()
const
override;
42
Qt::ScreenOrientation orientation()
const
override;
43
44
QPixmap grabWindow(WId window,
int
x,
int
y,
int
width,
int
height)
const
override;
45
46
#
if
!
defined
(
Q_OS_VISIONOS
)
47
UIScreen *uiScreen()
const
;
48
#
endif
49
50
void
setUpdatesPaused(
bool
);
51
52
void
updateProperties();
53
54
private
:
55
static
void
initializeScreens();
56
void
deliverUpdateRequests()
const
;
57
58
bool
shouldPauseDisplayLinkWhenInactive()
const
;
59
60
#
if
!
defined
(
Q_OS_VISIONOS
)
61
UIScreen *m_uiScreen =
nullptr
;
62
QMacNotificationObserver m_screenBrightnessObserver;
63
#
endif
64
QRect m_geometry;
65
QRect m_availableGeometry;
66
int
m_depth;
67
#
if
!
defined
(
Q_OS_VISIONOS
)
68
uint m_physicalDpi;
69
#
endif
70
QSizeF m_physicalSize;
71
CADisplayLink *m_displayLink =
nullptr
;
72
73
friend
class
QIOSIntegration;
74
};
75
76
QT_END_NAMESPACE
77
78
#
endif
QIOSServices
Definition
qiosservices.h:14
QIOSServices::openUrl
bool openUrl(const QUrl &url)
Definition
qiosservices.mm:18
QIOSServices::openDocument
bool openDocument(const QUrl &url)
Definition
qiosservices.mm:55
QIOSServices::handleUrl
bool handleUrl(const QUrl &url)
Definition
qiosservices.mm:62
QT_BEGIN_NAMESPACE
Combined button and popup list for selecting options.
Definition
qsequentialanimationgroup.cpp:47
Q_DECLARE_LOGGING_CATEGORY
QT_BEGIN_NAMESPACE Q_DECLARE_LOGGING_CATEGORY(lcQIORing)
Q_DECLARE_LOGGING_CATEGORY
Q_DECLARE_LOGGING_CATEGORY(lcQpaWindowScene)
rootViewForScreen
UIView * rootViewForScreen(const QPlatformScreen *)
Definition
qiosglobal.mm:112
presentationWindow
UIWindow * presentationWindow(QWindow *)
Definition
qiosglobal.mm:97
infoPlistValue
int infoPlistValue(NSString *key, int defaultValue)
Definition
qiosglobal.mm:90
toQtScreenOrientation
Qt::ScreenOrientation toQtScreenOrientation(UIDeviceOrientation uiDeviceOrientation)
Definition
qiosglobal.mm:42
isQtApplication
bool isQtApplication()
Definition
qiosglobal.mm:21
isRunningOnVisionOS
bool isRunningOnVisionOS()
Definition
qiosglobal.mm:32
Q_DECLARE_LOGGING_CATEGORY
Q_DECLARE_LOGGING_CATEGORY(lcQpaInputMethods)
fromQtScreenOrientation
UIDeviceOrientation fromQtScreenOrientation(Qt::ScreenOrientation qtOrientation)
Definition
qiosglobal.mm:67
Q_DECLARE_LOGGING_CATEGORY
Q_DECLARE_LOGGING_CATEGORY(lcQpaWindow)
operator<<
QDebug operator<<(QDebug debug, const QIOSWindow *window)
Definition
qioswindow.mm:467
quiview_cast
QUIView * quiview_cast(UIView *view)
Returns the view cast to a QUIview if possible.
Definition
qioswindow.mm:495
qtbase
src
plugins
platforms
ios
qiosscreen.h
Generated on
for Qt by
1.18.0