Pulp 1.88.0
Cross-platform audio plugin framework
Loading...
Searching...
No Matches
lottie_view.hpp File Reference

A view widget that plays a Lottie / After-Effects (Bodymovin JSON) animation. More...

#include <memory>
#include <string>
#include <pulp/view/view.hpp>

Go to the source code of this file.

Classes

class  pulp::view::LottieView

Namespaces

namespace  pulp
namespace  pulp::canvas
namespace  pulp::view
 Hover-cursor tracking for platform window hosts.

Detailed Description

A view widget that plays a Lottie / After-Effects (Bodymovin JSON) animation.

Thin time-driver over canvas::LottieAnimation: it advances a playhead from the view system's FrameClock, honors the reduced-motion preference, and paints the current frame onto the canvas. All rendering lives in canvas::LottieAnimation, so this header carries no rendering-backend dependency.

Lottie playback is opt-in (CMake PULP_LOTTIE). When it is not compiled in, the widget still constructs and lays out, but load_* return false and paint draws nothing — calling code is unaffected.