VKVG
Vulkan Vector Graphics
View on GitHub
Pattern
vkvg_pattern_add_color_stop
vkvg_pattern_create_for_surface
vkvg_pattern_create_linear
vkvg_pattern_create_radial
vkvg_pattern_destroy
vkvg_pattern_edit_linear
vkvg_pattern_edit_radial
vkvg_pattern_get_color_stop_count
vkvg_pattern_get_color_stop_rgba
vkvg_pattern_get_extend
vkvg_pattern_get_filter
vkvg_pattern_get_linear_points
vkvg_pattern_get_matrix
vkvg_pattern_get_reference_count
vkvg_pattern_get_type
vkvg_pattern_reference
vkvg_pattern_set_extend
vkvg_pattern_set_filter
vkvg_pattern_set_matrix
VkvgPattern
◆
vkvg_pattern_get_linear_points()
vkvg_status_t
vkvg_pattern_get_linear_points
(
VkvgPattern
pat
,
float *
x0
,
float *
y0
,
float *
x1
,
float *
y1
)
If supplied pattern is not a linear gradient,
VKVG_STATUS_PATTERN_TYPE_MISMATCH
is set for pattern.
Parameters
x0
x coordinate of the start point
y0
y coordinate of the start point
x1
x coordinate of the end point
y1
y coordinate of the end point
Returns
VKVG_STATUS_SUCCESS, or VKVG_STATUS_PATTERN_TYPE_MISMATCH if the pattern is not a linear gradient.
Generated by
1.9.1