Qt 6.x
The Qt SDK
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
4#ifndef QIOSSCREEN_H
5#define QIOSSCREEN_H
6
7#include <UIKit/UIKit.h>
8
9#include <qpa/qplatformscreen.h>
10
12
13@interface QUIWindow : UIWindow
14@property (nonatomic, readonly) BOOL sendingEvent;
15@end
16
18
19class QIOSScreen : public QObject, public QPlatformScreen
20{
22
23public:
24 QIOSScreen(UIScreen *screen);
26
27 QString name() const override;
28
29 QRect geometry() const override;
30 QRect availableGeometry() const override;
31 int depth() const override;
32 QImage::Format format() const override;
33 QSizeF physicalSize() const override;
34 QDpi logicalBaseDpi() const override;
35 qreal devicePixelRatio() const override;
36 qreal refreshRate() const override;
37
38 Qt::ScreenOrientation nativeOrientation() const override;
39 Qt::ScreenOrientation orientation() const override;
40
41 QPixmap grabWindow(WId window, int x, int y, int width, int height) const override;
42
43 UIScreen *uiScreen() const;
44 UIWindow *uiWindow() const;
45
46 void setUpdatesPaused(bool);
47
48 void updateProperties();
49
50private:
51 void deliverUpdateRequests() const;
52
53 UIScreen *m_uiScreen;
54 UIWindow *m_uiWindow;
55 QRect m_geometry;
56 QRect m_availableGeometry;
57 int m_depth;
58 uint m_physicalDpi;
59 QSizeF m_physicalSize;
60 QIOSOrientationListener *m_orientationListener;
61 CADisplayLink *m_displayLink;
62};
63
65
66#endif
Format
The following image formats are available in Qt.
Definition qimage.h:41
\inmodule QtCore
Definition qobject.h:90
Returns a copy of the pixmap that is transformed using the given transformation transform and transfo...
Definition qpixmap.h:27
The QPlatformScreen class provides an abstraction for visual displays.
\inmodule QtCore\reentrant
Definition qrect.h:30
\inmodule QtCore
Definition qsize.h:207
\macro QT_RESTRICTED_CAST_FROM_ASCII
Definition qstring.h:127
BOOL sendingEvent
Definition qiosscreen.h:14
Combined button and popup list for selecting options.
ScreenOrientation
Definition qnamespace.h:270
QPair< qreal, qreal > QDpi
GLint GLint GLint GLint GLint x
[0]
GLint GLenum GLsizei GLsizei GLsizei depth
GLint GLsizei GLsizei height
GLint GLsizei width
GLuint name
GLint GLsizei GLsizei GLenum format
GLint y
QScreen * screen
[1]
Definition main.cpp:29
#define Q_OBJECT
unsigned int uint
Definition qtypes.h:29
double qreal
Definition qtypes.h:92
aWidget window() -> setWindowTitle("New Window Title")
[2]