From: Eunki, Hong Date: Fri, 16 May 2025 01:10:24 +0000 (+0900) Subject: [NUI] Fix several compile warning and error X-Git-Tag: submit/tizen/20250516.014004~1^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4d26d054d9f488d024f3736676358b982f17e1f4;p=platform%2Fcore%2Fcsapi%2Ftizenfx.git [NUI] Fix several compile warning and error - AlphaFunctionSpringType was not in Tizen.NUI namespace - InnerShadow.Clone() defined twice. Make it as internal virtual function Signed-off-by: Eunki, Hong --- diff --git a/src/Tizen.NUI/src/public/Animation/AlphaFunctionSpringType.cs b/src/Tizen.NUI/src/public/Animation/AlphaFunctionSpringType.cs index 2f592f0f9..ecdf2d72e 100644 --- a/src/Tizen.NUI/src/public/Animation/AlphaFunctionSpringType.cs +++ b/src/Tizen.NUI/src/public/Animation/AlphaFunctionSpringType.cs @@ -17,34 +17,37 @@ using System.ComponentModel; -/// -/// Enumeration for predefined spring animation types. -/// This presets are based on typical spring behavior tuned for different motion effects. -/// -[EditorBrowsable(EditorBrowsableState.Never)] -public enum AlphaFunctionSpringType +namespace Tizen.NUI { /// - /// Gentle spring. slower and smoother motion with less oscillation. + /// Enumeration for predefined spring animation types. + /// This presets are based on typical spring behavior tuned for different motion effects. /// [EditorBrowsable(EditorBrowsableState.Never)] - Gentle, + public enum AlphaFunctionSpringType + { + /// + /// Gentle spring. slower and smoother motion with less oscillation. + /// + [EditorBrowsable(EditorBrowsableState.Never)] + Gentle, - /// - /// Quick spring, Fast settling animation with minimal overshoot. - /// - [EditorBrowsable(EditorBrowsableState.Never)] - Quick, + /// + /// Quick spring, Fast settling animation with minimal overshoot. + /// + [EditorBrowsable(EditorBrowsableState.Never)] + Quick, - /// - /// Bouncy spring. Highly elastic and oscillatory animation. - /// - [EditorBrowsable(EditorBrowsableState.Never)] - Bouncy, + /// + /// Bouncy spring. Highly elastic and oscillatory animation. + /// + [EditorBrowsable(EditorBrowsableState.Never)] + Bouncy, - /// - /// Slow spring. Smooth and relaxed motion with longer settling. - /// - [EditorBrowsable(EditorBrowsableState.Never)] - Slow + /// + /// Slow spring. Smooth and relaxed motion with longer settling. + /// + [EditorBrowsable(EditorBrowsableState.Never)] + Slow + } } \ No newline at end of file diff --git a/src/Tizen.NUI/src/public/ViewProperty/InnerShadow.cs b/src/Tizen.NUI/src/public/ViewProperty/InnerShadow.cs index 6413803ec..2a959da80 100755 --- a/src/Tizen.NUI/src/public/ViewProperty/InnerShadow.cs +++ b/src/Tizen.NUI/src/public/ViewProperty/InnerShadow.cs @@ -115,10 +115,6 @@ namespace Tizen.NUI } } - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public object Clone() => new InnerShadow(this); - /// [EditorBrowsable(EditorBrowsableState.Never)] protected override PropertyMap GetPropertyMap() @@ -135,6 +131,11 @@ namespace Tizen.NUI return map; } + internal override object OnClone() + { + return new InnerShadow(this); + } + /// /// The width of shadow, which internally calculated by extents. /// This value only be used when we want to copy the internal shadow. diff --git a/src/Tizen.NUI/src/public/ViewProperty/Shadow.cs b/src/Tizen.NUI/src/public/ViewProperty/Shadow.cs index a9a64c618..42dba518a 100755 --- a/src/Tizen.NUI/src/public/ViewProperty/Shadow.cs +++ b/src/Tizen.NUI/src/public/ViewProperty/Shadow.cs @@ -168,7 +168,15 @@ namespace Tizen.NUI /// [EditorBrowsable(EditorBrowsableState.Never)] - public object Clone() => new Shadow(this); + public object Clone() + { + return OnClone(); + } + + internal virtual object OnClone() + { + return new Shadow(this); + } internal override bool IsEmpty() {