SVG for C++
Loading...
Searching...
No Matches
Public Member Functions | List of all members
SVG::TransformList Class Reference

Ordered function list for managing the transform attribute. More...

#include <svg.hpp>

Public Member Functions

 TransformList (std::string &value, const Element *owner=nullptr)
 
 TransformList (const std::string &value, const Element *owner=nullptr)
 
TransformList & append (const std::string &transform)
 
TransformList & set (const std::string &transform)
 
TransformList & clear ()
 
TransformList & matrix (double a, double b, double c, double d, double e, double f)
 
TransformList & translate (double x)
 
TransformList & translate (double x, double y)
 
TransformList & scale (double factor)
 
TransformList & scale (double x, double y)
 
TransformList & rotate (double degrees)
 
TransformList & rotate (double degrees, double cx, double cy)
 
TransformList & rotate_about_bbox (double degrees, Anchor x_anchor, Anchor y_anchor)
 
TransformList & skew_x (double degrees)
 
TransformList & skew_y (double degrees)
 
std::string str () const
 

Detailed Description

Ordered function list for managing the transform attribute.

Member Function Documentation

◆ append()

TransformList & SVG::TransformList::append ( const std::string &  transform)
inline

Append a raw transform function or function list

◆ clear()

TransformList & SVG::TransformList::clear ( )
inline

Remove all transforms

◆ rotate_about_bbox()

TransformList & SVG::TransformList::rotate_about_bbox ( double  degrees,
Anchor  x_anchor,
Anchor  y_anchor 
)
inline

Append rotate(degrees cx cy) using an owning element's measured layout bbox.

◆ set()

TransformList & SVG::TransformList::set ( const std::string &  transform)
inline

Replace the transform attribute

◆ str()

std::string SVG::TransformList::str ( ) const
inline

Return the current transform text


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