Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
qquickcolordialogutils_p.h
Go to the documentation of this file.
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// Qt-Security score:significant reason:default
4
5#ifndef QQUICKCOLORDIALOGUTILS_P_H
6#define QQUICKCOLORDIALOGUTILS_P_H
7
8
9//
10// W A R N I N G
11// -------------
12//
13// This file is not part of the Qt API. It exists purely as an
14// implementation detail. This header file may change from version to
15// version without notice, or even be removed.
16//
17// We mean it.
18//
19
20#include <QtCore/QtGlobal>
21
23
24std::pair<qreal, qreal> getSaturationAndValue(qreal saturation, qreal lightness);
25
26std::pair<qreal, qreal> getSaturationAndLightness(qreal saturation, qreal value);
27
28struct HSVA
29{
30 qreal h = .0;
31 qreal s = .0;
32 union {
33 qreal v = 1.0;
35 };
36 qreal a = 1.0;
37};
38
39QT_END_NAMESPACE
40
41#endif // QQUICKCOLORDIALOGUTILS_P_H
bool handleRelease(const QPointF &point, ulong timestamp) override
void itemImplicitHeightChanged(QQuickItem *item) override
QQuickDeferredPointer< QQuickItem > m_handle
void itemImplicitWidthChanged(QQuickItem *item) override
bool handlePress(const QPointF &point, ulong timestamp) override
static QQuickAbstractColorPickerPrivate * get(QQuickAbstractColorPicker *colorPicker)
bool handleMove(const QPointF &point, ulong timestamp) override
std::pair< qreal, qreal > getSaturationAndLightness(qreal saturation, qreal value)