From 8d82bdefb37407433cd9944ec2c6831a585f70fe Mon Sep 17 00:00:00 2001 From: seungho baek Date: Mon, 22 May 2023 14:17:51 +0900 Subject: [PATCH 1/1] Add comment for gradient visual Change-Id: I41b226479eaef61cff387c81d4532664ec961bce Signed-off-by: seungho baek --- dali-toolkit/public-api/visuals/gradient-visual-properties.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/dali-toolkit/public-api/visuals/gradient-visual-properties.h b/dali-toolkit/public-api/visuals/gradient-visual-properties.h index 8bf083c..5e2c6bf 100644 --- a/dali-toolkit/public-api/visuals/gradient-visual-properties.h +++ b/dali-toolkit/public-api/visuals/gradient-visual-properties.h @@ -51,6 +51,10 @@ enum /** * @brief The start position of a linear gradient. * @details Name "startPosition", type Property::VECTOR2. + * Gradient is drawn in a rectangular area, TopLeft is (-0.5, -0.5) and BottomRight is (0.5, 0.5). + * The outside of the entered Start Position and End Position is extended to the value of the border. + * Even if the range between Start Position and End Position is greater than (-0.5, -0.5) to (0.5, 0.5), + * only the corresponding area is drawn. * @SINCE_1_1.45 * @note Mandatory for Linear. */ @@ -59,6 +63,10 @@ enum /** * @brief The end position of a linear gradient. * @details Name "endPosition", type Property::VECTOR2. + * Gradient is drawn in a rectangular area, TopLeft is (-0.5, -0.5) and BottomRight is (0.5, 0.5). + * The outside of the entered Start Position and End Position is extended to the value of the border. + * Even if the range between Start Position and End Position is greater than (-0.5, -0.5) to (0.5, 0.5), + * only the corresponding area is drawn. * @SINCE_1_1.45 * @note Mandatory for Linear. */ -- 2.7.4