6#include <PhosphorAnimation/phosphoranimation_export.h>
19class PhosphorProfileRegistry;
23class AnimationShaderRegistry;
160 qreal showScaleFrom = 1.0;
161 qreal hideScaleTo = 1.0;
327 std::unique_ptr<Private> d;
Concrete PhosphorLayer::ISurfaceAnimator driving show/hide via phosphor-animation Profiles.
Definition SurfaceAnimator.h:121
~SurfaceAnimator() override
void cancel(PhosphorLayer::Surface *surface) override
Interrupt any in-flight animation for surface.
void beginHide(PhosphorLayer::Surface *surface, QQuickItem *rootItem, CompletionCallback onComplete) override
Begin a hide transition for surface.
SurfaceAnimator(const SurfaceAnimator &)=delete
void setDefaultConfig(Config cfg)
Mutable access to the default (unregistered-role fallback).
Config defaultConfig() const
Config configForRole(const PhosphorLayer::Role &role) const
Read-only config lookup.
void beginHide(PhosphorLayer::Surface *surface, QQuickItem *rootItem, const PhosphorLayer::Role &configRole, CompletionCallback onComplete)
void setAudioSpectrum(const QVector< float > &spectrum)
Push the latest CAVA / audio-spectrum sample to every active animation shader item.
SurfaceAnimator(PhosphorAnimation::PhosphorProfileRegistry ®istry, PhosphorAnimationShaders::AnimationShaderRegistry *shaderRegistry, Config defaults)
Full constructor with shader registry for Phase 6 transition effects.
void beginShow(PhosphorLayer::Surface *surface, QQuickItem *rootItem, const PhosphorLayer::Role &configRole, CompletionCallback onComplete)
Role-override show/hide.
SurfaceAnimator(PhosphorAnimation::PhosphorProfileRegistry ®istry)
Convenience: registry-only ctor with empty default config.
void registerConfigForRole(const PhosphorLayer::Role &role, Config cfg)
Override the configuration for one Role.
void setEnabled(bool enabled)
Global animation enable/disable.
SurfaceAnimator(PhosphorAnimation::PhosphorProfileRegistry ®istry, Config defaults)
Construct against an explicit registry with caller-supplied defaults.
void beginShow(PhosphorLayer::Surface *surface, QQuickItem *rootItem, CompletionCallback onComplete) override
Begin a show transition for surface.
SurfaceAnimator & operator=(const SurfaceAnimator &)=delete
void setAnimationShaderRegistry(PhosphorAnimationShaders::AnimationShaderRegistry *registry)
Install the animation shader registry for Phase 6 shader transitions.
Registry of available animation shader transition effects.
Definition AnimationShaderRegistry.h:75
Registry mapping profile path strings to Profile values.
Definition PhosphorProfileRegistry.h:23
Hook point for show/hide transitions on Surfaces.
Definition ISurfaceAnimator.h:50
std::function< void()> CompletionCallback
Invoked when a show/hide animation completes.
Definition ISurfaceAnimator.h:55
One layer-shell surface with a managed lifecycle.
Definition Surface.h:99
Definition SurfaceAnimator.h:35
Definition AnimationAppRule.h:17
Definition AnimatedValue.h:31
Definition SurfaceAnimator.h:26
Per-role profile + scale tuning bundle.
Definition SurfaceAnimator.h:155
QString hideShaderProfile
Definition SurfaceAnimator.h:169
QString hideScaleProfile
Optional. Empty → no scale animation on hide.
Definition SurfaceAnimator.h:159
QString hideProfile
Path resolved via registry, e.g. "osd.hide".
Definition SurfaceAnimator.h:157
QString hideShaderEffectId
Definition SurfaceAnimator.h:165
QVariantMap showShaderParameters
Per-event shader parameter overrides forwarded to PhosphorRendering::ShaderEffect::setShaderParams on...
Definition SurfaceAnimator.h:177
QVariantMap hideShaderParameters
Definition SurfaceAnimator.h:178
QString showProfile
Path resolved via registry, e.g. "osd.show".
Definition SurfaceAnimator.h:156
QString showScaleProfile
Optional. Empty → no scale animation on show.
Definition SurfaceAnimator.h:158
QString showShaderEffectId
Phase 6: shader transition effect ids.
Definition SurfaceAnimator.h:164
QString showShaderProfile
Optional profile paths for the shader time curve.
Definition SurfaceAnimator.h:168
Value type describing a surface's protocol-level configuration.
Definition Role.h:77