Pulp 1.88.0
Cross-platform audio plugin framework
Loading...
Searching...
No Matches
css_animation.hpp File Reference
#include <cctype>
#include <cmath>
#include <cstdint>
#include <cstdlib>
#include <string>
#include <utility>
#include <vector>
#include <pulp/view/motion.hpp>
#include <pulp/view/motion_preferences.hpp>

Go to the source code of this file.

Classes

struct  pulp::view::CssEasing
 CSS easing function — maps a normalized progress t ∈ [0,1] to an eased progress p ∈ [0,1]. More...
struct  pulp::view::TransitionSpec
 One transition spec — one CSS property with its own duration / delay / easing. More...
struct  pulp::view::CssAnimation
 One running animation. More...
struct  pulp::view::CssKeyframe
 One @keyframe stop. More...
struct  pulp::view::CssKeyframesBlock
 One @keyframes block: name + ordered stops. More...
struct  pulp::view::CssKeyframesRegistry
 Application-wide registry for @keyframes blocks. More...

Namespaces

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

Enumerations

enum class  pulp::view::AnimatableProperty {
  pulp::view::opacity , pulp::view::background_color , pulp::view::color , pulp::view::border_color ,
  pulp::view::translate_x , pulp::view::translate_y , pulp::view::rotate_deg , pulp::view::scale ,
  pulp::view::width , pulp::view::height , pulp::view::margin_top , pulp::view::margin_right ,
  pulp::view::margin_bottom , pulp::view::margin_left , pulp::view::padding_top , pulp::view::padding_right ,
  pulp::view::padding_bottom , pulp::view::padding_left , pulp::view::top , pulp::view::right ,
  pulp::view::bottom , pulp::view::left , pulp::view::none
}
 Property whose values can be tweened. More...

Functions

AnimatableProperty pulp::view::animatable_property_from_css_name (const std::string &name)
 Map CSS property name to AnimatableProperty enum.
float pulp::view::parse_css_time_seconds (const std::string &s)
 Parse a CSS time string (200ms / 0.3s / bare seconds) into seconds.
bool pulp::view::parse_css_float_token (const std::string &token, float &out)
std::vector< TransitionSpec > pulp::view::parse_transition_shorthand (const std::string &css)
 Parse a CSS transition shorthand into a list of TransitionSpecs.
std::vector< TransitionSpec > pulp::view::parse_transition_shorthand_with_provenance (const std::string &css, std::string source_file, int source_line)
 Parse a transition shorthand AND stamp each emitted TransitionSpec with the source attribution (CSS file path + line number, or React/JS component file:line when the CSS came from an inline style="...").