The OpenD Programming Language

NSVG.Shape

Postblit

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

Members

Functions

forEachPath
void forEachPath(DG dg)

delegate can accept: NSVG.Path* const(NSVG.Path)* ref NSVG.Path in ref NSVG.Path delegate can return: void bool (true means stop)

Variables

bounds
float[4] bounds;

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

fill
NSVG.Paint fill;

Fill paint

fillRule
FillRule fillRule;

Fill rule, see FillRule.

flags
ubyte flags;

Logical or of NSVG_FLAGS_* flags

id
char[64] id;

Optional 'id' attr of the shape or its group

miterLimit
float miterLimit;

Miter limit

next
NSVG.Shape* next;

Pointer to next shape, or null if last element.

opacity
float opacity;

Opacity of the shape.

paths
NSVG.Path* paths;

Linked list of paths in the image.

stroke
NSVG.Paint stroke;

Stroke paint

strokeDashArray
float[8] strokeDashArray;

Stroke dash array (scaled).

strokeDashCount
byte strokeDashCount;

Number of dash values in dash array.

strokeDashOffset
float strokeDashOffset;

Stroke dash offset (scaled).

strokeLineCap
LineCap strokeLineCap;

Stroke cap type.

strokeLineJoin
LineJoin strokeLineJoin;

Stroke join type.

strokeWidth
float strokeWidth;

Stroke width (scaled).

Meta