QSkinny 0.8.0
C++/Qt UI toolkit
Loading...
Searching...
No Matches
QskHctColor Class Reference

Detailed Description

Definition at line 25 of file QskHctColor.h.

Public Member Functions

constexpr QskHctColor (qreal hue, qreal chrome, qreal tone=40) noexcept
 
 QskHctColor (QRgb)
 
void setHue (qreal hue)
 
constexpr qreal hue () const noexcept
 
void setChroma (qreal chroma) noexcept
 
constexpr qreal chroma () const noexcept
 
void setTone (qreal tone) noexcept
 
constexpr qreal tone () const noexcept
 
constexpr QskHctColor toned (qreal tone) const noexcept
 
void setRgb (QRgb)
 
QRgb rgb () const
 

Constructor & Destructor Documentation

◆ QskHctColor() [1/2]

constexpr QskHctColor::QskHctColor ( qreal  hue,
qreal  chrome,
qreal  tone = 40 
)
inlineconstexprnoexcept

Definition at line 55 of file QskHctColor.h.

◆ QskHctColor() [2/2]

QskHctColor::QskHctColor ( QRgb  rgb)

Definition at line 856 of file QskHctColor.cpp.

Member Function Documentation

◆ chroma()

constexpr qreal QskHctColor::chroma ( ) const
inlineconstexprnoexcept

Definition at line 67 of file QskHctColor.h.

◆ hue()

constexpr qreal QskHctColor::hue ( ) const
inlineconstexprnoexcept

Definition at line 62 of file QskHctColor.h.

◆ rgb()

QRgb QskHctColor::rgb ( ) const

Definition at line 883 of file QskHctColor.cpp.

◆ setChroma()

void QskHctColor::setChroma ( qreal  chroma)
noexcept

Definition at line 868 of file QskHctColor.cpp.

◆ setHue()

void QskHctColor::setHue ( qreal  hue)

Definition at line 861 of file QskHctColor.cpp.

◆ setRgb()

void QskHctColor::setRgb ( QRgb  rgb)

Definition at line 878 of file QskHctColor.cpp.

◆ setTone()

void QskHctColor::setTone ( qreal  tone)
noexcept

Definition at line 873 of file QskHctColor.cpp.

◆ tone()

constexpr qreal QskHctColor::tone ( ) const
inlineconstexprnoexcept

Definition at line 72 of file QskHctColor.h.

◆ toned()

constexpr QskHctColor QskHctColor::toned ( qreal  tone) const
inlineconstexprnoexcept

Definition at line 77 of file QskHctColor.h.