TextLabel devel properties manual binding for auto scroll animation 49/128849/3
authorJinho, Lee <jeano.lee@samsung.com>
Thu, 11 May 2017 15:46:57 +0000 (00:46 +0900)
committerxb.teng <xb.teng@samsung.com>
Wed, 17 May 2017 07:59:03 +0000 (15:59 +0800)
Change-Id: I5366d48a5009b964e3e31f5157c84e25d0a49514

Tizen.NUI/src/internal/ManualPINVOKE.cs
Tizen.NUI/src/public/BaseComponents/TextLabel.cs [changed mode: 0644->0755]

index f2fcee0..56da23b 100644 (file)
@@ -578,7 +578,11 @@ namespace Tizen.NUI
         [global::System.Runtime.InteropServices.DllImport("libdali-csharp-binder.so", EntryPoint="CSharp_TextLabel_Property_ELLIPSIS_get")]
         public static extern int TextLabel_Property_ELLIPSIS_get();
 
+        [global::System.Runtime.InteropServices.DllImport("libdali-csharp-binder.so", EntryPoint = "CSharp_TextLabel_Property_AUTO_SCROLL_STOP_MODE_get")]
+        public static extern int TextLabel_Property_AUTO_SCROLL_STOP_MODE_get();
 
+        [global::System.Runtime.InteropServices.DllImport("libdali-csharp-binder.so", EntryPoint = "CSharp_TextLabel_Property_AUTO_SCROLL_LOOP_DELAY_get")]
+        public static extern int TextLabel_Property_AUTO_SCROLL_LOOP_DELAY_get();
 
     }
 }
old mode 100644 (file)
new mode 100755 (executable)
index 523731a..8b24a6f
@@ -38,6 +38,8 @@ namespace Tizen.NUI.BaseComponents
         internal TextLabel(global::System.IntPtr cPtr, bool cMemoryOwn) : base(NDalicPINVOKE.TextLabel_SWIGUpcast(cPtr), cMemoryOwn)
         {
             swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr);
+            // By default, we do not want the position to use the anchor point
+            PositionUsesAnchorPoint = false;
         }
 
         internal static global::System.Runtime.InteropServices.HandleRef getCPtr(TextLabel obj)
@@ -147,6 +149,8 @@ namespace Tizen.NUI.BaseComponents
             internal static readonly int OUTLINE = NDalicPINVOKE.TextLabel_Property_OUTLINE_get();
             internal static readonly int PIXEL_SIZE = NDalicManualPINVOKE.TextLabel_Property_PIXEL_SIZE_get();
             internal static readonly int ELLIPSIS = NDalicManualPINVOKE.TextLabel_Property_ELLIPSIS_get();
+            internal static readonly int AUTO_SCROLL_STOP_MODE = NDalicManualPINVOKE.TextLabel_Property_AUTO_SCROLL_STOP_MODE_get();
+            internal static readonly int AUTO_SCROLL_LOOP_DELAY = NDalicManualPINVOKE.TextLabel_Property_AUTO_SCROLL_LOOP_DELAY_get();
 
         }
 
@@ -744,5 +748,54 @@ namespace Tizen.NUI.BaseComponents
             }
         }
 
+        /// <summary>
+        /// AutoScrollLoopDelay property.<br>
+        /// do something.<br>
+        /// </summary>
+        public float AutoScrollLoopDelay
+        {
+            get
+            {
+                float temp = 0.0f;
+                GetProperty(TextLabel.Property.AUTO_SCROLL_LOOP_DELAY).Get(ref temp);
+                return temp;
+            }
+            set
+            {
+                SetProperty(TextLabel.Property.AUTO_SCROLL_LOOP_DELAY, new Tizen.NUI.PropertyValue(value));
+            }
+        }
+
+        /// <summary>
+        /// AutoScrollStopMode property.<br>
+        /// do something.<br>
+        /// </summary>
+        public AutoScrollStopMode AutoScrollStopMode
+        {
+            get
+            {
+                string temp;
+                if(GetProperty(TextLabel.Property.AUTO_SCROLL_STOP_MODE).Get(out temp) == false)
+                {
+#if DEBUG_ON
+                    Tizen.Log.Error("NUI", "AutoScrollStopMode get error!");
+#endif
+                }
+                switch (temp)
+                {
+                    case "FINISH_LOOP":
+                    return AutoScrollStopMode.FinishLoop;
+                    case "IMMEDIATE":
+                    return AutoScrollStopMode.Immediate;
+                    default:
+                    return AutoScrollStopMode.FinishLoop;
+                }
+            }
+            set
+            {
+                SetProperty(TextLabel.Property.AUTO_SCROLL_STOP_MODE, new Tizen.NUI.PropertyValue((int)value));
+            }
+        }
+
     }
 }