qrgba64.sip 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. // qrgba64.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. %ModuleCode
  22. #include <qrgba64.h>
  23. %End
  24. class QRgba64
  25. {
  26. %TypeHeaderCode
  27. #include <qrgba64.h>
  28. %End
  29. public:
  30. QRgba64();
  31. static QRgba64 fromRgba64(quint64 c);
  32. static QRgba64 fromRgba64(quint16 red, quint16 green, quint16 blue, quint16 alpha);
  33. static QRgba64 fromRgba(quint8 red, quint8 green, quint8 blue, quint8 alpha);
  34. static QRgba64 fromArgb32(uint rgb);
  35. bool isOpaque() const;
  36. bool isTransparent() const;
  37. quint16 red() const;
  38. quint16 green() const;
  39. quint16 blue() const;
  40. quint16 alpha() const;
  41. void setRed(quint16 _red);
  42. void setGreen(quint16 _green);
  43. void setBlue(quint16 _blue);
  44. void setAlpha(quint16 _alpha);
  45. quint8 red8() const;
  46. quint8 green8() const;
  47. quint8 blue8() const;
  48. quint8 alpha8() const;
  49. uint toArgb32() const;
  50. ushort toRgb16() const;
  51. QRgba64 premultiplied() const;
  52. QRgba64 unpremultiplied() const;
  53. operator quint64() const;
  54. };
  55. QRgba64 qRgba64(quint16 r, quint16 g, quint16 b, quint16 a);
  56. QRgba64 qRgba64(quint64 c);
  57. QRgba64 qPremultiply(QRgba64 c);
  58. QRgba64 qUnpremultiply(QRgba64 c);
  59. uint qRed(QRgba64 rgb);
  60. uint qGreen(QRgba64 rgb);
  61. uint qBlue(QRgba64 rgb);
  62. uint qAlpha(QRgba64 rgb);