NSVG.Path

Postblit

A postblit is present on this object, but not explicitly documented in the source.

Members

Functions

asCubics
void asCubics(DG dg)

emits cubic beziers. if withMoveTo is false, issue 8-arg commands for cubic beziers (i.e. include starting point). if withMoveTo is true, issue 2-arg command for moveTo, and 6-arg command for cubic beziers.

countCommands
int countCommands()
countCubics
int countCubics()
forEachCommand
void forEachCommand(DG dg)

if synthesizeCloseCommand is true, and the path is closed, this emits line to the first point.

startPoint
bool startPoint(float* dx, float* dy)
startX
float startX()
startY
float startY()

Properties

empty
bool empty [@property getter]

Variables

bounds
float[4] bounds;

Tight bounding box of the shape [minx,miny,maxx,maxy].

closed
bool closed;

Flag indicating if shapes should be treated as closed.

next
NSVG.Path* next;

Pointer to next path, or null if last element.

nsflts
int nsflts;

Total number of floats in stream.

stream
float* stream;

Command, args...; Cubic bezier points: x0,y0, [cpx1,cpx1,cpx2,cpy2,x1,y1], ...

Meta