[Tizen] Animatable TextColor Property for TextLabel
authorAgnelo Vaz <agnelo.vaz@samsung.com>
Fri, 28 Jul 2017 09:53:26 +0000 (10:53 +0100)
committerdongsug.song <dongsug.song@samsung.com>
Tue, 1 Aug 2017 15:08:33 +0000 (00:08 +0900)
Conflicts:
Tizen.NUI/src/public/BaseComponents/TextLabel.cs

Change-Id: I593c4621a177feeaffbc71ab551d94a75164515c

src/Tizen.NUI/src/internal/NDalicPINVOKE.cs
src/Tizen.NUI/src/public/BaseComponents/TextLabel.cs

index 6e3640e21aabdc661fe7629d6f4cc0b0682ab449..193997404e5088ac4aecfae1a98a4dd6ebfae980 100755 (executable)
@@ -9281,6 +9281,9 @@ class NDalicPINVOKE {
   [global::System.Runtime.InteropServices.DllImport("libdali-csharp-binder.so", EntryPoint="CSharp_Dali_TextLabel_Property_TEXT_COLOR_get")]
   public static extern int TextLabel_Property_TEXT_COLOR_get();
 
+  [global::System.Runtime.InteropServices.DllImport("libdali-csharp-binder.so", EntryPoint="CSharp_Dali_TextLabel_Property_TEXT_COLOR_ANIMATABLE_get")]
+  public static extern int TextLabel_Property_TEXT_COLOR_ANIMATABLE_get();
+
   [global::System.Runtime.InteropServices.DllImport("libdali-csharp-binder.so", EntryPoint="CSharp_Dali_TextLabel_Property_SHADOW_OFFSET_get")]
   public static extern int TextLabel_Property_SHADOW_OFFSET_get();
 
index ac37acf72ce79980289ff985d0d91d8e93460b4a..7390f4f127d901a55d8bfd5aa1ebfc73d2100df2 100755 (executable)
@@ -103,6 +103,8 @@ namespace Tizen.NUI.BaseComponents
             internal static readonly int AUTO_SCROLL_LOOP_DELAY = NDalicManualPINVOKE.TextLabel_Property_AUTO_SCROLL_LOOP_DELAY_get();
             internal static readonly int LINE_COUNT = NDalicManualPINVOKE.TextLabel_Property_LINE_COUNT_get();
             internal static readonly int LINE_WRAP_MODE = NDalicManualPINVOKE.TextLabel_Property_LINE_WRAP_MODE_get();
+            internal static readonly int TEXT_COLOR_ANIMATABLE = NDalicPINVOKE.TextLabel_Property_TEXT_COLOR_ANIMATABLE_get();
+
         }
 
         /// <summary>
@@ -133,6 +135,7 @@ namespace Tizen.NUI.BaseComponents
         public new static TextLabel DownCast(BaseHandle handle)
         {
             TextLabel ret =  Registry.GetManagedBaseHandleFromNativePtr(handle) as TextLabel;
+
             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
             return ret;
         }
@@ -765,5 +768,24 @@ namespace Tizen.NUI.BaseComponents
             }
         }
 
+        /// TextColorAnimatable property.<br>
+        /// The color of the text that can be animatated.<br>
+        /// Animation framework can be used to change the color of the text when not using mark up.<br>
+        /// Not possible when text is auto scrolling. <br>
+        /// </summary>
+        public Color TextColorAnimatable
+        {
+            get
+            {
+                Color animatableColor = new Color(0.0f, 0.0f, 0.0f, 0.0f);
+                GetProperty(TextLabel.Property.TEXT_COLOR_ANIMATABLE).Get(animatableColor);
+                return animatableColor;
+            }
+            set
+            {
+                SetProperty(TextLabel.Property.TEXT_COLOR_ANIMATABLE, new Tizen.NUI.PropertyValue(value));
+            }
+        }
+
     }
 }