From c6c3233862a0268151bf33b12069ddee6acc83cb Mon Sep 17 00:00:00 2001 From: "dongsug.song" Date: Wed, 5 Jul 2017 14:25:23 +0900 Subject: [PATCH] [Tizen] add Name in Layer, LineCount in TextLabel Change-Id: Ia219ab46f9a9220a29771d7edc7a26572347c6e2 Signed-off-by: dongsug.song --- src/Tizen.NUI/Tizen.NUI.csproj | 4 +-- src/Tizen.NUI/TizenTVNUI.snk | Bin 0 -> 596 bytes .../src/public/BaseComponents/TextLabel.cs | 15 ++++++++++- src/Tizen.NUI/src/public/Layer.cs | 30 +++++++++++++++++++++ 4 files changed, 46 insertions(+), 3 deletions(-) create mode 100755 src/Tizen.NUI/TizenTVNUI.snk 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 0000000000000000000000000000000000000000..957e8d4291ea37f8a12179b82d2bf2aa9a91bb65 GIT binary patch literal 596 zcmV-a0;~N80ssI2Bme+XQ$aES1ONa50098)L|iJEjWxNRS7!7s?=#q)A7>(6uu>BHY#BbkpRMM<4=Sy7 z4MAA@q1A+zm$1_DArKk{4;^AvJ=xg!7Z@;1l^=gsJW&4(m&g=PW*@N@zh=5hnh6L^ zBIxKy^eQ~9D|XeH5=B^-jD!;aTaBQ+q5a6}=SQaM>+R9Z67E%5=|rbiTQ^D0f{z8Q zJ9$kahz1m(D(8?4V|!}<(jiYP7t(o&q=pRs!CAjI8h?-B!7PnP08 zsVVdv2V=?}gf%>vxXGK(r-7#Zu9KX$kM%kQFiXMvb#hh-Iv8JfH~N_tj)rbKrpq`7 z-}xgBMT_hM6PYNU->hzejZ0wikeWPiK<483PR+0nUZg%D!6Dh0RBhTSj!d8k%TF&P zArWG-S`))=qh`=?X`PsRdn}_{bh;zX=VU$I6Y*;yEu!V=_#opj9ZEeoc~3$&;wl#E zRc$zsbgY>HKUvx-9)cM`ri(t3vH|EXc^bOEHK8h4GxO?;I*y*dc)@Llgbp?73gZ4; zU#NV{Xd5Us)s@8+2gQ^m-%uxq*a!d&ZhL+740b<~&5iF~cO20s;rnBno i0s?OA*a~jf&Gn;FARp @@ -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(); + } } } -- 2.7.4