qscreen.sip 3.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. // qscreen.sip generated by MetaSIP
  2. //
  3. // This file is part of the QtGui Python extension module.
  4. //
  5. // Copyright (c) 2026 Riverbank Computing Limited <info@riverbankcomputing.com>
  6. //
  7. // This file is part of PyQt6.
  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. class QScreen : public QObject /NoDefaultCtors/
  22. {
  23. %TypeHeaderCode
  24. #include <qscreen.h>
  25. %End
  26. public:
  27. virtual ~QScreen();
  28. QString name() const;
  29. int depth() const;
  30. QSize size() const;
  31. QRect geometry() const;
  32. QSizeF physicalSize() const;
  33. qreal physicalDotsPerInchX() const;
  34. qreal physicalDotsPerInchY() const;
  35. qreal physicalDotsPerInch() const;
  36. qreal logicalDotsPerInchX() const;
  37. qreal logicalDotsPerInchY() const;
  38. qreal logicalDotsPerInch() const;
  39. QSize availableSize() const;
  40. QRect availableGeometry() const;
  41. QList<QScreen *> virtualSiblings() const;
  42. QSize virtualSize() const;
  43. QRect virtualGeometry() const;
  44. QSize availableVirtualSize() const;
  45. QRect availableVirtualGeometry() const;
  46. Qt::ScreenOrientation nativeOrientation() const;
  47. Qt::ScreenOrientation primaryOrientation() const;
  48. Qt::ScreenOrientation orientation() const;
  49. int angleBetween(Qt::ScreenOrientation a, Qt::ScreenOrientation b) const;
  50. QTransform transformBetween(Qt::ScreenOrientation a, Qt::ScreenOrientation b, const QRect &target) const;
  51. QRect mapBetween(Qt::ScreenOrientation a, Qt::ScreenOrientation b, const QRect &rect) const;
  52. bool isPortrait(Qt::ScreenOrientation orientation) const;
  53. bool isLandscape(Qt::ScreenOrientation orientation) const;
  54. QPixmap grabWindow(WId window = 0, int x = 0, int y = 0, int width = -1, int height = -1);
  55. qreal refreshRate() const;
  56. qreal devicePixelRatio() const;
  57. signals:
  58. void geometryChanged(const QRect &geometry);
  59. void physicalDotsPerInchChanged(qreal dpi);
  60. void logicalDotsPerInchChanged(qreal dpi);
  61. void primaryOrientationChanged(Qt::ScreenOrientation orientation);
  62. void orientationChanged(Qt::ScreenOrientation orientation);
  63. void refreshRateChanged(qreal refreshRate);
  64. void physicalSizeChanged(const QSizeF &size);
  65. void virtualGeometryChanged(const QRect &rect);
  66. void availableGeometryChanged(const QRect &geometry);
  67. public:
  68. QString manufacturer() const;
  69. QString model() const;
  70. QString serialNumber() const;
  71. QScreen *virtualSiblingAt(QPoint point);
  72. };