From: taeyoon0.lee Date: Thu, 30 Nov 2017 06:30:03 +0000 (+0900) Subject: [NUI] Added text direction property X-Git-Tag: 5.0.0-preview1-00399^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4b34a9d55ef8b727229eaeab0f53a69c06f4502b;p=platform%2Fcore%2Fcsapi%2Ftizenfx.git [NUI] Added text direction property Change-Id: Id3feaf39a6e77a3f649e12afac63f336f233acff --- diff --git a/src/Tizen.NUI/src/internal/ManualPINVOKE.cs b/src/Tizen.NUI/src/internal/ManualPINVOKE.cs index 1b75ff9..da4ad10 100755 --- a/src/Tizen.NUI/src/internal/ManualPINVOKE.cs +++ b/src/Tizen.NUI/src/internal/ManualPINVOKE.cs @@ -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(); diff --git a/src/Tizen.NUI/src/public/BaseComponents/TextLabel.cs b/src/Tizen.NUI/src/public/BaseComponents/TextLabel.cs index 8485438..a39e7ea 100755 --- a/src/Tizen.NUI/src/public/BaseComponents/TextLabel.cs +++ b/src/Tizen.NUI/src/public/BaseComponents/TextLabel.cs @@ -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(); } /// @@ -837,5 +837,20 @@ namespace Tizen.NUI.BaseComponents SetProperty(TextLabel.Property.LINE_WRAP_MODE, new Tizen.NUI.PropertyValue((int)value)); } } + + /// + /// The text direction. + /// + /// 5 + [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 +} diff --git a/src/Tizen.NUI/src/public/NUIConstants.cs b/src/Tizen.NUI/src/public/NUIConstants.cs index 050c5fd..3aa0447 100755 --- a/src/Tizen.NUI/src/public/NUIConstants.cs +++ b/src/Tizen.NUI/src/public/NUIConstants.cs @@ -2377,7 +2377,7 @@ namespace Tizen.NUI Finished } - /// + /// /// An enum of the line wrap mode of text controls. /// /// 4 @@ -2396,4 +2396,24 @@ namespace Tizen.NUI Character } + /// + /// An enum of text direction. + /// + /// 5 + [EditorBrowsable(EditorBrowsableState.Never)] + public enum TextDirection + { + /// + /// Text direction is from left to right. + /// + /// 5 + LeftToRight, + + /// + /// Text direction is from right to left. + /// + /// 5 + RightToLeft + } + }