Phosphor
Qt6 / Wayland library suite for window-management tools
 
Loading...
Searching...
No Matches
AnimationLimits.h
Go to the documentation of this file.
1// SPDX-FileCopyrightText: 2026 fuddlesworth
2// SPDX-License-Identifier: LGPL-2.1-or-later
3
4#pragma once
5
69namespace PhosphorAnimation {
70namespace Limits {
71
74constexpr int MinAnimationDurationMs = 50;
75
80constexpr int MaxAnimationDurationMs = 2000;
81
90constexpr int DefaultAnimationDurationMs = 150;
93 "DefaultAnimationDurationMs must lie within [Min, Max] so callers get a structurally-safe init");
94
99
104
113 "DefaultAnimationStaggerIntervalMs must lie within [Min, Max] so callers get a structurally-safe init");
114
118constexpr int SequenceModeAllAtOnce = 0;
119constexpr int SequenceModeCascade = 1;
121
160constexpr float MaxShaderTimeDeltaSeconds = 0.1f;
161
197constexpr double MinCurveProgress = -1.0;
198constexpr double MaxCurveProgress = 2.0;
199
200} // namespace Limits
201} // namespace PhosphorAnimation
constexpr int MaxAnimationStaggerIntervalMs
Maximum stagger interval between sequenced animations in milliseconds.
Definition AnimationLimits.h:103
constexpr int SequenceModeCascade
Definition AnimationLimits.h:119
constexpr int DefaultAnimationStaggerIntervalMs
Shipped stagger interval, the twin of DefaultAnimationDurationMs and there for the same reason: a con...
Definition AnimationLimits.h:110
constexpr int MinAnimationStaggerIntervalMs
Minimum stagger interval between sequenced animations in milliseconds.
Definition AnimationLimits.h:98
constexpr int MinAnimationDurationMs
Minimum animation duration in milliseconds.
Definition AnimationLimits.h:74
constexpr double MaxCurveProgress
Definition AnimationLimits.h:198
constexpr int DefaultAnimationSequenceMode
Definition AnimationLimits.h:120
constexpr int MaxAnimationDurationMs
Maximum animation duration in milliseconds.
Definition AnimationLimits.h:80
constexpr float MaxShaderTimeDeltaSeconds
Hard ceiling on a per-frame time delta handed to a shader or to a physics integrator,...
Definition AnimationLimits.h:160
constexpr int DefaultAnimationDurationMs
Default animation duration in milliseconds, used as the fallback at startup before settings are loade...
Definition AnimationLimits.h:90
constexpr double MinCurveProgress
Overshoot envelope for a curve's OUTPUT.
Definition AnimationLimits.h:197
constexpr int SequenceModeAllAtOnce
Batch sequencing mode: 0 applies every window at once, 1 cascades them in zone order.
Definition AnimationLimits.h:118
Definition AnimatedValue.h:32