Cinder  0.9.1
Classes | Typedefs | Enumerations | Functions
cinder::svg Namespace Reference

Classes

class  Circle
 
class  Doc
 
class  Ellipse
 
class  Exc
 
class  ExcChildNotFound
 
class  FloatParseExc
 
class  Gradient
 
class  Group
 
class  Image
 
class  Line
 
class  LinearGradient
 
class  Node
 
class  Paint
 
class  Path
 
class  PathParseExc
 
class  Polygon
 
class  Polyline
 
class  RadialGradient
 
class  Rect
 
class  Renderer
 
class  Style
 
class  Text
 
class  TextSpan
 
class  TransformParseExc
 
class  Use
 
class  Value
 
class  ValueExc
 

Typedefs

typedef std::function< bool(const Node &, svg::Style *)> RenderVisitor
 
typedef std::shared_ptr< TextSpanTextSpanRef
 
typedef std::shared_ptr< DocDocRef
 

Enumerations

enum  FillRule { FILL_RULE_NONZERO, FILL_RULE_EVENODD }
 
enum  LineCap { LINE_CAP_BUTT, LINE_CAP_ROUND, LINE_CAP_SQUARE }
 
enum  LineJoin { LINE_JOIN_MITER, LINE_JOIN_ROUND, LINE_JOIN_BEVEL }
 
enum  FontWeight {
  WEIGHT_100, WEIGHT_200, WEIGHT_300, WEIGHT_400,
  WEIGHT_NORMAL = WEIGHT_400, WEIGHT_500, WEIGHT_600, WEIGHT_700,
  WEIGHT_BOLD = WEIGHT_700, WEIGHT_800, WEIGHT_900
}
 

Functions

void ellipticalArc (Shape2d &path, float x1, float y1, float x2, float y2, float rx, float ry, float xAxisRotation, bool largeArcFlag, bool sweepFlag)
 
char readNextCommand (const char **sInOut)
 
bool readFlag (const char **sInOut)
 
bool nextItemIsFloat (const char *s)
 
Shape2d parsePath (const std::string &p)
 
vector< vec2 > parsePointList (const std::string &p)
 

Typedef Documentation

typedef std::function<bool(const Node&, svg::Style *)> cinder::svg::RenderVisitor
typedef std::shared_ptr<TextSpan> cinder::svg::TextSpanRef
typedef std::shared_ptr<Doc> cinder::svg::DocRef

Enumeration Type Documentation

Enumerator
FILL_RULE_NONZERO 
FILL_RULE_EVENODD 
Enumerator
LINE_CAP_BUTT 
LINE_CAP_ROUND 
LINE_CAP_SQUARE 
Enumerator
LINE_JOIN_MITER 
LINE_JOIN_ROUND 
LINE_JOIN_BEVEL 
Enumerator
WEIGHT_100 
WEIGHT_200 
WEIGHT_300 
WEIGHT_400 
WEIGHT_NORMAL 
WEIGHT_500 
WEIGHT_600 
WEIGHT_700 
WEIGHT_BOLD 
WEIGHT_800 
WEIGHT_900 

Function Documentation

void cinder::svg::ellipticalArc ( Shape2d path,
float  x1,
float  y1,
float  x2,
float  y2,
float  rx,
float  ry,
float  xAxisRotation,
bool  largeArcFlag,
bool  sweepFlag 
)
char cinder::svg::readNextCommand ( const char **  sInOut)
bool cinder::svg::readFlag ( const char **  sInOut)
bool cinder::svg::nextItemIsFloat ( const char *  s)
Shape2d cinder::svg::parsePath ( const std::string &  p)
vector<vec2> cinder::svg::parsePointList ( const std::string &  p)