qquickrendertarget.sip 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. // qquickrendertarget.sip generated by MetaSIP
  2. //
  3. // This file is part of the QtQuick 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 QQuickRenderTarget
  22. {
  23. %TypeHeaderCode
  24. #include <qquickrendertarget.h>
  25. %End
  26. public:
  27. %If (Qt_6_8_0 -)
  28. enum class Flag
  29. {
  30. MultisampleResolve,
  31. };
  32. %End
  33. %If (Qt_6_8_0 -)
  34. typedef QFlags<QQuickRenderTarget::Flag> Flags;
  35. %End
  36. QQuickRenderTarget();
  37. ~QQuickRenderTarget();
  38. QQuickRenderTarget(const QQuickRenderTarget &other);
  39. bool isNull() const;
  40. %If (PyQt_OpenGL)
  41. static QQuickRenderTarget fromOpenGLTexture(uint textureId, const QSize &pixelSize, int sampleCount = 1);
  42. %End
  43. %If (Qt_6_4_0 -)
  44. static QQuickRenderTarget fromOpenGLTexture(uint textureId, uint format, const QSize &pixelSize, int sampleCount = 1);
  45. %End
  46. %If (Qt_6_8_0 -)
  47. static QQuickRenderTarget fromOpenGLTexture(uint textureId, uint format, QSize pixelSize, int sampleCount, int arraySize, QQuickRenderTarget::Flags flags);
  48. %End
  49. %If (Qt_6_2_0 -)
  50. static QQuickRenderTarget fromOpenGLRenderBuffer(uint renderbufferId, const QSize &pixelSize, int sampleCount = 1);
  51. %End
  52. %If (Qt_6_4_0 -)
  53. static QQuickRenderTarget fromPaintDevice(QPaintDevice *device);
  54. %End
  55. %If (Qt_6_3_0 -)
  56. qreal devicePixelRatio() const;
  57. %End
  58. %If (Qt_6_3_0 -)
  59. void setDevicePixelRatio(qreal ratio);
  60. %End
  61. %If (Qt_6_4_0 -)
  62. bool mirrorVertically() const;
  63. %End
  64. %If (Qt_6_4_0 -)
  65. void setMirrorVertically(bool enable);
  66. %End
  67. };
  68. bool operator==(const QQuickRenderTarget &lhs, const QQuickRenderTarget &rhs);
  69. bool operator!=(const QQuickRenderTarget &lhs, const QQuickRenderTarget &rhs);