1// Copyright (C) 2022 The Qt Company Ltd.
2// SPDX-License-Identifier: LicenseRef-Qt-Commercial OR LGPL-3.0-only OR GPL-2.0-only OR GPL-3.0-only
3
4#ifndef QQUICKCOLORDIALOGUTILS_P_H
5#define QQUICKCOLORDIALOGUTILS_P_H
6
7
8//
9// W A R N I N G
10// -------------
11//
12// This file is not part of the Qt API. It exists purely as an
13// implementation detail. This header file may change from version to
14// version without notice, or even be removed.
15//
16// We mean it.
17//
18
19#include <QtCore/QtGlobal>
20
21QT_BEGIN_NAMESPACE
22
23std::pair<qreal, qreal> getSaturationAndValue(qreal saturation, qreal lightness);
24
25std::pair<qreal, qreal> getSaturationAndLightness(qreal saturation, qreal value);
26
27struct HSVA
28{
29 qreal h = .0;
30 qreal s = .0;
31 union {
32 qreal v = 1.0;
33 qreal l;
34 };
35 qreal a = 1.0;
36};
37
38QT_END_NAMESPACE
39
40#endif // QQUICKCOLORDIALOGUTILS_P_H
41

source code of qtdeclarative/src/quickdialogs/quickdialogsquickimpl/qquickcolordialogutils_p.h