Stroke enumerations

This section gives details on stroke enumerations.

vg_lite_cap_style_t enumeration

Defines the style of cap at the end of a stroke (from March 2022).

Used in structure: vg_lite_stroke_t.

Used in function: vg_lite_set_stroke.

vg_lite_cap_style_t values

Description

VG_LITE_CAP_BUTT

The butt end cap style terminates each segment with a line perpendicular to the tangent at each endpoint.

VG_LITE_CAP_ROUND

The round end cap style appends a semicircle with a diameter equal to the line width centered around each endpoint.

VG_LITE_CAP_SQUARE

The square end cap style appends a rectangle with two sides of length equal to the line width perpendicular to the tangent, and two sides of length equal to half the line width parallel to the tangent, at each endpoint.

Parent topic:Stroke enumerations

vg_lite_path_type_t enumeration

Defines the type of draw path (from March 2022).

Used in structure: vg_lite_path_t, vg_lite_stroke_t.

Used in function: vg_lite_set_path_type.

vg_lite_path_type_t string values

Description

VG_LITE_DRAW_FILL_PATH

Draw path is fill.

VG_LITE_DRAW_STROKE_PATH

Draw path is stroke.

VG_LITE_DRAW_FILL_STROKE_PATH

Draw path is both fill and stroke.

Parent topic:Stroke enumerations

vg_lite_join_style_t enumeration

Defines the type of styles available for line joints. (from March 2022)

Used in structure: vg_lite_stroke_t.

Used in function: vg_lite_set_stroke.

vg_lite_join_style_t string values

Description

VG_LITE_JOIN_MITER

The miter join style appends a trapezoid with one vertex at the intersection point of the two original lines, two adjacent vertices at the outer endpoints of the two “thickened” lines and a fourth vertex at the extrapolated intersection point of the outer perimeters of the two “thickened” lines.

VG_LITE_JOIN_ROUND

The round join style appends a wedge-shaped portion of a circle, centered at the intersection point of the two original lines, having a radius equal to half the line width.

VG_LITE_JOIN_BEVEL

The bevel type join style appends a triangle with two vertices at the outer endpoints of the two “thickened” lines and a third vertex at the intersection point of the two original lines.

Parent topic:Stroke enumerations

Parent topic:Stroke operations