7#include <PhosphorAnimation/phosphoranimation_export.h>
59 std::shared_ptr<const Curve>
curve;
144 return !(*
this == other);
String-id <-> curve factory registry.
Definition CurveRegistry.h:26
SequenceMode effectiveSequenceMode() const
Definition Profile.h:83
std::optional< int > minDistance
Skip threshold in px — animation skipped if distance < this and no size change.
Definition Profile.h:65
static constexpr auto JsonFieldDuration
Definition Profile.h:102
std::optional< SequenceMode > sequenceMode
Definition Profile.h:67
Profile & operator=(Profile &&)=default
bool operator!=(const Profile &other) const
Definition Profile.h:142
static constexpr int DefaultStaggerInterval
Definition Profile.h:38
static constexpr int MaxMinDistancePx
Upper bound on minDistance, in pixels.
Definition Profile.h:49
static constexpr qreal MaxDurationMs
Definition Profile.h:41
Profile(const Profile &)=default
static constexpr int MaxStaggerIntervalMs
Definition Profile.h:42
static Profile fromJson(const QJsonObject &obj, const CurveRegistry ®istry)
Parse from JSON.
int effectiveMinDistance() const
Definition Profile.h:79
bool operator==(const Profile &other) const
static constexpr auto JsonFieldMinDistance
Definition Profile.h:103
std::optional< qreal > duration
Animation length in ms. Spring curves derive their own settle time.
Definition Profile.h:62
Profile withDefaults() const
Copy with every unset field filled from library defaults — curve is backfilled with a default-constru...
std::shared_ptr< const Curve > curve
nullptr = inherit from parent / library default (outCubic bezier).
Definition Profile.h:59
static constexpr int DefaultMinDistance
Definition Profile.h:36
static constexpr qreal DefaultDuration
Definition Profile.h:35
std::optional< int > staggerInterval
Milliseconds between cascade starts.
Definition Profile.h:70
std::optional< QString > presetName
Optional user-assigned preset name. Purely decorative for UI.
Definition Profile.h:73
static constexpr auto JsonFieldStaggerInterval
Definition Profile.h:105
static constexpr auto JsonFieldCurve
Definition Profile.h:101
static constexpr SequenceMode DefaultSequenceMode
Definition Profile.h:37
Profile & operator=(const Profile &)=default
QJsonObject toJson() const
Serialize to JSON. Only set fields are emitted.
static constexpr auto JsonFieldSequenceMode
Definition Profile.h:104
static constexpr auto JsonFieldPresetName
Definition Profile.h:106
qreal effectiveDuration() const
Definition Profile.h:75
int effectiveStaggerInterval() const
Definition Profile.h:87
Profile(Profile &&)=default
Definition AnimatedValue.h:32
SequenceMode
How a batch of animations starts. Numeric values match the historical wire format.
Definition Profile.h:21
@ Cascade
Definition Profile.h:23
@ AllAtOnce
Definition Profile.h:22