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 |
---|---|
|
The butt end cap style terminates each segment with a line perpendicular to the tangent at each endpoint. |
|
The round end cap style appends a semicircle with a diameter equal to the line width centered around each endpoint. |
|
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 |
---|---|
|
Draw path is fill. |
|
Draw path is stroke. |
|
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 |
---|---|
|
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. |
|
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. |
|
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