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>.
|
#include <qquickvaluetypes_p.h>
Public Member Functions | |
Q_INVOKABLE | QQuickColorValueType (const QString &string) |
Q_INVOKABLE QString | toString () const |
Q_INVOKABLE QVariant | alpha (qreal value) const |
Q_INVOKABLE QVariant | lighter (qreal factor=1.5) const |
Q_INVOKABLE QVariant | darker (qreal factor=2.0) const |
Q_INVOKABLE QVariant | tint (QVariant factor) const |
qreal | r () const |
qreal | g () const |
qreal | b () const |
qreal | a () const |
qreal | hsvHue () const |
qreal | hsvSaturation () const |
qreal | hsvValue () const |
qreal | hslHue () const |
qreal | hslSaturation () const |
qreal | hslLightness () const |
bool | isValid () const |
void | setR (qreal) |
void | setG (qreal) |
void | setB (qreal) |
void | setA (qreal) |
void | setHsvHue (qreal) |
void | setHsvSaturation (qreal) |
void | setHsvValue (qreal) |
void | setHslHue (qreal) |
void | setHslSaturation (qreal) |
void | setHslLightness (qreal) |
operator QColor () const | |
Static Public Member Functions | |
static QVariant | create (const QJSValue ¶ms) |
Properties | |
qreal | r |
qreal | g |
qreal | b |
qreal | a |
qreal | hsvHue |
qreal | hsvSaturation |
qreal | hsvValue |
qreal | hslHue |
qreal | hslSaturation |
qreal | hslLightness |
bool | valid |
Definition at line 33 of file qquickvaluetypes_p.h.
QT_BEGIN_NAMESPACE QQuickColorValueType::QQuickColorValueType | ( | const QString & | string | ) |
Definition at line 14 of file qquickvaluetypes.cpp.
qreal QQuickColorValueType::a | ( | ) | const |
Definition at line 64 of file qquickvaluetypes.cpp.
Definition at line 39 of file qquickvaluetypes.cpp.
References QQmlColorProvider::alpha(), and QQml_colorProvider().
qreal QQuickColorValueType::b | ( | ) | const |
Definition at line 59 of file qquickvaluetypes.cpp.
Definition at line 19 of file qquickvaluetypes.cpp.
References QColor::fromString().
Definition at line 34 of file qquickvaluetypes.cpp.
References QQmlColorProvider::darker(), and QQml_colorProvider().
qreal QQuickColorValueType::g | ( | ) | const |
Definition at line 54 of file qquickvaluetypes.cpp.
qreal QQuickColorValueType::hslHue | ( | ) | const |
Definition at line 84 of file qquickvaluetypes.cpp.
qreal QQuickColorValueType::hslLightness | ( | ) | const |
Definition at line 94 of file qquickvaluetypes.cpp.
qreal QQuickColorValueType::hslSaturation | ( | ) | const |
Definition at line 89 of file qquickvaluetypes.cpp.
qreal QQuickColorValueType::hsvHue | ( | ) | const |
Definition at line 69 of file qquickvaluetypes.cpp.
qreal QQuickColorValueType::hsvSaturation | ( | ) | const |
Definition at line 74 of file qquickvaluetypes.cpp.
qreal QQuickColorValueType::hsvValue | ( | ) | const |
Definition at line 79 of file qquickvaluetypes.cpp.
bool QQuickColorValueType::isValid | ( | ) | const |
Definition at line 99 of file qquickvaluetypes.cpp.
Definition at line 29 of file qquickvaluetypes.cpp.
References QQmlColorProvider::lighter(), and QQml_colorProvider().
|
inline |
Definition at line 87 of file qquickvaluetypes_p.h.
qreal QQuickColorValueType::r | ( | ) | const |
Definition at line 49 of file qquickvaluetypes.cpp.
Definition at line 119 of file qquickvaluetypes.cpp.
Definition at line 114 of file qquickvaluetypes.cpp.
Definition at line 109 of file qquickvaluetypes.cpp.
Definition at line 145 of file qquickvaluetypes.cpp.
References hslHue.
Definition at line 159 of file qquickvaluetypes.cpp.
References hslLightness.
Definition at line 152 of file qquickvaluetypes.cpp.
References hslSaturation.
Definition at line 124 of file qquickvaluetypes.cpp.
References hsvHue.
Definition at line 131 of file qquickvaluetypes.cpp.
References hsvSaturation.
Definition at line 138 of file qquickvaluetypes.cpp.
References hsvValue.
Definition at line 104 of file qquickvaluetypes.cpp.
Definition at line 44 of file qquickvaluetypes.cpp.
References QQml_colorProvider(), and QQmlColorProvider::tint().
QString QQuickColorValueType::toString | ( | ) | const |
Definition at line 24 of file qquickvaluetypes.cpp.
References QColor::HexArgb, and QColor::HexRgb.
|
readwrite |
Definition at line 39 of file qquickvaluetypes_p.h.
|
readwrite |
Definition at line 38 of file qquickvaluetypes_p.h.
|
readwrite |
Definition at line 37 of file qquickvaluetypes_p.h.
|
readwrite |
Definition at line 43 of file qquickvaluetypes_p.h.
Referenced by setHslHue().
|
readwrite |
Definition at line 45 of file qquickvaluetypes_p.h.
Referenced by setHslLightness().
|
readwrite |
Definition at line 44 of file qquickvaluetypes_p.h.
Referenced by setHslSaturation().
|
readwrite |
Definition at line 40 of file qquickvaluetypes_p.h.
Referenced by setHsvHue().
|
readwrite |
Definition at line 41 of file qquickvaluetypes_p.h.
Referenced by setHsvSaturation().
|
readwrite |
Definition at line 42 of file qquickvaluetypes_p.h.
Referenced by setHsvValue().
|
readwrite |
Definition at line 36 of file qquickvaluetypes_p.h.
|
read |
Definition at line 46 of file qquickvaluetypes_p.h.