Pulp 1.88.0
Cross-platform audio plugin framework
Loading...
Searching...
No Matches
css_effect_parse.hpp File Reference
#include <pulp/canvas/canvas.hpp>
#include <optional>
#include <string>
#include <string_view>
#include <vector>

Go to the source code of this file.

Namespaces

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

Functions

std::optional< float > pulp::view::css_blur_radius (const std::string &filter)
 The blur radius out of a CSS filter list, in px.
std::vector< canvas::Canvas::FilterChainEntry > pulp::view::css_filter_chain (const std::string &filter)
 A whole CSS filter list as the canvas layer verbs consume it, in source order — saturate(0.15), grayscale(1) brightness(1.6), blur(6px).
std::optional< canvas::Canvas::BlendMode > pulp::view::css_blend_mode (const std::string &keyword)
 A CSS mix-blend-mode keyword.
std::optional< float > pulp::view::css_transform_rotation (const std::string &transform)
 The angle out of a rotate(<deg>deg) in a CSS transform, in degrees.
bool pulp::view::css_keyword_is_none (std::string_view value)
 True for an empty value or the CSS keyword none, which keywords match case-insensitively and with surrounding whitespace.