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
21std::pair<qreal, qreal> getSaturationAndValue(qreal saturation, qreal lightness);
22
23std::pair<qreal, qreal> getSaturationAndLightness(qreal saturation, qreal value);
24
25struct HSVA
26{
27 qreal h = .0;
28 qreal s = .0;
29 union {
30 qreal v = 1.0;
31 qreal l;
32 };
33 qreal a = 1.0;
34};
35
36#endif // QQUICKCOLORDIALOGUTILS_P_H
37

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