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

#include <svg_fragment.hpp>

Public Member Functions

bool is_identity () const
 True when this is the do-nothing transform (no attribute is emitted).
std::string to_svg_transform () const
 The transform="…" attribute VALUE (without the transform= / quotes), composed outermost-first as SVG applies them: translate(dx dy) rotate(deg cx cy) scale(s).

Public Attributes

float dx = 0.0f
float dy = 0.0f
 translate, SVG coords
float rotate_deg = 0.0f
 rotation about (pivot_x, pivot_y)
float scale = 1.0f
 uniform scale about (pivot_x, pivot_y)
float pivot_x = 0.0f
float pivot_y = 0.0f

Member Function Documentation

◆ is_identity()

bool pulp::view::FragmentTransform::is_identity ( ) const

True when this is the do-nothing transform (no attribute is emitted).

◆ to_svg_transform()

std::string pulp::view::FragmentTransform::to_svg_transform ( ) const

The transform="…" attribute VALUE (without the transform= / quotes), composed outermost-first as SVG applies them: translate(dx dy) rotate(deg cx cy) scale(s).

Empty when is_identity().

Member Data Documentation

◆ dx

float pulp::view::FragmentTransform::dx = 0.0f

◆ dy

float pulp::view::FragmentTransform::dy = 0.0f

translate, SVG coords

◆ pivot_x

float pulp::view::FragmentTransform::pivot_x = 0.0f

◆ pivot_y

float pulp::view::FragmentTransform::pivot_y = 0.0f

◆ rotate_deg

float pulp::view::FragmentTransform::rotate_deg = 0.0f

rotation about (pivot_x, pivot_y)

◆ scale

float pulp::view::FragmentTransform::scale = 1.0f

uniform scale about (pivot_x, pivot_y)


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