Qt
Internal/Contributor docs for the Qt SDK. <b>Note:</b> These are NOT official API docs; those are found <a href='https://doc.qt.io/'>here</a>.
Loading...
Searching...
No Matches
qquickcolor_p.h
Go to the documentation of this file.
1// Copyright (C) 2017 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 QQUICKCOLOR_P_H
5#define QQUICKCOLOR_P_H
6
7//
8// W A R N I N G
9// -------------
10//
11// This file is not part of the Qt API. It exists purely as an
12// implementation detail. This header file may change from version to
13// version without notice, or even be removed.
14//
15// We mean it.
16//
17
18#include <QtCore/qobject.h>
19#include <QtGui/qcolor.h>
20#include <QtQml/qqml.h>
21#include <QtQuickControls2Impl/private/qtquickcontrols2implglobal_p.h>
22
24
25class Q_QUICKCONTROLS2IMPL_EXPORT QQuickColor : public QObject
26{
31
32public:
33 explicit QQuickColor(QObject *parent = nullptr);
34
35 Q_INVOKABLE QColor transparent(const QColor &color, qreal opacity) const;
36 Q_INVOKABLE QColor blend(const QColor &a, const QColor &b, qreal factor) const;
37};
38
40
41#endif // QQUICKCOLOR_P_H
The QColor class provides colors based on RGB, HSV or CMYK values.
Definition qcolor.h:31
\inmodule QtCore
Definition qobject.h:103
Combined button and popup list for selecting options.
GLboolean GLboolean GLboolean b
GLboolean GLboolean GLboolean GLboolean a
[7]
GLuint color
[2]
#define QML_NAMED_ELEMENT(NAME)
#define QML_SINGLETON
#define QML_ADDED_IN_VERSION(MAJOR, MINOR)
#define Q_OBJECT
#define Q_INVOKABLE
double qreal
Definition qtypes.h:187