From: dongsug.song Date: Wed, 5 Jul 2017 05:25:23 +0000 (+0900) Subject: [Tizen] add Name in Layer, LineCount in TextLabel X-Git-Tag: submit/trunk/20170823.075128~91^2~104 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c6c3233862a0268151bf33b12069ddee6acc83cb;p=platform%2Fcore%2Fcsapi%2Ftizenfx.git [Tizen] add Name in Layer, LineCount in TextLabel Change-Id: Ia219ab46f9a9220a29771d7edc7a26572347c6e2 Signed-off-by: dongsug.song --- diff --git a/src/Tizen.NUI/Tizen.NUI.csproj b/src/Tizen.NUI/Tizen.NUI.csproj index 5fceaff..3e2b68b 100755 --- a/src/Tizen.NUI/Tizen.NUI.csproj +++ b/src/Tizen.NUI/Tizen.NUI.csproj @@ -16,9 +16,9 @@ netstandard1.6 - $(DefineConstants);DEBUG_ON;DOT_NET_CORE + $(DefineConstants)DEBUG_ON True - False + True TizenTVNUI.snk true diff --git a/src/Tizen.NUI/TizenTVNUI.snk b/src/Tizen.NUI/TizenTVNUI.snk new file mode 100755 index 0000000..957e8d4 Binary files /dev/null and b/src/Tizen.NUI/TizenTVNUI.snk differ diff --git a/src/Tizen.NUI/src/public/BaseComponents/TextLabel.cs b/src/Tizen.NUI/src/public/BaseComponents/TextLabel.cs index 19a0111..bc794d7 100755 --- a/src/Tizen.NUI/src/public/BaseComponents/TextLabel.cs +++ b/src/Tizen.NUI/src/public/BaseComponents/TextLabel.cs @@ -101,7 +101,7 @@ namespace Tizen.NUI.BaseComponents 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(); - + internal static readonly int LINE_COUNT = OUTLINE + 5; } /// @@ -708,5 +708,18 @@ namespace Tizen.NUI.BaseComponents } } + /// + /// The line count of text. + /// + public int LineCount + { + get + { + int temp = 0; + GetProperty(TextLabel.Property.LINE_COUNT).Get(out temp); + return temp; + } + } + } } diff --git a/src/Tizen.NUI/src/public/Layer.cs b/src/Tizen.NUI/src/public/Layer.cs index 02d9adc..84daa09 100755 --- a/src/Tizen.NUI/src/public/Layer.cs +++ b/src/Tizen.NUI/src/public/Layer.cs @@ -378,5 +378,35 @@ namespace Tizen.NUI return ret; } } + + /// + /// Gets/Sets the Layer's name. + /// + public string Name + { + get + { + return GetName(); + } + set + { + SetName(value); + } + } + + internal string GetName() + { + string ret = NDalicPINVOKE.Actor_GetName(swigCPtr); + if (NDalicPINVOKE.SWIGPendingException.Pending) + throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + return ret; + } + + internal void SetName(string name) + { + NDalicPINVOKE.Actor_SetName(swigCPtr, name); + if (NDalicPINVOKE.SWIGPendingException.Pending) + throw NDalicPINVOKE.SWIGPendingException.Retrieve(); + } } }