QskColorFilter

Public Functions

  Name
  QskColorFilter() =default
void addColorSubstitution(QRgb from, QRgb to)
void addColorSubstitution(Qt::GlobalColor from, QRgb to)
void addColorSubstitution(QRgb from, Qt::GlobalColor to)
void addColorSubstitution(Qt::GlobalColor from, Qt::GlobalColor to)
void reset()
QPen substituted(const QPen & pen) const
QBrush substituted(const QBrush & brush) const
QColor substituted(const QColor & color) const
QRgb substituted(const QRgb & rgb) const
bool isIdentity() const
bool operator==(const QskColorFilter & other) const
bool operator!=(const QskColorFilter & other) const
const QVector< QPair< QRgb, QRgb > > & substitutions() const
QskColorFilter interpolated(const QskColorFilter & other, qreal value) const
QVariant interpolate(const QskColorFilter & from, const QskColorFilter & to, qreal progress)

Public Functions Documentation

function QskColorFilter

QskColorFilter() =default

function addColorSubstitution

void addColorSubstitution(
    QRgb from,
    QRgb to
)

function addColorSubstitution

inline void addColorSubstitution(
    Qt::GlobalColor from,
    QRgb to
)

function addColorSubstitution

inline void addColorSubstitution(
    QRgb from,
    Qt::GlobalColor to
)

function addColorSubstitution

inline void addColorSubstitution(
    Qt::GlobalColor from,
    Qt::GlobalColor to
)

function reset

void reset()

function substituted

QPen substituted(
    const QPen & pen
) const

function substituted

QBrush substituted(
    const QBrush & brush
) const

function substituted

QColor substituted(
    const QColor & color
) const

function substituted

QRgb substituted(
    const QRgb & rgb
) const

function isIdentity

inline bool isIdentity() const

function operator==

inline bool operator==(
    const QskColorFilter & other
) const

function operator!=

inline bool operator!=(
    const QskColorFilter & other
) const

function substitutions

inline const QVector< QPair< QRgb, QRgb > > & substitutions() const

function interpolated

QskColorFilter interpolated(
    const QskColorFilter & other,
    qreal value
) const

function interpolate

static QVariant interpolate(
    const QskColorFilter & from,
    const QskColorFilter & to,
    qreal progress
)

Updated on 28 July 2023 at 14:02:29 CEST