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

Detailed Description

Definition at line 17 of file QskTextColors.h.

Public Member Functions

 QskTextColors (const QColor &text=QColor(), const QColor &style=QColor(), const QColor &link=QColor())
 
QColor textColor () const
 
void setTextColor (const QColor &)
 
void setTextColor (QRgb)
 
void setTextColor (Qt::GlobalColor)
 
QColor styleColor () const
 
void setStyleColor (const QColor &)
 
void setStyleColor (QRgb)
 
void setStyleColor (Qt::GlobalColor)
 
QColor linkColor () const
 
void setLinkColor (const QColor &)
 
void setLinkColor (QRgb)
 
void setLinkColor (Qt::GlobalColor)
 
QskTextColors interpolated (const QskTextColors &, qreal value) const
 
QskHashValue hash (QskHashValue seed=0) const noexcept
 

Static Public Member Functions

static QVariant interpolate (const QskTextColors &, const QskTextColors &, qreal ratio)
 

Properties

QColor textColor
 
QColor styleColor
 
QColor linkColor
 

Constructor & Destructor Documentation

◆ QskTextColors()

QskTextColors::QskTextColors ( const QColor &  text = QColor(),
const QColor &  style = QColor(),
const QColor &  link = QColor() 
)
inline

Definition at line 57 of file QskTextColors.h.

Member Function Documentation

◆ hash()

QskHashValue QskTextColors::hash ( QskHashValue  seed = 0) const
noexcept

Definition at line 12 of file QskTextColors.cpp.

◆ interpolate()

QVariant QskTextColors::interpolate ( const QskTextColors from,
const QskTextColors to,
qreal  ratio 
)
static

Definition at line 50 of file QskTextColors.cpp.

◆ interpolated()

QskTextColors QskTextColors::interpolated ( const QskTextColors to,
qreal  value 
) const

Definition at line 39 of file QskTextColors.cpp.

◆ linkColor()

QColor QskTextColors::linkColor ( ) const
inline

Definition at line 70 of file QskTextColors.h.

◆ setLinkColor() [1/3]

void QskTextColors::setLinkColor ( const QColor &  color)

Definition at line 34 of file QskTextColors.cpp.

◆ setLinkColor() [2/3]

void QskTextColors::setLinkColor ( QRgb  rgb)
inline

Definition at line 100 of file QskTextColors.h.

◆ setLinkColor() [3/3]

void QskTextColors::setLinkColor ( Qt::GlobalColor  color)
inline

Definition at line 105 of file QskTextColors.h.

◆ setStyleColor() [1/3]

void QskTextColors::setStyleColor ( const QColor &  color)

Definition at line 29 of file QskTextColors.cpp.

◆ setStyleColor() [2/3]

void QskTextColors::setStyleColor ( QRgb  rgb)
inline

Definition at line 90 of file QskTextColors.h.

◆ setStyleColor() [3/3]

void QskTextColors::setStyleColor ( Qt::GlobalColor  color)
inline

Definition at line 95 of file QskTextColors.h.

◆ setTextColor() [1/3]

void QskTextColors::setTextColor ( const QColor &  color)

Definition at line 24 of file QskTextColors.cpp.

◆ setTextColor() [2/3]

void QskTextColors::setTextColor ( QRgb  rgb)
inline

Definition at line 80 of file QskTextColors.h.

◆ setTextColor() [3/3]

void QskTextColors::setTextColor ( Qt::GlobalColor  color)
inline

Definition at line 85 of file QskTextColors.h.

◆ styleColor()

QColor QskTextColors::styleColor ( ) const
inline

Definition at line 75 of file QskTextColors.h.

◆ textColor()

QColor QskTextColors::textColor ( ) const
inline

Definition at line 65 of file QskTextColors.h.

Property Documentation

◆ linkColor

QColor QskTextColors::linkColor
readwrite

Definition at line 23 of file QskTextColors.h.

◆ styleColor

QColor QskTextColors::styleColor
readwrite

Definition at line 22 of file QskTextColors.h.

◆ textColor

QColor QskTextColors::textColor
readwrite

Definition at line 21 of file QskTextColors.h.