56 , cornerRadius(other.cornerRadius)
57 , blurRadius(other.blurRadius)
58 , spread(other.spread)
59 , boxSize(other.boxSize) {}
61 inline bool isInner()
const {
64 inline bool isCircular()
const {
65 return type & Circular;
67 inline QString toString()
const {
68 return QString(
"%1.%2.%3.%4.%5").arg(type).arg(cornerRadius).arg(blurRadius).arg(spread).arg(boxSize);
73 cornerRadius = other.cornerRadius;
74 blurRadius = other.blurRadius;
75 spread = other.spread;
80 inline bool operator==(
const ShadowConfig &other)
const {
81 return type == other.type
82 && qFuzzyCompare(cornerRadius, other.cornerRadius)
83 && qFuzzyCompare(blurRadius, other.blurRadius)
84 && qFuzzyCompare(spread, other.spread)
85 && qFuzzyCompare(boxSize, other.boxSize);
87 inline bool operator!=(
const ShadowConfig &other)
const {
88 return !operator==(other);
91 friend Q_CORE_EXPORT uint qHash(
const ShadowConfig &config, uint seed)
noexcept;
94 static QUrl toUrl(qreal boxSize, qreal cornerRadius, qreal shadowBlur, QColor color,
95 qreal xOffset, qreal yOffset, qreal spread,
bool hollow,
bool inner);