sf-svg
Classes | Typedefs | Enumerations | Functions | Variables
nsvg::cstyle Namespace Reference

Completly or partially C-styled code. More...

Classes

struct  ActiveEdge
 
struct  Attrib
 
struct  CachedPaint
 
struct  Coordinate
 
struct  Edge
 
struct  Gradient
 
struct  GradientData
 
struct  GradientStop
 
struct  ImageStruct
 
struct  LinearData
 
struct  MemPage
 
struct  NSVGNamedColor
 
struct  Paint
 
struct  Parser
 
struct  PathStruct
 
struct  Point
 
struct  RadialData
 
struct  RasterizerStruct
 
struct  ShapeStruct
 

Typedefs

typedef struct nsvg::cstyle::NSVGNamedColor NSVGNamedColor
 

Enumerations

enum  NSVGpointFlags { NSVG_PT_CORNER = 0x01, NSVG_PT_BEVEL = 0x02, NSVG_PT_LEFT = 0x04 }
 

Functions

int 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)
 
ImageStructparse (char *input, const char *units, float dpi)
 
ImageStructparseFromFile (const char *filename, const char *units, float dpi)
 
void deleteImage (ImageStruct *image)
 
RasterizerStructcreateRasterizer ()
 
void deleteRasterizer (RasterizerStruct *r)
 
void rasterize (RasterizerStruct *r, ImageStruct *image, float tx, float ty, float scale, unsigned char *dst, int w, int h, int stride)
 

Variables

NSVGNamedColor nsvg__colors []
 

Detailed Description

Completly or partially C-styled code.

All C-styled code is stored in another namespace to avoid using it non-necessarily. That code will be slowly replaced with object orientated one to provide fully-functional, C++-styled SVG library.