[Tizen] add Name in Layer, LineCount in TextLabel
authordongsug.song <dongsug.song@samsung.com>
Wed, 5 Jul 2017 05:25:23 +0000 (14:25 +0900)
committerdongsug.song <dongsug.song@samsung.com>
Wed, 5 Jul 2017 05:25:23 +0000 (14:25 +0900)
Change-Id: Ia219ab46f9a9220a29771d7edc7a26572347c6e2
Signed-off-by: dongsug.song <dongsug.song@samsung.com>
src/Tizen.NUI/Tizen.NUI.csproj
src/Tizen.NUI/TizenTVNUI.snk [new file with mode: 0755]
src/Tizen.NUI/src/public/BaseComponents/TextLabel.cs
src/Tizen.NUI/src/public/Layer.cs

index 5fceaff..3e2b68b 100755 (executable)
@@ -16,9 +16,9 @@
 \r
   <PropertyGroup>\r
     <TargetFramework>netstandard1.6</TargetFramework>\r
-    <DefineConstants>$(DefineConstants);DEBUG_ON;DOT_NET_CORE</DefineConstants>\r
+    <DefineConstants>$(DefineConstants)DEBUG_ON</DefineConstants>\r
     <AllowUnsafeBlocks>True</AllowUnsafeBlocks>\r
-    <SignAssembly>False</SignAssembly>\r
+    <SignAssembly>True</SignAssembly>\r
     <AssemblyOriginatorKeyFile>TizenTVNUI.snk</AssemblyOriginatorKeyFile>\r
     <PublicSign Condition="'$(OS)' != 'Windows_NT'">true</PublicSign>\r
   </PropertyGroup>\r
diff --git a/src/Tizen.NUI/TizenTVNUI.snk b/src/Tizen.NUI/TizenTVNUI.snk
new file mode 100755 (executable)
index 0000000..957e8d4
Binary files /dev/null and b/src/Tizen.NUI/TizenTVNUI.snk differ
index 19a0111..bc794d7 100755 (executable)
@@ -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;
         }
 
         /// <summary>
@@ -708,5 +708,18 @@ namespace Tizen.NUI.BaseComponents
             }
         }
 
+        /// <summary>
+        /// The line count of text.
+        /// </summary>
+        public int LineCount
+        {
+            get
+            {
+                int temp = 0;
+                GetProperty(TextLabel.Property.LINE_COUNT).Get(out temp);
+                return temp;
+            }
+        }
+
     }
 }
index 02d9adc..84daa09 100755 (executable)
@@ -378,5 +378,35 @@ namespace Tizen.NUI
                 return ret;
             }
         }
+
+        /// <summary>
+        /// Gets/Sets the Layer's name.
+        /// </summary>
+        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();
+        }
     }
 }