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
24namespace PhosphorAnimation {
25namespace Limits {
26
29constexpr int MinAnimationDurationMs = 50;
30
35constexpr int MaxAnimationDurationMs = 2000;
36
45constexpr int DefaultAnimationDurationMs = 150;
48 "DefaultAnimationDurationMs must lie within [Min, Max] so callers get a structurally-safe init");
49
54
59
71constexpr float MaxShaderTimeDeltaSeconds = 0.1f;
72
73} // namespace Limits
74} // namespace PhosphorAnimation
constexpr int MaxAnimationStaggerIntervalMs
Maximum stagger interval between sequenced animations in milliseconds.
Definition AnimationLimits.h:58
constexpr int MinAnimationStaggerIntervalMs
Minimum stagger interval between sequenced animations in milliseconds.
Definition AnimationLimits.h:53
constexpr int MinAnimationDurationMs
Minimum animation duration in milliseconds.
Definition AnimationLimits.h:29
constexpr int MaxAnimationDurationMs
Maximum animation duration in milliseconds.
Definition AnimationLimits.h:35
constexpr float MaxShaderTimeDeltaSeconds
Hard ceiling on the per-frame iTimeDelta pushed into shaders, in seconds.
Definition AnimationLimits.h:71
constexpr int DefaultAnimationDurationMs
Default animation duration in milliseconds, used as the fallback at startup before settings are loade...
Definition AnimationLimits.h:45
Definition AnimatedValue.h:31