Pulp 1.88.0
Cross-platform audio plugin framework
Loading...
Searching...
No Matches
pulp::canvas::SvgImage Class Reference

#include <svg.hpp>

Public Member Functions

 SvgImage ()=default
 ~SvgImage ()
 SvgImage (SvgImage &&other) noexcept
SvgImage & operator= (SvgImage &&other) noexcept
 SvgImage (const SvgImage &)=delete
SvgImage & operator= (const SvgImage &)=delete
bool is_valid () const
float width () const
float height () const
std::vector< uint8_t > rasterize (int width, int height) const
void render (Canvas &canvas, float x, float y, float width, float height) const

Static Public Member Functions

static SvgImage from_string (const std::string &svg_data)
static SvgImage from_file (const std::string &path)

Constructor & Destructor Documentation

◆ SvgImage() [1/3]

pulp::canvas::SvgImage::SvgImage ( )
default

◆ ~SvgImage()

pulp::canvas::SvgImage::~SvgImage ( )

◆ SvgImage() [2/3]

pulp::canvas::SvgImage::SvgImage ( SvgImage && other)
noexcept

◆ SvgImage() [3/3]

pulp::canvas::SvgImage::SvgImage ( const SvgImage & )
delete

Member Function Documentation

◆ from_file()

SvgImage pulp::canvas::SvgImage::from_file ( const std::string & path)
static

◆ from_string()

SvgImage pulp::canvas::SvgImage::from_string ( const std::string & svg_data)
static

◆ height()

float pulp::canvas::SvgImage::height ( ) const

◆ is_valid()

bool pulp::canvas::SvgImage::is_valid ( ) const
inline

◆ operator=() [1/2]

SvgImage & pulp::canvas::SvgImage::operator= ( const SvgImage & )
delete

◆ operator=() [2/2]

SvgImage & pulp::canvas::SvgImage::operator= ( SvgImage && other)
noexcept

◆ rasterize()

std::vector< uint8_t > pulp::canvas::SvgImage::rasterize ( int width,
int height ) const

◆ render()

void pulp::canvas::SvgImage::render ( Canvas & canvas,
float x,
float y,
float width,
float height ) const

◆ width()

float pulp::canvas::SvgImage::width ( ) const

The documentation for this class was generated from the following file:
  • /home/runner/work/pulp/pulp/core/canvas/include/pulp/canvas/svg.hpp