qprinterinfo.sip 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. // qprinterinfo.sip generated by MetaSIP
  2. //
  3. // This file is part of the QtPrintSupport 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. %If (PyQt_Printer)
  22. class QPrinterInfo
  23. {
  24. %TypeHeaderCode
  25. #include <qprinterinfo.h>
  26. %End
  27. public:
  28. QPrinterInfo();
  29. QPrinterInfo(const QPrinterInfo &src);
  30. explicit QPrinterInfo(const QPrinter &printer);
  31. ~QPrinterInfo();
  32. QString printerName() const;
  33. bool isNull() const;
  34. bool isDefault() const;
  35. static QList<QPrinterInfo> availablePrinters();
  36. static QPrinterInfo defaultPrinter();
  37. QString description() const;
  38. QString location() const;
  39. QString makeAndModel() const;
  40. static QPrinterInfo printerInfo(const QString &printerName);
  41. bool isRemote() const;
  42. QPrinter::PrinterState state() const;
  43. QList<QPageSize> supportedPageSizes() const;
  44. QPageSize defaultPageSize() const;
  45. bool supportsCustomPageSizes() const;
  46. QPageSize minimumPhysicalPageSize() const;
  47. QPageSize maximumPhysicalPageSize() const;
  48. QList<int> supportedResolutions() const;
  49. static QStringList availablePrinterNames();
  50. static QString defaultPrinterName();
  51. QPrinter::DuplexMode defaultDuplexMode() const;
  52. QList<QPrinter::DuplexMode> supportedDuplexModes() const;
  53. QPrinter::ColorMode defaultColorMode() const;
  54. QList<QPrinter::ColorMode> supportedColorModes() const;
  55. };
  56. %End