Pulp 1.88.0
Cross-platform audio plugin framework
Loading...
Searching...
No Matches
pulp::view::TransitionSpec Struct Reference

One transition spec — one CSS property with its own duration / delay / easing. More...

#include <css_animation.hpp>

Public Member Functions

bool is_snap () const
 CSS spec — duration <= 0 means "snap" (no tween).
motion::Provenance motion_provenance () const
 Build a motion::Provenance envelope for this spec.

Public Attributes

AnimatableProperty property = AnimatableProperty::none
std::string property_name
 Original CSS property name.
float duration_seconds = 0.0f
float delay_seconds = 0.0f
CssEasing easing {}
std::string source_file
 Source attribution.
int source_line = 0

Detailed Description

One transition spec — one CSS property with its own duration / delay / easing.

CSS transition: opacity 200ms ease, transform 300ms is parsed into a vector of these.

Member Function Documentation

◆ is_snap()

bool pulp::view::TransitionSpec::is_snap ( ) const
inline

CSS spec — duration <= 0 means "snap" (no tween).

The dispatcher takes the fast path.

◆ motion_provenance()

motion::Provenance pulp::view::TransitionSpec::motion_provenance ( ) const
inline

Build a motion::Provenance envelope for this spec.

source_kind="css-transition", source_id=<property_name>, source_file / source_line from the parser. Returns an empty envelope when the parser didn't capture a location (e.g. legacy parse_transition_shorthand entry point).

Member Data Documentation

◆ delay_seconds

float pulp::view::TransitionSpec::delay_seconds = 0.0f

◆ duration_seconds

float pulp::view::TransitionSpec::duration_seconds = 0.0f

◆ easing

CssEasing pulp::view::TransitionSpec::easing {}

◆ property

AnimatableProperty pulp::view::TransitionSpec::property = AnimatableProperty::none

◆ property_name

std::string pulp::view::TransitionSpec::property_name

Original CSS property name.

Preserved for the 'all' and unrecognized cases the named enum can't represent.

◆ source_file

std::string pulp::view::TransitionSpec::source_file

Source attribution.

Filled in by parse_transition_shorthand_with_provenance(...) so an offline motion-trace reader can answer "what CSS file / line defined this transition?". Empty when parsed via the legacy entry point.

◆ source_line

int pulp::view::TransitionSpec::source_line = 0

The documentation for this struct was generated from the following file: