62void svgDraw(NVGcontext* vg, NSVGimage* svg);
#define DEPRECATED
Attribute for deprecated functions and symbols.
Definition common.hpp:26
const char * filename
Definition logger.hpp:41
void svgDraw(NVGcontext *vg, NSVGimage *svg)
float mm2px(float mm)
Converts millimeter measurements to pixels.
Definition Svg.hpp:30
float in2px(float in)
Converts inch measurements to pixels.
Definition Svg.hpp:21
DEPRECATED typedef Svg SVG
Definition Svg.hpp:59
static const float MM_PER_IN
Definition Svg.hpp:17
static const float SVG_DPI
Arbitrary DPI, standardized for Rack.
Definition Svg.hpp:16
Root namespace for the Rack API.
Definition AudioDisplay.hpp:9
2-dimensional vector of floats, representing a point on the plane for graphics.
Definition math.hpp:189
Vec mult(float s) const
Definition math.hpp:215
Scalable Vector Graphics document.
Definition Svg.hpp:40
void draw(NVGcontext *vg)
void loadString(const std::string &str)
Loads SVG data from a string.
NSVGimage * handle
Definition Svg.hpp:41
static std::shared_ptr< Svg > load(const std::string &filename)
Loads Svg from a cache.
math::Vec getSize()
Returns the SVG page size in pixels.
void loadFile(const std::string &filename)
Don't call this directly.