[NUI] Added text direction property 70/162770/1
authortaeyoon0.lee <taeyoon0.lee@samsung.com>
Thu, 30 Nov 2017 06:30:03 +0000 (15:30 +0900)
committerhuiyu,eun <huiyu.eun@samsung.com>
Tue, 5 Dec 2017 07:50:54 +0000 (16:50 +0900)
Change-Id: Id3feaf39a6e77a3f649e12afac63f336f233acff

src/Tizen.NUI/src/internal/ManualPINVOKE.cs
src/Tizen.NUI/src/public/BaseComponents/TextLabel.cs
src/Tizen.NUI/src/public/NUIConstants.cs

index 1b75ff9..da4ad10 100755 (executable)
@@ -713,6 +713,9 @@ namespace Tizen.NUI
         [global::System.Runtime.InteropServices.DllImport("libdali-csharp-binder.so", EntryPoint="CSharp_TextLabel_Property_LINE_WRAP_MODE_get")]
         public static extern int TextLabel_Property_LINE_WRAP_MODE_get();
 
+        [global::System.Runtime.InteropServices.DllImport("libdali-csharp-binder.so", EntryPoint="CSharp_TextLabel_Property_TEXT_DIRECTION_get")]
+        public static extern int TextLabel_Property_TEXT_DIRECTION_get();
+
         [global::System.Runtime.InteropServices.DllImport("libdali-csharp-binder.so", EntryPoint = "CSharp_HIDDENINPUT_PROPERTY_MODE_get")]
         public static extern int HIDDENINPUT_PROPERTY_MODE_get();
 
index 8485438..21f92c3 100755 (executable)
@@ -110,7 +110,7 @@ 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_DIRECTION = NDalicManualPINVOKE.TextLabel_Property_TEXT_DIRECTION_get();
         }
 
         /// <summary>
@@ -837,5 +837,21 @@ namespace Tizen.NUI.BaseComponents
                 SetProperty(TextLabel.Property.LINE_WRAP_MODE, new Tizen.NUI.PropertyValue((int)value));
             }
         }
+
+        /// <summary>
+        /// The text direction.
+        /// </summary>
+        /// <since_tizen> 5 </since_tizen>
+        /// This will be released at Tizen.NET API Level 5, so currently this would be used as inhouse API.
+        [EditorBrowsable(EditorBrowsableState.Never)]
+        public TextDirection TextDirection
+        {
+            get
+            {
+                int temp = 0;
+                GetProperty(TextLabel.Property.TEXT_DIRECTION).Get(out temp);
+                return (TextDirection)temp;
+            }
+        }
     }
-}
\ No newline at end of file
+}
index cf49fad..5b96197 100755 (executable)
@@ -2387,7 +2387,7 @@ namespace Tizen.NUI
         Finished
     }
 
-     /// <summary>
+    /// <summary>
     /// An enum of the line wrap mode of text controls.
     /// </summary>
     /// <since_tizen> 4 </since_tizen>
@@ -2406,4 +2406,25 @@ namespace Tizen.NUI
         Character
     }
 
+    /// <summary>
+    /// An enum of text direction.
+    /// </summary>
+    /// <since_tizen> 5 </since_tizen>
+    /// This will be released at Tizen.NET API Level 5, so currently this would be used as inhouse API.
+    [EditorBrowsable(EditorBrowsableState.Never)]
+    public enum TextDirection
+    {
+        /// <summary>
+        /// Text direction is from left to right.
+        /// </summary>
+        /// <since_tizen> 5 </since_tizen>
+        LeftToRight,
+
+        /// <summary>
+        /// Text direction is from right to left.
+        /// </summary>
+        /// <since_tizen> 5 </since_tizen>
+        RightToLeft
+    }
+
 }