From 0f5f43db1e54e8de6bb0858960c9e8129cd791d6 Mon Sep 17 00:00:00 2001 From: Hermet Park Date: Mon, 25 Sep 2023 13:55:32 +0900 Subject: [PATCH] apis: promote beta apis to the official ones. - enum class CompositeMethod::InvLumaMask; - template std::unique_ptr cast(Paint* paint); - template std::unique_ptr cast(Fill* fill); @Issue: https://github.com/thorvg/thorvg/issues/1669 --- inc/thorvg.h | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/inc/thorvg.h b/inc/thorvg.h index fc1e57e9..1b9c2d70 100644 --- a/inc/thorvg.h +++ b/inc/thorvg.h @@ -171,7 +171,7 @@ enum class CompositeMethod AlphaMask, ///< Alpha Masking using the compositing target's pixels as an alpha value. InvAlphaMask, ///< Alpha Masking using the complement to the compositing target's pixels as an alpha value. LumaMask, ///< Alpha Masking using the grayscale (0.2125R + 0.7154G + 0.0721*B) of the compositing target's pixels. @since 0.9 - InvLumaMask, ///< Alpha Masking using the grayscale (0.2125R + 0.7154G + 0.0721*B) of the complement to the compositing target's pixels. @BETA_API + InvLumaMask, ///< Alpha Masking using the grayscale (0.2125R + 0.7154G + 0.0721*B) of the complement to the compositing target's pixels. AddMask, ///< Combines the target and source objects pixels using target alpha. (T * TA) + (S * (255 - TA)) @BETA_API SubtractMask, ///< Subtracts the source color from the target color while considering their respective target alpha. (T * TA) - (S * (255 - TA)) @BETA_API IntersectMask, ///< Computes the result by taking the minimum value between the target alpha and the source alpha and multiplies it with the target color. (T * min(TA, SA)) @BETA_API @@ -1855,8 +1855,7 @@ public: /** * @brief The cast() function is a utility function used to cast a 'Paint' to type 'T'. - * - * @BETA_API + * @since 0.11 */ template std::unique_ptr cast(Paint* paint) @@ -1867,8 +1866,7 @@ std::unique_ptr cast(Paint* paint) /** * @brief The cast() function is a utility function used to cast a 'Fill' to type 'T'. - * - * @BETA_API + * @since 0.11 */ template std::unique_ptr cast(Fill* fill)