qsvggenerator.sip 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. // qsvggenerator.sip generated by MetaSIP
  2. //
  3. // This file is part of the QtSvg 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 QSvgGenerator : public QPaintDevice
  22. {
  23. %TypeHeaderCode
  24. #include <qsvggenerator.h>
  25. %End
  26. public:
  27. QSvgGenerator();
  28. %If (Qt_6_5_0 -)
  29. explicit QSvgGenerator(QSvgGenerator::SvgVersion version);
  30. %End
  31. virtual ~QSvgGenerator();
  32. QSize size() const;
  33. void setSize(const QSize &size);
  34. QString fileName() const;
  35. void setFileName(const QString &fileName);
  36. QIODevice *outputDevice() const;
  37. void setOutputDevice(QIODevice *outputDevice);
  38. int resolution() const;
  39. void setResolution(int resolution);
  40. QString title() const;
  41. void setTitle(const QString &title);
  42. QString description() const;
  43. void setDescription(const QString &description);
  44. QRect viewBox() const;
  45. QRectF viewBoxF() const;
  46. void setViewBox(const QRect &viewBox);
  47. void setViewBox(const QRectF &viewBox);
  48. protected:
  49. virtual QPaintEngine *paintEngine() const;
  50. virtual int metric(QPaintDevice::PaintDeviceMetric metric) const;
  51. public:
  52. %If (Qt_6_5_0 -)
  53. enum class SvgVersion
  54. {
  55. SvgTiny12,
  56. Svg11,
  57. };
  58. %End
  59. %If (Qt_6_5_0 -)
  60. QSvgGenerator::SvgVersion svgVersion() const;
  61. %End
  62. protected:
  63. %If (Qt_6_11_0 -)
  64. virtual void initPainter(QPainter *) const;
  65. %End
  66. };