6#include <PhosphorAnimation/phosphoranimation_export.h>
56 return effectId.value_or(QString());
60 return parameters.value_or(QVariantMap());
67 static constexpr auto JsonFieldEffectId =
"effectId";
68 static constexpr auto JsonFieldParameters =
"parameters";
84 return !(*
this == other);
Per-event shader effect selection and configuration.
Definition ShaderProfile.h:39
QString effectiveEffectId() const
Definition ShaderProfile.h:54
static ShaderProfile fromJson(const QJsonObject &obj)
std::optional< QVariantMap > parameters
Per-event parameter overrides for the shader.
Definition ShaderProfile.h:50
bool operator==(const ShaderProfile &other) const
QVariantMap effectiveParameters() const
Definition ShaderProfile.h:58
std::optional< QString > effectId
Which animation shader effect to apply.
Definition ShaderProfile.h:44
static void overlay(ShaderProfile &dst, const ShaderProfile &src)
Overlay src onto dst: every engaged field in src replaces the corresponding field in dst.
bool operator!=(const ShaderProfile &other) const
Definition ShaderProfile.h:82
QJsonObject toJson() const
ShaderProfile withDefaults() const
Definition AnimationAppRule.h:17