1// qscreen.sip generated by MetaSIP 2// 3// This file is part of the QtGui Python extension module. 4// 5// Copyright (c) 2021 Riverbank Computing Limited <info@riverbankcomputing.com> 6// 7// This file is part of PyQt5. 8// 9// This file may be used under the terms of the GNU General Public License 10// version 3.0 as published by the Free Software Foundation and appearing in 11// the file LICENSE included in the packaging of this file. Please review the 12// following information to ensure the GNU General Public License version 3.0 13// requirements will be met: http://www.gnu.org/copyleft/gpl.html. 14// 15// If you do not wish to use this file under the terms of the GPL version 3.0 16// then you may purchase a commercial license. For more information contact 17// info@riverbankcomputing.com. 18// 19// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE 20// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. 21 22 23class QScreen : QObject /NoDefaultCtors/ 24{ 25%TypeHeaderCode 26#include <qscreen.h> 27%End 28 29public: 30%If (Qt_5_4_0 -) 31 virtual ~QScreen(); 32%End 33 QString name() const; 34 int depth() const; 35 QSize size() const; 36 QRect geometry() const; 37 QSizeF physicalSize() const; 38 qreal physicalDotsPerInchX() const; 39 qreal physicalDotsPerInchY() const; 40 qreal physicalDotsPerInch() const; 41 qreal logicalDotsPerInchX() const; 42 qreal logicalDotsPerInchY() const; 43 qreal logicalDotsPerInch() const; 44 QSize availableSize() const; 45 QRect availableGeometry() const; 46 QList<QScreen *> virtualSiblings() const; 47 QSize virtualSize() const; 48 QRect virtualGeometry() const; 49 QSize availableVirtualSize() const; 50 QRect availableVirtualGeometry() const; 51%If (Qt_5_2_0 -) 52 Qt::ScreenOrientation nativeOrientation() const; 53%End 54 Qt::ScreenOrientation primaryOrientation() const; 55 Qt::ScreenOrientation orientation() const; 56 Qt::ScreenOrientations orientationUpdateMask() const; 57 void setOrientationUpdateMask(Qt::ScreenOrientations mask); 58 int angleBetween(Qt::ScreenOrientation a, Qt::ScreenOrientation b) const; 59 QTransform transformBetween(Qt::ScreenOrientation a, Qt::ScreenOrientation b, const QRect &target) const; 60 QRect mapBetween(Qt::ScreenOrientation a, Qt::ScreenOrientation b, const QRect &rect) const; 61 bool isPortrait(Qt::ScreenOrientation orientation) const; 62 bool isLandscape(Qt::ScreenOrientation orientation) const; 63 QPixmap grabWindow(WId window, int x = 0, int y = 0, int width = -1, int height = -1); 64 qreal refreshRate() const; 65 qreal devicePixelRatio() const; 66 67signals: 68 void geometryChanged(const QRect &geometry); 69 void physicalDotsPerInchChanged(qreal dpi); 70 void logicalDotsPerInchChanged(qreal dpi); 71 void primaryOrientationChanged(Qt::ScreenOrientation orientation); 72 void orientationChanged(Qt::ScreenOrientation orientation); 73 void refreshRateChanged(qreal refreshRate); 74 void physicalSizeChanged(const QSizeF &size); 75 void virtualGeometryChanged(const QRect &rect); 76%If (Qt_5_4_0 -) 77 void availableGeometryChanged(const QRect &geometry); 78%End 79 80public: 81%If (Qt_5_9_0 -) 82 QString manufacturer() const; 83%End 84%If (Qt_5_9_0 -) 85 QString model() const; 86%End 87%If (Qt_5_9_0 -) 88 QString serialNumber() const; 89%End 90%If (Qt_5_15_0 -) 91 QScreen *virtualSiblingAt(QPoint point); 92%End 93 94private: 95 QScreen(const QScreen &); 96}; 97