18#include <QtGui/private/qtguiglobal_p.h>
19#include <QtGui/qcolor.h>
40#if QT_BYTE_ORDER == Q_BIG_ENDIAN
41 constexpr int cyan() const noexcept {
return (m_cmyk >> 24) & 0xff; }
42 constexpr int magenta() const noexcept {
return (m_cmyk >> 16) & 0xff; }
43 constexpr int yellow() const noexcept {
return (m_cmyk >> 8) & 0xff; }
44 constexpr int black() const noexcept {
return (m_cmyk ) & 0xff; }
46 constexpr int cyan() const noexcept {
return (m_cmyk ) & 0xff; }
47 constexpr int magenta() const noexcept {
return (m_cmyk >> 8) & 0xff; }
48 constexpr int yellow() const noexcept {
return (m_cmyk >> 16) & 0xff; }
49 constexpr int black() const noexcept {
return (m_cmyk >> 24) & 0xff; }
72 return QCmyk32(
c.cyan(),
c.magenta(),
c.yellow(),
c.black());
78 return QCmyk32(
c.cyan(),
c.magenta(),
c.yellow(),
c.black());
82static_assert(
sizeof(
QCmyk32) ==
sizeof(
int));
83static_assert(
alignof(
QCmyk32) ==
alignof(
int));
84static_assert(std::is_standard_layout_v<QCmyk32>);
constexpr uint toUint() const noexcept
static constexpr QCmyk32 fromCmyk32(uint cmyk) noexcept
constexpr QCmyk32(int cyan, int magenta, int yellow, int black)
constexpr int black() const noexcept
static QCmyk32 fromRgba(QRgb rgba) noexcept
constexpr int magenta() const noexcept
constexpr int yellow() const noexcept
constexpr int cyan() const noexcept
static QCmyk32 fromColor(const QColor &color) noexcept
QColor toColor() const noexcept
The QColor class provides colors based on RGB, HSV or CMYK values.
static QColor fromCmyk(int c, int m, int y, int k, int a=255)
Static convenience function that returns a QColor constructed from the given CMYK color values: c (cy...
QColor toCmyk() const noexcept
Creates and returns a CMYK QColor based on this color.
Combined button and popup list for selecting options.
QT_BEGIN_NAMESPACE typedef unsigned int QRgb
if(qFloatDistance(a, b)<(1<< 7))
[0]