![]()  | 
  
    VCV Rack API v2
    
   | 
 
Scalable Vector Graphics document. More...
#include <Svg.hpp>
Public Member Functions | |
| ~Svg () | |
| void | loadFile (const std::string &filename) | 
| Don't call this directly.   | |
| void | loadString (const std::string &str) | 
| Loads SVG data from a string.   | |
| math::Vec | getSize () | 
| Returns the SVG page size in pixels.   | |
| int | getNumShapes () | 
| int | getNumPaths () | 
| int | getNumPoints () | 
| void | draw (NVGcontext *vg) | 
Static Public Member Functions | |
| static std::shared_ptr< Svg > | load (const std::string &filename) | 
| Loads Svg from a cache.   | |
Public Attributes | |
| NSVGimage * | handle = NULL | 
Scalable Vector Graphics document.
| rack::window::Svg::~Svg | ( | ) | 
| void rack::window::Svg::loadFile | ( | const std::string & | filename | ) | 
Don't call this directly.
Use Svg::load() for caching.
| void rack::window::Svg::loadString | ( | const std::string & | str | ) | 
Loads SVG data from a string.
| math::Vec rack::window::Svg::getSize | ( | ) | 
Returns the SVG page size in pixels.
| int rack::window::Svg::getNumShapes | ( | ) | 
| int rack::window::Svg::getNumPaths | ( | ) | 
| int rack::window::Svg::getNumPoints | ( | ) | 
| void rack::window::Svg::draw | ( | NVGcontext * | vg | ) | 
      
  | 
  static | 
Loads Svg from a cache.
| NSVGimage* rack::window::Svg::handle = NULL |