8#include <UIKit/UIKit.h>
10#include <qpa/qplatformscreen.h>
12#include <QtCore/private/qcore_mac_p.h>
14@
class QIOSOrientationListener;
18class QIOSScreen :
public QObject,
public QPlatformScreen
23#if !defined(Q_OS_VISIONOS)
24 QIOSScreen(UIScreen *screen);
30 QString name()
const override;
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;
41 Qt::ScreenOrientation nativeOrientation()
const override;
42 Qt::ScreenOrientation orientation()
const override;
44 QPixmap grabWindow(WId window,
int x,
int y,
int width,
int height)
const override;
46#if !defined(Q_OS_VISIONOS)
47 UIScreen *uiScreen()
const;
50 void setUpdatesPaused(
bool);
52 void updateProperties();
55 static void initializeScreens();
56 void deliverUpdateRequests()
const;
58#if !defined(Q_OS_VISIONOS)
59 UIScreen *m_uiScreen =
nullptr;
60 QMacNotificationObserver m_screenBrightnessObserver;
63 QRect m_availableGeometry;
65#if !defined(Q_OS_VISIONOS)
68 QSizeF m_physicalSize;
69 CADisplayLink *m_displayLink =
nullptr;
71 friend class QIOSIntegration;
bool openUrl(const QUrl &url)
bool openDocument(const QUrl &url)
bool handleUrl(const QUrl &url)
QT_BEGIN_NAMESPACE Q_DECLARE_LOGGING_CATEGORY(lcEventDispatcher)
Q_DECLARE_LOGGING_CATEGORY(lcQpaWindowScene)
UIView * rootViewForScreen(const QPlatformScreen *)
UIWindow * presentationWindow(QWindow *)
int infoPlistValue(NSString *key, int defaultValue)
Qt::ScreenOrientation toQtScreenOrientation(UIDeviceOrientation uiDeviceOrientation)
bool isRunningOnVisionOS()
Q_DECLARE_LOGGING_CATEGORY(lcQpaInputMethods)
UIDeviceOrientation fromQtScreenOrientation(Qt::ScreenOrientation qtOrientation)
Q_DECLARE_LOGGING_CATEGORY(lcQpaWindow)
QDebug operator<<(QDebug debug, const QIOSWindow *window)
QT_MANGLE_NAMESPACE(QUIView) *quiview_cast(UIView *view)