sf-svg
Classes | Namespaces | Macros | Typedefs | Functions | Variables
Nanosvg.cpp File Reference

Nanosvg++ implementation. More...

#include "nanosvg.hpp"
Include dependency graph for Nanosvg.cpp:

Classes

struct  nsvg::cstyle::NSVGNamedColor
 

Namespaces

 nsvg
 Nanosvg++ namespace.
 
 nsvg::cstyle
 Completly or partially C-styled code.
 

Macros

#define NSVG_PI   (3.14159265358979323846264338327f)
 
#define NSVG_KAPPA90   (0.5522847493f)
 
#define NSVG_ALIGN_MIN   0
 
#define NSVG_ALIGN_MID   1
 
#define NSVG_ALIGN_MAX   2
 
#define NSVG_ALIGN_NONE   0
 
#define NSVG_ALIGN_MEET   1
 
#define NSVG_ALIGN_SLICE   2
 
#define NSVG_NOTUSED(v)   do { (void)(1 ? (void)0 : ( (void)(v) ) ); } while(0)
 
#define NSVG_RGB(r, g, b)   (((unsigned int)r) | ((unsigned int)g << 8) | ((unsigned int)b << 16))
 
#define NSVG_INLINE   inline
 
#define NSVG_XML_TAG   1
 
#define NSVG_XML_CONTENT   2
 
#define NSVG_XML_MAX_ATTRIBS   256
 
#define NSVG_EPSILON   (1e-12)
 

Typedefs

typedef struct nsvg::cstyle::NSVGNamedColor nsvg::cstyle::NSVGNamedColor
 

Functions

int nsvg::cstyle::nsvg__parseXML (char *input, void(*startelCb)(void *ud, const char *el, const char **attr), void(*endelCb)(void *ud, const char *el), void(*contentCb)(void *ud, const char *s), void *ud)
 
ImageStruct * nsvg::cstyle::parse (char *input, const char *units, float dpi)
 
ImageStruct * nsvg::cstyle::parseFromFile (const char *filename, const char *units, float dpi)
 
void nsvg::cstyle::deleteImage (ImageStruct *image)
 

Variables

NSVGNamedColor nsvg::cstyle::nsvg__colors []
 

Detailed Description

Nanosvg++ implementation.