Dillo v3.1.1-119-g140d9ebd
Loading...
Searching...
No Matches
nanosvg.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  NSVGgradientStop
 
struct  NSVGgradient
 
struct  NSVGpaint
 
struct  NSVGpath
 
struct  NSVGshape
 
struct  NSVGimage
 

Typedefs

typedef struct NSVGgradientStop NSVGgradientStop
 
typedef struct NSVGgradient NSVGgradient
 
typedef struct NSVGpaint NSVGpaint
 
typedef struct NSVGpath NSVGpath
 
typedef struct NSVGshape NSVGshape
 
typedef struct NSVGimage NSVGimage
 

Enumerations

enum  NSVGpaintType {
  NSVG_PAINT_UNDEF = -1 , NSVG_PAINT_NONE = 0 , NSVG_PAINT_COLOR = 1 , NSVG_PAINT_LINEAR_GRADIENT = 2 ,
  NSVG_PAINT_RADIAL_GRADIENT = 3
}
 
enum  NSVGspreadType { NSVG_SPREAD_PAD = 0 , NSVG_SPREAD_REFLECT = 1 , NSVG_SPREAD_REPEAT = 2 }
 
enum  NSVGlineJoin { NSVG_JOIN_MITER = 0 , NSVG_JOIN_ROUND = 1 , NSVG_JOIN_BEVEL = 2 }
 
enum  NSVGlineCap { NSVG_CAP_BUTT = 0 , NSVG_CAP_ROUND = 1 , NSVG_CAP_SQUARE = 2 }
 
enum  NSVGfillRule { NSVG_FILLRULE_NONZERO = 0 , NSVG_FILLRULE_EVENODD = 1 }
 
enum  NSVGflags { NSVG_FLAGS_VISIBLE = 0x01 }
 

Functions

NSVGimagensvgParseFromFile (const char *filename, const char *units, float dpi, unsigned current_color)
 
NSVGimagensvgParse (char *input, const char *units, float dpi, unsigned current_color)
 
NSVGpathnsvgDuplicatePath (NSVGpath *p)
 
void nsvgDelete (NSVGimage *image)
 

Typedef Documentation

◆ NSVGgradient

typedef struct NSVGgradient NSVGgradient

◆ NSVGgradientStop

◆ NSVGimage

typedef struct NSVGimage NSVGimage

◆ NSVGpaint

typedef struct NSVGpaint NSVGpaint

◆ NSVGpath

typedef struct NSVGpath NSVGpath

◆ NSVGshape

typedef struct NSVGshape NSVGshape

Enumeration Type Documentation

◆ NSVGfillRule

Enumerator
NSVG_FILLRULE_NONZERO 
NSVG_FILLRULE_EVENODD 

Definition at line 101 of file nanosvg.h.

◆ NSVGflags

enum NSVGflags
Enumerator
NSVG_FLAGS_VISIBLE 

Definition at line 106 of file nanosvg.h.

◆ NSVGlineCap

Enumerator
NSVG_CAP_BUTT 
NSVG_CAP_ROUND 
NSVG_CAP_SQUARE 

Definition at line 95 of file nanosvg.h.

◆ NSVGlineJoin

Enumerator
NSVG_JOIN_MITER 
NSVG_JOIN_ROUND 
NSVG_JOIN_BEVEL 

Definition at line 89 of file nanosvg.h.

◆ NSVGpaintType

Enumerator
NSVG_PAINT_UNDEF 
NSVG_PAINT_NONE 
NSVG_PAINT_COLOR 
NSVG_PAINT_LINEAR_GRADIENT 
NSVG_PAINT_RADIAL_GRADIENT 

Definition at line 75 of file nanosvg.h.

◆ NSVGspreadType

Enumerator
NSVG_SPREAD_PAD 
NSVG_SPREAD_REFLECT 
NSVG_SPREAD_REPEAT 

Definition at line 83 of file nanosvg.h.

Function Documentation

◆ nsvgDelete()

void nsvgDelete ( NSVGimage image)

◆ nsvgDuplicatePath()

NSVGpath * nsvgDuplicatePath ( NSVGpath p)

◆ nsvgParse()

NSVGimage * nsvgParse ( char *  input,
const char *  units,
float  dpi,
unsigned  current_color 
)

◆ nsvgParseFromFile()

NSVGimage * nsvgParseFromFile ( const char *  filename,
const char *  units,
float  dpi,
unsigned  current_color 
)