VKVG
Vulkan Vector Graphics
|
A Pattern is a special source for drawing operations that can be an image, a gradient and which may have special configuration for filtering and border repeat.
Typedefs | |
typedef struct _vkvg_pattern_t * | VkvgPattern |
Opaque pointer on a Vkvg pattern structure. More... | |
Functions | |
VkvgPattern | vkvg_pattern_reference (VkvgPattern pat) |
add reference More... | |
uint32_t | vkvg_pattern_get_reference_count (VkvgPattern pat) |
get reference count More... | |
VkvgPattern | vkvg_pattern_create_for_surface (VkvgSurface surf) |
create a surface pattern More... | |
VkvgPattern | vkvg_pattern_create_linear (float x0, float y0, float x1, float y1) |
create a new linear gradient. More... | |
vkvg_status_t | vkvg_pattern_edit_linear (VkvgPattern pat, float x0, float y0, float x1, float y1) |
edit an existing linear gradient. More... | |
vkvg_status_t | vkvg_pattern_get_linear_points (VkvgPattern pat, float *x0, float *y0, float *x1, float *y1) |
get the gradient end points for a linear gradient More... | |
VkvgPattern | vkvg_pattern_create_radial (float cx0, float cy0, float radius0, float cx1, float cy1, float radius1) |
create a new radial gradient. More... | |
vkvg_status_t | vkvg_pattern_edit_radial (VkvgPattern pat, float cx0, float cy0, float radius0, float cx1, float cy1, float radius1) |
edit an existing radial gradient. More... | |
vkvg_status_t | vkvg_pattern_get_color_stop_count (VkvgPattern pat, uint32_t *count) |
get color stop count. More... | |
vkvg_status_t | vkvg_pattern_get_color_stop_rgba (VkvgPattern pat, uint32_t index, float *offset, float *r, float *g, float *b, float *a) |
get color stop. More... | |
void | vkvg_pattern_destroy (VkvgPattern pat) |
dispose pattern. More... | |
vkvg_status_t | vkvg_pattern_add_color_stop (VkvgPattern pat, float offset, float r, float g, float b, float a) |
add colors to gradients More... | |
void | vkvg_pattern_set_extend (VkvgPattern pat, vkvg_extend_t extend) |
control the extend of the pattern More... | |
void | vkvg_pattern_set_filter (VkvgPattern pat, vkvg_filter_t filter) |
control the filtering when using this pattern on a surface. More... | |
vkvg_extend_t | vkvg_pattern_get_extend (VkvgPattern pat) |
query the current extend value for a pa More... | |
vkvg_filter_t | vkvg_pattern_get_filter (VkvgPattern pat) |
vkvg_pattern_type_t | vkvg_pattern_get_type (VkvgPattern pat) |
get pattern type More... | |
void | vkvg_pattern_set_matrix (VkvgPattern pat, const vkvg_matrix_t *matrix) |
void | vkvg_pattern_get_matrix (VkvgPattern pat, vkvg_matrix_t *matrix) |