diff options
author | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2022-04-22 16:22:10 +0200 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2022-05-31 22:23:40 +0200 |
commit | 567ffafe7fed4536359e8a6b925aaf4379d67b67 (patch) | |
tree | e3a4eafd243bd6ea909d9e83a27dffa3e5d2bbaa /src/gui/painting/qcolortransform.h | |
parent | 5ea6da55e0d29a0dc526d4fa78a0590e0e4df8f6 (diff) |
Add new map methods for QColorTransform
Change-Id: I520fc4f4bd958472c6d6359bf671835796c677fe
Reviewed-by: Eirik Aavitsland <eirik.aavitsland@qt.io>
Diffstat (limited to 'src/gui/painting/qcolortransform.h')
-rw-r--r-- | src/gui/painting/qcolortransform.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/gui/painting/qcolortransform.h b/src/gui/painting/qcolortransform.h index 14673fe924..02f15ee89f 100644 --- a/src/gui/painting/qcolortransform.h +++ b/src/gui/painting/qcolortransform.h @@ -14,6 +14,12 @@ class QColor; class QRgba64; class QColorSpacePrivate; class QColorTransformPrivate; +class qfloat16; +template<typename T> +class QRgbaFloat; +typedef QRgbaFloat<qfloat16> QRgbaFloat16; +typedef QRgbaFloat<float> QRgbaFloat32; + QT_DECLARE_QESDP_SPECIALIZATION_DTOR_WITH_EXPORT(QColorTransformPrivate, Q_GUI_EXPORT) class QColorTransform @@ -35,6 +41,8 @@ public: Q_GUI_EXPORT QRgb map(QRgb argb) const; Q_GUI_EXPORT QRgba64 map(QRgba64 rgba64) const; + Q_GUI_EXPORT QRgbaFloat16 map(QRgbaFloat16 rgbafp16) const; + Q_GUI_EXPORT QRgbaFloat32 map(QRgbaFloat32 rgbafp32) const; Q_GUI_EXPORT QColor map(const QColor &color) const; friend bool operator==(const QColorTransform &ct1, const QColorTransform &ct2) |