6#include <PhosphorAnimation/phosphoranimation_export.h>
102 return !(*
this == other);
127 static std::optional<AnimationAppRule>
fromJson(
const QJsonObject& obj);
146 return m_rules.size();
150 return m_rules.isEmpty();
190 std::optional<AnimationAppRule>
resolveShader(
const QString& windowClass,
const QString& eventPath)
const;
194 std::optional<AnimationAppRule>
resolveTiming(
const QString& windowClass,
const QString& eventPath)
const;
201 return m_rules == other.m_rules;
205 return !(*
this == other);
212 const QString& eventPath)
const;
214 QList<AnimationAppRule> m_rules;
Ordered list of AnimationAppRule entries with first-match resolver.
Definition AnimationAppRule.h:140
int size() const noexcept
Definition AnimationAppRule.h:144
static AnimationAppRuleList fromJson(const QJsonArray &arr)
AnimationAppRuleList()=default
QJsonArray toJson() const
void clear() noexcept
Definition AnimationAppRule.h:172
bool operator!=(const AnimationAppRuleList &other) const noexcept
Definition AnimationAppRule.h:203
bool operator==(const AnimationAppRuleList &other) const noexcept
Definition AnimationAppRule.h:199
bool append(const AnimationAppRule &rule)
Append rule.
int setEntries(const QList< AnimationAppRule > &rules)
Replace the entire list (used by setters that take a full already-built list, e.g.
bool isEmpty() const noexcept
Definition AnimationAppRule.h:148
void move(int from, int to)
std::optional< AnimationAppRule > resolveTiming(const QString &windowClass, const QString &eventPath) const
First matching Kind::Timing rule for the given (windowClass, eventPath).
AnimationAppRule at(int index) const
Random-access read.
std::optional< AnimationAppRule > resolveShader(const QString &windowClass, const QString &eventPath) const
First matching Kind::Shader rule for the given (windowClass, eventPath).
QList< AnimationAppRule > entries() const
Definition AnimationAppRule.h:159
Definition AnimationAppRule.h:17
One per-window animation override entry.
Definition AnimationAppRule.h:60
QJsonObject toJson() const
QString effectId
Shader effect id from the registry.
Definition AnimationAppRule.h:83
QString classPattern
Substring matched case-insensitively against EffectWindow::windowClass() (or the equivalent in the da...
Definition AnimationAppRule.h:70
bool operator!=(const AnimationAppRule &other) const noexcept
Definition AnimationAppRule.h:100
QString curve
Easing curve string in Profile's wire format ("x1,y1,x2,y2", "elastic-out:amp,per",...
Definition AnimationAppRule.h:94
bool operator==(const AnimationAppRule &other) const noexcept
Kind
Definition AnimationAppRule.h:61
QString eventPath
Animation event path from PhosphorAnimation::ProfilePaths::Window* (e.g.
Definition AnimationAppRule.h:75
QVariantMap shaderParams
Per-effect parameter map (same shape as the per-event tree).
Definition AnimationAppRule.h:88
static std::optional< AnimationAppRule > fromJson(const QJsonObject &obj)
Strict rule-level loader.