1// qrgba64.sip generated by MetaSIP 2// 3// This file is part of the QtGui Python extension module. 4// 5// Copyright (c) 2021 Riverbank Computing Limited <info@riverbankcomputing.com> 6// 7// This file is part of PyQt5. 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 22 23%If (Qt_5_6_0 -) 24%ModuleCode 25#include <qrgba64.h> 26%End 27%End 28 29%If (Qt_5_6_0 -) 30 31class QRgba64 32{ 33%TypeHeaderCode 34#include <qrgba64.h> 35%End 36 37public: 38%If (Qt_5_7_0 -) 39 QRgba64(); 40%End 41 static QRgba64 fromRgba64(quint64 c); 42 static QRgba64 fromRgba64(quint16 red, quint16 green, quint16 blue, quint16 alpha); 43 static QRgba64 fromRgba(quint8 red, quint8 green, quint8 blue, quint8 alpha); 44 static QRgba64 fromArgb32(uint rgb); 45 bool isOpaque() const; 46 bool isTransparent() const; 47 quint16 red() const; 48 quint16 green() const; 49 quint16 blue() const; 50 quint16 alpha() const; 51 void setRed(quint16 _red); 52 void setGreen(quint16 _green); 53 void setBlue(quint16 _blue); 54 void setAlpha(quint16 _alpha); 55 quint8 red8() const; 56 quint8 green8() const; 57 quint8 blue8() const; 58 quint8 alpha8() const; 59 uint toArgb32() const; 60 ushort toRgb16() const; 61 QRgba64 premultiplied() const; 62 QRgba64 unpremultiplied() const; 63 operator quint64() const; 64}; 65 66%End 67%If (Qt_5_6_0 -) 68QRgba64 qRgba64(quint16 r, quint16 g, quint16 b, quint16 a); 69%End 70%If (Qt_5_6_0 -) 71QRgba64 qRgba64(quint64 c); 72%End 73%If (Qt_5_6_0 -) 74QRgba64 qPremultiply(QRgba64 c); 75%End 76%If (Qt_5_6_0 -) 77QRgba64 qUnpremultiply(QRgba64 c); 78%End 79%If (Qt_5_6_0 -) 80uint qRed(QRgba64 rgb); 81%End 82%If (Qt_5_6_0 -) 83uint qGreen(QRgba64 rgb); 84%End 85%If (Qt_5_6_0 -) 86uint qBlue(QRgba64 rgb); 87%End 88%If (Qt_5_6_0 -) 89uint qAlpha(QRgba64 rgb); 90%End 91