|  | CopperSpice API
       2.0.0
    | 
The QRgba64 struct contains a 64-bit RGB color. More...
| Public Methods | |
| constexpr quint16 | alpha () const | 
| constexpr quint8 | alpha8 () const | 
| constexpr quint16 | blue () const | 
| constexpr quint8 | blue8 () const | 
| constexpr quint16 | green () const | 
| constexpr quint8 | green8 () const | 
| constexpr bool | isOpaque () const | 
| constexpr bool | isTransparent () const | 
| constexpr | operator quint64 () const | 
| QRgba64 | operator= (quint64 rgba64) | 
| constexpr QRgba64 | premultiplied () const | 
| constexpr quint16 | red () const | 
| constexpr quint8 | red8 () const | 
| void | setAlpha (quint16 alpha) | 
| void | setBlue (quint16 blue) | 
| void | setGreen (quint16 green) | 
| void | setRed (quint16 red) | 
| constexpr uint | toArgb32 () const | 
| constexpr ushort | toRgb16 () const | 
| constexpr QRgba64 | unpremultiplied () const | 
| Static Public Methods | |
| static constexpr QRgba64 | fromArgb32 (uint rgb) | 
| static constexpr QRgba64 | fromRgba (quint8 red, quint8 green, quint8 blue, quint8 alpha) | 
| static constexpr QRgba64 | fromRgba64 (quint16 red, quint16 green, quint16 blue, quint16 alpha) | 
| static constexpr QRgba64 | fromRgba64 (quint64 c) | 
QRgba64 is a 64-bit data-structure containing four 16-bit color channels: red, green, blue and alpha. QRgba64 can be used as a replacement for QRgb when higher precision is needed. In particular a premultiplied QRgba64 can operate on unpremultiplied QRgb without loss of precision except for alpha 0.
| 
 | inlineconstexpr | 
Returns the 16-bit alpha channel.
| 
 | inlineconstexpr | 
Returns the alpha channel as an 8-bit.
| 
 | inlineconstexpr | 
Returns the 16-bit blue color component.
| 
 | inlineconstexpr | 
Returns the blue color component as an 8-bit.
| 
 | inlinestaticconstexpr | 
Constructs a QRgba64 value from the 32bit ARGB value rgb.
| 
 | inlinestaticconstexpr | 
Constructs a QRgba64 value from the four 8-bit color channels red, green, blue and alpha.
| 
 | inlinestaticconstexpr | 
Returns the QRgba64 quadruplet (red, green, blue, alpha).
| 
 | inlinestaticconstexpr | 
Returns c as a QRgba64 struct.
| 
 | inlineconstexpr | 
Returns the 16-bit green color component.
| 
 | inlineconstexpr | 
Returns the green color component as an 8-bit.
| 
 | inlineconstexpr | 
Returns whether the color is fully opaque.
| 
 | inlineconstexpr | 
Returns whether the color is transparent.
| 
 | inlineconstexpr | 
Returns the color as a 64bit unsigned integer
| 
 | inline | 
Copy assigns from rgba64 and returns a reference to this object.
| 
 | inlineconstexpr | 
Returns the color with the alpha premultiplied.
| 
 | inlineconstexpr | 
Returns the 16-bit red color component.
| 
 | inlineconstexpr | 
Returns the red color component as an 8-bit.
| 
 | inline | 
Sets the alpha of this color to alpha.
| 
 | inline | 
Sets the blue color component of this color to blue.
| 
 | inline | 
Sets the green color component of this color to green.
| 
 | inline | 
Sets the red color component of this color to red.
| 
 | inlineconstexpr | 
Returns the color as a 32-bit ARGB value.
| 
 | inlineconstexpr | 
Returns the color as a 16-bit RGB value.
| 
 | inlineconstexpr | 
Returns the color with the alpha unpremultiplied.