sf-svg
Namespaces | Classes | Enumerations
nsvg Namespace Reference

Nanosvg++ namespace. More...

Namespaces

 cstyle
 Completly or partially C-styled code.
 

Classes

struct  CubicPointSet
 Point set of Bezier Cubic Curve. More...
 
class  Image
 C++-styled cstyle::ImageStruct wrapper. More...
 
class  Path
 C++-styled cstyle::PathStruct wrapper. More...
 
class  PathVector
 Vector of paths. More...
 
class  Rasterizer
 C++-styled cstyle::RasterizerStruct wrapper. More...
 
class  Shape
 C++-styled cstyle::ShapeStruct wrapper. More...
 
class  ShapeVector
 Vector of shapes. More...
 

Enumerations

enum  PaintType { NONE = 0, COLOR = 1, LINEAR_GRADIENT = 2, RADIAL_GRADIENT = 3 }
 
enum  SpreadType { PAD = 0, REFLECT = 1, REPEAT = 2 }
 
enum  LineJoin { MITER = 0, ROUND = 1, BEVEL = 2 }
 
enum  LineCap { BUTT = 0, ROUND = 1, SQUARE = 2 }
 
enum  FillRule { NONZERO = 0, EVENODD = 1 }
 
enum  Flags { NSVG_FLAGS_VISIBLE = 0x01, INVISIBLE = 0x00 }
 
enum  GradientUnits { USER_SPACE = 0, OBJECT_SPACE = 1 }
 
enum  Units {
  Units::UNITS_USER, Units::UNITS_PX, Units::UNITS_PT, Units::UNITS_PC,
  Units::UNITS_MM, Units::UNITS_CM, Units::UNITS_IN, Units::UNITS_PERCENT,
  Units::UNITS_EM, Units::UNITS_EX
}
 Available units. More...
 

Detailed Description

Nanosvg++ namespace.

Enumeration Type Documentation

◆ Units

enum nsvg::Units
strong

Available units.

Enumerator
UNITS_USER 

Unknown unit.

UNITS_PX 

Pixels (Relative to the viewing device)

UNITS_PT 

Point (1/72th of an inch).

UNITS_PC 

Pica (12 points).

UNITS_MM 

Milimetre.

UNITS_CM 

Centimetre.

UNITS_IN 

Inch.

UNITS_PERCENT 

Percent.

UNITS_EM 

Used for fonts.

UNITS_EX 

X-height of the element.