mirror of
https://github.com/thorvg/thorvg.git
synced 2025-07-25 23:59:12 +00:00
capi: api sync up.
added beta apis: - enum Tvg_Composite_Method::TVG_COMPOSITE_METHOD_INVERSE_LUMA_MASK; promote apis: - TVG_API Tvg_Result tvg_shape_set_stroke_miterlimit(Tvg_Paint* paint, float miterlimit); - TVG_API Tvg_Result tvg_shape_get_stroke_miterlimit(const Tvg_Paint* paint, float* miterlimit); @Issue: https://github.com/thorvg/thorvg/issues/1669
This commit is contained in:
parent
0f5f43db1e
commit
ac82234360
1 changed files with 8 additions and 3 deletions
|
@ -137,7 +137,8 @@ typedef enum {
|
|||
TVG_COMPOSITE_METHOD_CLIP_PATH, ///< The intersection of the source and the target is determined and only the resulting pixels from the source are rendered.
|
||||
TVG_COMPOSITE_METHOD_ALPHA_MASK, ///< The pixels of the source and the target are alpha blended. As a result, only the part of the source, which intersects with the target is visible.
|
||||
TVG_COMPOSITE_METHOD_INVERSE_ALPHA_MASK, ///< The pixels of the source and the complement to the target's pixels are alpha blended. As a result, only the part of the source which is not covered by the target is visible.
|
||||
TVG_COMPOSITE_METHOD_LUMA_MASK ///< The source pixels are converted to grayscale (luma value) and alpha blended with the target. As a result, only the part of the source which intersects with the target is visible. \since 0.9
|
||||
TVG_COMPOSITE_METHOD_LUMA_MASK, ///< The source pixels are converted to grayscale (luma value) and alpha blended with the target. As a result, only the part of the source which intersects with the target is visible. \since 0.9
|
||||
TVG_COMPOSITE_METHOD_INVERSE_LUMA_MASK ///< The source pixels are converted to grayscale (luma value) and complement to the target's pixels are alpha blended. As a result, only the part of the source which is not covered by the target is visible. \BETA_API
|
||||
} Tvg_Composite_Method;
|
||||
|
||||
|
||||
|
@ -1417,7 +1418,7 @@ TVG_API Tvg_Result tvg_shape_get_stroke_join(const Tvg_Paint* paint, Tvg_Stroke_
|
|||
|
||||
|
||||
/*!
|
||||
* \brief Sets the stroke miterlimit. (BETA_API)
|
||||
* \brief Sets the stroke miterlimit.
|
||||
*
|
||||
* \param[in] paint A Tvg_Paint pointer to the shape object.
|
||||
* \param[in] miterlimit The miterlimit imposes a limit on the extent of the stroke join when the @c TVG_STROKE_JOIN_MITER join style is set. The default value is 4.
|
||||
|
@ -1427,12 +1428,14 @@ TVG_API Tvg_Result tvg_shape_get_stroke_join(const Tvg_Paint* paint, Tvg_Stroke_
|
|||
* \retval TVG_RESULT_INVALID_ARGUMENT An invalid Tvg_Paint pointer.
|
||||
* \retval TVG_RESULT_NOT_SUPPORTED Unsupported value.
|
||||
* \retval TVG_RESULT_FAILED_ALLOCATION An internal error with a memory allocation.
|
||||
*
|
||||
* \since 0.11
|
||||
*/
|
||||
TVG_API Tvg_Result tvg_shape_set_stroke_miterlimit(Tvg_Paint* paint, float miterlimit);
|
||||
|
||||
|
||||
/*!
|
||||
* \brief The function gets the stroke miterlimit. (BETA_API)
|
||||
* \brief The function gets the stroke miterlimit.
|
||||
*
|
||||
* \param[in] paint A Tvg_Paint pointer to the shape object.
|
||||
* \param[out] miterlimit The stroke miterlimit.
|
||||
|
@ -1440,6 +1443,8 @@ TVG_API Tvg_Result tvg_shape_set_stroke_miterlimit(Tvg_Paint* paint, float miter
|
|||
* \return Tvg_Result enumeration.
|
||||
* \retval TVG_RESULT_SUCCESS Succeed.
|
||||
* \retval TVG_RESULT_INVALID_ARGUMENT An invalid pointer passed as an argument.
|
||||
*
|
||||
* \since 0.11
|
||||
*/
|
||||
TVG_API Tvg_Result tvg_shape_get_stroke_miterlimit(const Tvg_Paint* paint, float* miterlimit);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue