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

Go to the source code of this file.

Classes

struct  pulp::view::StaticAnimationLimits
 Compile-time animation limits for optimization. More...
class  pulp::view::Tween
class  pulp::view::AnimationManager
struct  pulp::view::AnimationManager::AnimationId
class  pulp::view::ValueAnimation
 Lightweight, embeddable value animator for widget members. More...
struct  pulp::view::Keyframe
 A single keyframe: offset (0-1) and value. More...
class  pulp::view::KeyframeAnimation
 Multi-step keyframe animation with iteration, direction, fill mode. More...

Namespaces

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

Macros

#define PULP_MOTION_TWEEN(source_id, ...)

Typedefs

using pulp::view::EasingFunction = float(*)(float)

Functions

float pulp::view::easing::linear (float t)
float pulp::view::easing::ease_in_quad (float t)
float pulp::view::easing::ease_out_quad (float t)
float pulp::view::easing::ease_in_out_quad (float t)
float pulp::view::easing::ease_in_cubic (float t)
float pulp::view::easing::ease_out_cubic (float t)
float pulp::view::easing::ease_in_out_cubic (float t)
float pulp::view::easing::ease_in_expo (float t)
float pulp::view::easing::ease_out_expo (float t)
float pulp::view::easing::ease_out_elastic (float t)
float pulp::view::easing::ease_out_bounce (float t)
EasingFunction pulp::view::easing_by_name (const std::string &name)
 Resolve an easing function by name string. Returns linear for unknown names.

Macro Definition Documentation

◆ PULP_MOTION_TWEEN

#define PULP_MOTION_TWEEN ( source_id,
... )
Value:
([](::pulp::view::Tween&& __pulp_tween_) -> ::pulp::view::Tween { \
__pulp_tween_.set_motion_provenance( \
::std::string{"tween"}, \
::std::string{(source_id)}, \
::std::string{__FILE__}, \
static_cast<int>(__LINE__)); \
return __pulp_tween_; \
}(::pulp::view::Tween(__VA_ARGS__)))
Definition animation.hpp:72