[NUI] Fix several compile warning and error
authorEunki, Hong <eunkiki.hong@samsung.com>
Fri, 16 May 2025 01:10:24 +0000 (10:10 +0900)
committerEunki Hong <h.pichulia@gmail.com>
Fri, 16 May 2025 01:36:34 +0000 (10:36 +0900)
- AlphaFunctionSpringType was not in Tizen.NUI namespace
- InnerShadow.Clone() defined twice. Make it as internal virtual function

Signed-off-by: Eunki, Hong <eunkiki.hong@samsung.com>
src/Tizen.NUI/src/public/Animation/AlphaFunctionSpringType.cs
src/Tizen.NUI/src/public/ViewProperty/InnerShadow.cs
src/Tizen.NUI/src/public/ViewProperty/Shadow.cs

index 2f592f0f9ce22f7f9c1bbfd745b818ebd981fc5d..ecdf2d72e07c74abe862d0f92b4b4004608a732f 100644 (file)
 
 using System.ComponentModel;
 
-/// <summary>
-/// Enumeration for predefined spring animation types.
-/// This presets are based on typical spring behavior tuned for different motion effects.
-/// </summary>
-[EditorBrowsable(EditorBrowsableState.Never)]
-public enum AlphaFunctionSpringType
+namespace Tizen.NUI
 {
     /// <summary>
-    /// 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.
     /// </summary>
     [EditorBrowsable(EditorBrowsableState.Never)]
-    Gentle,
+    public enum AlphaFunctionSpringType
+    {
+        /// <summary>
+        /// Gentle spring. slower and smoother motion with less oscillation.
+        /// </summary>
+        [EditorBrowsable(EditorBrowsableState.Never)]
+        Gentle,
 
-    /// <summary>
-    /// Quick spring, Fast settling animation with minimal overshoot.
-    /// </summary>
-    [EditorBrowsable(EditorBrowsableState.Never)]
-    Quick,
+        /// <summary>
+        /// Quick spring, Fast settling animation with minimal overshoot.
+        /// </summary>
+        [EditorBrowsable(EditorBrowsableState.Never)]
+        Quick,
 
-    /// <summary>
-    /// Bouncy spring. Highly elastic and oscillatory animation.
-    /// </summary>
-    [EditorBrowsable(EditorBrowsableState.Never)]
-    Bouncy,
+        /// <summary>
+        /// Bouncy spring. Highly elastic and oscillatory animation.
+        /// </summary>
+        [EditorBrowsable(EditorBrowsableState.Never)]
+        Bouncy,
 
-    /// <summary>
-    /// Slow spring. Smooth and relaxed motion with longer settling.
-    /// </summary>
-    [EditorBrowsable(EditorBrowsableState.Never)]
-    Slow
+        /// <summary>
+        /// Slow spring. Smooth and relaxed motion with longer settling.
+        /// </summary>
+        [EditorBrowsable(EditorBrowsableState.Never)]
+        Slow
+    }
 }
\ No newline at end of file
index 6413803eca9046865ecf73fa316698a814de8e70..2a959da8086f768f5ff32e5ff8ec82def58608c5 100755 (executable)
@@ -115,10 +115,6 @@ namespace Tizen.NUI
             }
         }
 
-        /// <inheritdoc/>
-        [EditorBrowsable(EditorBrowsableState.Never)]
-        public object Clone() => new InnerShadow(this);
-
         /// <inheritdoc/>
         [EditorBrowsable(EditorBrowsableState.Never)]
         protected override PropertyMap GetPropertyMap()
@@ -135,6 +131,11 @@ namespace Tizen.NUI
             return map;
         }
 
+        internal override object OnClone()
+        {
+            return new InnerShadow(this);
+        }
+
         /// <summary>
         /// The width of shadow, which internally calculated by extents.
         /// This value only be used when we want to copy the internal shadow.
index a9a64c6180c0018abbdc2c9ac857052e2d41620a..42dba518a6ac8802ee0d2bbe3e8057aa4f4f8c57 100755 (executable)
@@ -168,7 +168,15 @@ namespace Tizen.NUI
 
         /// <inheritdoc/>
         [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()
         {