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
QQuickColorValueType Class Reference

#include <qquickvaluetypes_p.h>

+ Collaboration diagram for QQuickColorValueType:

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 &params)
 

Properties

qreal r
 
qreal g
 
qreal b
 
qreal a
 
qreal hsvHue
 
qreal hsvSaturation
 
qreal hsvValue
 
qreal hslHue
 
qreal hslSaturation
 
qreal hslLightness
 
bool valid
 

Detailed Description

Definition at line 33 of file qquickvaluetypes_p.h.

Constructor & Destructor Documentation

◆ QQuickColorValueType()

QT_BEGIN_NAMESPACE QQuickColorValueType::QQuickColorValueType ( const QString & string)

Definition at line 14 of file qquickvaluetypes.cpp.

Member Function Documentation

◆ a()

qreal QQuickColorValueType::a ( ) const

Definition at line 64 of file qquickvaluetypes.cpp.

◆ alpha()

QVariant QQuickColorValueType::alpha ( qreal value) const

Definition at line 39 of file qquickvaluetypes.cpp.

References QQmlColorProvider::alpha(), and QQml_colorProvider().

+ Here is the call graph for this function:

◆ b()

qreal QQuickColorValueType::b ( ) const

Definition at line 59 of file qquickvaluetypes.cpp.

◆ create()

QVariant QQuickColorValueType::create ( const QJSValue & params)
static

Definition at line 19 of file qquickvaluetypes.cpp.

References QColor::fromString().

+ Here is the call graph for this function:

◆ darker()

QVariant QQuickColorValueType::darker ( qreal factor = 2.0) const

Definition at line 34 of file qquickvaluetypes.cpp.

References QQmlColorProvider::darker(), and QQml_colorProvider().

+ Here is the call graph for this function:

◆ g()

qreal QQuickColorValueType::g ( ) const

Definition at line 54 of file qquickvaluetypes.cpp.

◆ hslHue()

qreal QQuickColorValueType::hslHue ( ) const

Definition at line 84 of file qquickvaluetypes.cpp.

◆ hslLightness()

qreal QQuickColorValueType::hslLightness ( ) const

Definition at line 94 of file qquickvaluetypes.cpp.

◆ hslSaturation()

qreal QQuickColorValueType::hslSaturation ( ) const

Definition at line 89 of file qquickvaluetypes.cpp.

◆ hsvHue()

qreal QQuickColorValueType::hsvHue ( ) const

Definition at line 69 of file qquickvaluetypes.cpp.

◆ hsvSaturation()

qreal QQuickColorValueType::hsvSaturation ( ) const

Definition at line 74 of file qquickvaluetypes.cpp.

◆ hsvValue()

qreal QQuickColorValueType::hsvValue ( ) const

Definition at line 79 of file qquickvaluetypes.cpp.

◆ isValid()

bool QQuickColorValueType::isValid ( ) const

Definition at line 99 of file qquickvaluetypes.cpp.

◆ lighter()

QVariant QQuickColorValueType::lighter ( qreal factor = 1.5) const

Definition at line 29 of file qquickvaluetypes.cpp.

References QQmlColorProvider::lighter(), and QQml_colorProvider().

+ Here is the call graph for this function:

◆ operator QColor()

QQuickColorValueType::operator QColor ( ) const
inline

Definition at line 87 of file qquickvaluetypes_p.h.

◆ r()

qreal QQuickColorValueType::r ( ) const

Definition at line 49 of file qquickvaluetypes.cpp.

◆ setA()

void QQuickColorValueType::setA ( qreal a)

Definition at line 119 of file qquickvaluetypes.cpp.

◆ setB()

void QQuickColorValueType::setB ( qreal b)

Definition at line 114 of file qquickvaluetypes.cpp.

◆ setG()

void QQuickColorValueType::setG ( qreal g)

Definition at line 109 of file qquickvaluetypes.cpp.

◆ setHslHue()

void QQuickColorValueType::setHslHue ( qreal hslHue)

Definition at line 145 of file qquickvaluetypes.cpp.

References hslHue.

◆ setHslLightness()

void QQuickColorValueType::setHslLightness ( qreal hslLightness)

Definition at line 159 of file qquickvaluetypes.cpp.

References hslLightness.

◆ setHslSaturation()

void QQuickColorValueType::setHslSaturation ( qreal hslSaturation)

Definition at line 152 of file qquickvaluetypes.cpp.

References hslSaturation.

◆ setHsvHue()

void QQuickColorValueType::setHsvHue ( qreal hsvHue)

Definition at line 124 of file qquickvaluetypes.cpp.

References hsvHue.

◆ setHsvSaturation()

void QQuickColorValueType::setHsvSaturation ( qreal hsvSaturation)

Definition at line 131 of file qquickvaluetypes.cpp.

References hsvSaturation.

◆ setHsvValue()

void QQuickColorValueType::setHsvValue ( qreal hsvValue)

Definition at line 138 of file qquickvaluetypes.cpp.

References hsvValue.

◆ setR()

void QQuickColorValueType::setR ( qreal r)

Definition at line 104 of file qquickvaluetypes.cpp.

◆ tint()

QVariant QQuickColorValueType::tint ( QVariant factor) const

Definition at line 44 of file qquickvaluetypes.cpp.

References QQml_colorProvider(), and QQmlColorProvider::tint().

+ Here is the call graph for this function:

◆ toString()

QString QQuickColorValueType::toString ( ) const

Definition at line 24 of file qquickvaluetypes.cpp.

References QColor::HexArgb, and QColor::HexRgb.

Property Documentation

◆ a

qreal QQuickColorValueType::a
readwrite

Definition at line 39 of file qquickvaluetypes_p.h.

◆ b

qreal QQuickColorValueType::b
readwrite

Definition at line 38 of file qquickvaluetypes_p.h.

◆ g

qreal QQuickColorValueType::g
readwrite

Definition at line 37 of file qquickvaluetypes_p.h.

◆ hslHue

qreal QQuickColorValueType::hslHue
readwrite

Definition at line 43 of file qquickvaluetypes_p.h.

Referenced by setHslHue().

◆ hslLightness

qreal QQuickColorValueType::hslLightness
readwrite

Definition at line 45 of file qquickvaluetypes_p.h.

Referenced by setHslLightness().

◆ hslSaturation

qreal QQuickColorValueType::hslSaturation
readwrite

Definition at line 44 of file qquickvaluetypes_p.h.

Referenced by setHslSaturation().

◆ hsvHue

qreal QQuickColorValueType::hsvHue
readwrite

Definition at line 40 of file qquickvaluetypes_p.h.

Referenced by setHsvHue().

◆ hsvSaturation

qreal QQuickColorValueType::hsvSaturation
readwrite

Definition at line 41 of file qquickvaluetypes_p.h.

Referenced by setHsvSaturation().

◆ hsvValue

qreal QQuickColorValueType::hsvValue
readwrite

Definition at line 42 of file qquickvaluetypes_p.h.

Referenced by setHsvValue().

◆ r

qreal QQuickColorValueType::r
readwrite

Definition at line 36 of file qquickvaluetypes_p.h.

◆ valid

bool QQuickColorValueType::valid
read

Definition at line 46 of file qquickvaluetypes_p.h.


The documentation for this class was generated from the following files: