Stroke structures
This section gives details on stroke structures.
vg_lite_path_t
structure
Defined under Vector Path Structures - vg_lite_path_t structure.
(additional members added for stroke from March 2022)
Parent topic:Stroke structures
vg_lite_path_list_t
structure
The structure vg_lite_path_list_ptr
points to the vg_lite_path_list
structure that provides divided path data according to MOVE/MOVE_REL.
(from Aug 2023)
Used (vg_lite_path_list_ptr
) in structures: vg_lite_stroke_t.
vg_lite_path_list_t members |
Type |
Description |
---|---|---|
path_points |
vg_lite_path_point_ptr |
|
path_end |
vg_lite_path_point_ptr |
|
point_count |
vg_lite_uint32_t |
|
next |
vg_lite_path_list_ptr |
|
closed |
vg_lite_uint8_t |
Parent topic:Stroke structures
vg_lite_path_point_t
structure
The structure vg_lite_path_point_ptr
points to the vg_lite_path_point
structure which provides path detail (from March 2022)
Used (vg_lite_path_point_ptr
) in structures: vg_lite_path_point_t, vg_lite_stroke_conversion. vg_lite_sub_path_t.
vg_lite_path_point_t members |
Type |
Description |
---|---|---|
|
|
X coordinate |
|
|
Y coordinate |
|
|
Flatten flag for flattened path |
|
|
Curve type for the stroke path |
|
|
X tangent (Note: #define centerX tangent) |
|
|
Y tangent (Note: #define centerX tangent) |
|
|
Line length |
|
|
Pointer to the previous point node |
Parent topic:Stroke structures
vg_lite_stroke_t
structure
The structure provides stroke parameters and pointers to temp storage for a stroke sub path. Refer to the function vg_lite_set_stroke
parameter descriptions for additional description for some members. (from March 2022)
Used in structure: vg_lite_path_t.
vg_lite_stroke_t members |
Type |
Description |
---|---|---|
|
|
Stroke cap style |
|
|
Stroke joint style |
|
|
Stroke line width |
|
|
Stroke miter limit |
|
|
Pointer to stroke dash pattern |
|
|
Number of dash pattern repetitions |
|
|
Stroke dash phrase |
|
|
Stroke dash initial length |
|
|
Stroke dash initial index |
|
|
Half line width |
|
|
Total length of stroke dash patterns. |
|
|
For fast checking |
|
|
Temp storage for stroke sub path |
|
|
Temp storage for stroke sub path |
|
|
Temp storage for stroke sub path |
|
|
Temp storage for stroke sub path |
|
|
Temp storage for stroke sub path |
|
|
Temp storage for stroke sub path |
|
|
Temp storage for stroke sub path |
|
|
Temp storage for stroke sub path |
|
|
Divide stroke path according to move or move_rel for avoiding implicit closure. (from Aug 2023) |
|
|
Pointer to current divided path data. (from Aug 2023) |
|
|
Flag that adds end_path in driver (from Aug 2023) |
|
|
(from Aug 2023) |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
The stroke line is a fat line. |
|
|
Parent topic:Stroke structures
vg_lite_sub_path_t
structure
The structure vg_lite_sub_path_ptr
points to the vg_lite_sub_path
structure that provides sub path detail and a pointer to the next sub path. (from March 2022)
Used in structure: vg_lite_stroke_conversion.
vg_lite_path_point_t members |
Type |
Description |
---|---|---|
next |
vg_lite_sub_path_ptr |
Pointer to the next sub path |
point_count |
vg_lite_uint32_t |
Number of points in the sub path |
point_list |
vg_lite_path_point_ptr |
Pointer to the point list. |
end_point |
vg_lite_path_point_ptr |
Pointer to the last point. |
closed |
vg_lite_uint8_t |
Indicates whether or not the path is closed. |
length |
vg_lite_float_t |
Length of the sub path. |
Parent topic:Stroke structures
Parent topic:Stroke operations