diff options
| author | Jean-Philippe Bruyère <jp_bruyere@hotmail.com> | 2022-01-05 18:24:47 +0100 |
|---|---|---|
| committer | Jean-Philippe Bruyère <jp_bruyere@hotmail.com> | 2022-01-05 18:24:47 +0100 |
| commit | 720d8e33af0b0862df7c8163533228917e837f8b (patch) | |
| tree | 132123d732a22087ed3d4058bf28feca3712fb6a /include | |
| parent | 13bad923adf6ffba5be990bfd98e2af054270e01 (diff) | |
pattern transform, opacity, debug getarcsteps (abs)
Diffstat (limited to 'include')
| -rw-r--r-- | include/vkvg.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/include/vkvg.h b/include/vkvg.h index c2744b8..0d60d34 100644 --- a/include/vkvg.h +++ b/include/vkvg.h @@ -325,7 +325,7 @@ vkvg_debug_stats_t vkvg_device_reset_stats (VkvgDevice dev); * This is the reference documentation for handling matrices to use as transformation in drawing operations. * Matrix computations in vkvg are taken from the cairo library. * @{ */ -#define VKVG_IDENTITY_MATRIX {1,0,0,1,0,0}/*!< The identity matrix*/ +#define VKVG_IDENTITY_MATRIX (vkvg_matrix_t){1,0,0,1,0,0}/*!< The identity matrix*/ /** * @brief vkvg matrix structure * @@ -1148,6 +1148,10 @@ void vkvg_clip (VkvgContext ctx); */ vkvg_public void vkvg_clip_preserve (VkvgContext ctx); +vkvg_public +void vkvg_set_opacity (VkvgContext ctx, float opacity); +vkvg_public +float vkvg_get_opacity (VkvgContext ctx); /** * @brief Set current source for drawing to the solid color defined by the supplied 32bit integer. * @param ctx a valid vkvg @ref context @@ -1695,6 +1699,11 @@ vkvg_filter_t vkvg_pattern_get_filter (VkvgPattern pat); */ vkvg_public vkvg_pattern_type_t vkvg_pattern_get_type (VkvgPattern pat); +vkvg_public +void vkvg_pattern_set_matrix (VkvgPattern pat, const vkvg_matrix_t* matrix); +vkvg_public +void vkvg_pattern_get_matrix (VkvgPattern pat, vkvg_matrix_t* matrix); + /** @}*/ /********* EXPERIMENTAL **************/ |