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

Detailed Description

Definition at line 17 of file QskGradientStop.h.

Properties

qreal position
 
QColor color
 

Public Member Functions

constexpr QskGradientStop (qreal position, const QColor &) noexcept
 
constexpr QskGradientStop (const QGradientStop &) noexcept
 
 QskGradientStop (qreal position, Qt::GlobalColor) noexcept
 
 QskGradientStop (qreal position, QRgb) noexcept
 
constexpr bool operator== (const QskGradientStop &) const noexcept
 
constexpr bool operator!= (const QskGradientStop &) const noexcept
 
void setStop (qreal position, const QColor &) noexcept
 
void setStop (qreal position, Qt::GlobalColor) noexcept
 
void setStop (qreal position, QRgb) noexcept
 
constexpr qreal position () const noexcept
 
void setPosition (qreal position) noexcept
 
constexpr const QColor & color () const noexcept
 
void setColor (const QColor &) noexcept
 
void setRgb (QRgb) noexcept
 
QRgb rgb () const noexcept
 
QskHashValue hash (QskHashValue seed) const noexcept
 

Static Public Member Functions

static QColor interpolated (const QskGradientStop &, const QskGradientStop &, qreal position) noexcept
 

Constructor & Destructor Documentation

◆ QskGradientStop() [1/4]

constexpr QskGradientStop::QskGradientStop ( qreal  position,
const QColor &  color 
)
inlineconstexprnoexcept

Definition at line 64 of file QskGradientStop.h.

◆ QskGradientStop() [2/4]

constexpr QskGradientStop::QskGradientStop ( const QGradientStop &  qtStop)
inlineconstexprnoexcept

Definition at line 83 of file QskGradientStop.h.

◆ QskGradientStop() [3/4]

QskGradientStop::QskGradientStop ( qreal  position,
Qt::GlobalColor  color 
)
inlinenoexcept

Definition at line 71 of file QskGradientStop.h.

◆ QskGradientStop() [4/4]

QskGradientStop::QskGradientStop ( qreal  position,
QRgb  rgb 
)
inlinenoexcept

Definition at line 77 of file QskGradientStop.h.

Member Function Documentation

◆ color()

constexpr const QColor & QskGradientStop::color ( ) const
inlineconstexprnoexcept

Definition at line 93 of file QskGradientStop.h.

◆ hash()

QskHashValue QskGradientStop::hash ( QskHashValue  seed) const
noexcept

Definition at line 53 of file QskGradientStop.cpp.

◆ interpolated()

QColor QskGradientStop::interpolated ( const QskGradientStop s1,
const QskGradientStop s2,
qreal  position 
)
staticnoexcept

Definition at line 59 of file QskGradientStop.cpp.

◆ operator!=()

constexpr bool QskGradientStop::operator!= ( const QskGradientStop other) const
inlineconstexprnoexcept

Definition at line 108 of file QskGradientStop.h.

◆ operator==()

constexpr bool QskGradientStop::operator== ( const QskGradientStop other) const
inlineconstexprnoexcept

Definition at line 103 of file QskGradientStop.h.

◆ position()

constexpr qreal QskGradientStop::position ( ) const
inlineconstexprnoexcept

Definition at line 88 of file QskGradientStop.h.

◆ rgb()

QRgb QskGradientStop::rgb ( ) const
inlinenoexcept

Definition at line 98 of file QskGradientStop.h.

◆ setColor()

void QskGradientStop::setColor ( const QColor &  color)
noexcept

Definition at line 31 of file QskGradientStop.cpp.

◆ setPosition()

void QskGradientStop::setPosition ( qreal  position)
noexcept

Definition at line 26 of file QskGradientStop.cpp.

◆ setRgb()

void QskGradientStop::setRgb ( QRgb  rgb)
noexcept

Definition at line 36 of file QskGradientStop.cpp.

◆ setStop() [1/2]

void QskGradientStop::setStop ( qreal  position,
const QColor &  color 
)
noexcept

Definition at line 41 of file QskGradientStop.cpp.

◆ setStop() [2/2]

void QskGradientStop::setStop ( qreal  position,
Qt::GlobalColor  color 
)
noexcept

Definition at line 47 of file QskGradientStop.cpp.

Property Documentation

◆ color

QColor QskGradientStop::color
readwrite

Definition at line 22 of file QskGradientStop.h.

◆ position

qreal QskGradientStop::position
readwrite

Definition at line 21 of file QskGradientStop.h.