[NUI] Add KeyboardRepeatInfo APIs to Window 88/181088/1
authorSeoyeon Kim <seoyeon2.kim@samsung.com>
Fri, 8 Jun 2018 04:02:50 +0000 (13:02 +0900)
committerSeoyeon Kim <seoyeon2.kim@samsung.com>
Fri, 8 Jun 2018 04:04:20 +0000 (13:04 +0900)
- Added Set / Get KeyboardRepeatInfo to Window class
- nui402 version release

Change-Id: Ia002872b1a2a1572ad7e87d700a1b197f6bc279c
Signed-off-by: Seoyeon Kim <seoyeon2.kim@samsung.com>
packaging/csapi-tizenfx.spec
src/Tizen.NUI/src/internal/ManualPINVOKE.cs
src/Tizen.NUI/src/internal/VersionCheck.cs
src/Tizen.NUI/src/public/Window.cs

index ccf39fba455add4f2e24116b860c7ac959d7f0f1..80bfe491d975f9e495e11c48e92833eeb8749eb9 100755 (executable)
@@ -5,7 +5,7 @@
 ################################################################################################
 
 %define TIZEN_NET_API_VERSION 4
-%define TIZEN_NET_RPM_VERSION 4.0.1.76+nui401
+%define TIZEN_NET_RPM_VERSION 4.0.1.76+nui402
 %define TIZEN_NET_NUGET_VERSION 4.0.1-preview1-00076
 %define TIZEN_NET_INTERNAL_NUGET_VERSION 4.0.1.75
 
index f4bc28d53c57a256a62da9a57675d70d5c394f52..e97b61bc44f82716b4d16b57123455d49d4bed26 100755 (executable)
@@ -302,6 +302,12 @@ namespace Tizen.NUI
         [global::System.Runtime.InteropServices.DllImport("libdali-csharp-binder.so", EntryPoint = "CSharp_Dali_UngrabKey")]
         public static extern bool UngrabKey(System.IntPtr Window, int DaliKey);
 
+        [global::System.Runtime.InteropServices.DllImport("libdali-csharp-binder.so", EntryPoint = "CSharp_Dali_SetKeyboardRepeatInfo")]
+        public static extern bool SetKeyboardRepeatInfo(double rate, double delay);
+
+        [global::System.Runtime.InteropServices.DllImport("libdali-csharp-binder.so", EntryPoint = "CSharp_Dali_GetKeyboardRepeatInfo")]
+        public static extern bool GetKeyboardRepeatInfo(out double rate, out double delay);
+
         [global::System.Runtime.InteropServices.DllImport("libdali-csharp-binder.so", EntryPoint = "CSharp_Dali_GetNativeWindowHandler")]
         public static extern System.IntPtr GetNativeWindowHandler(System.IntPtr Window);
 
index a6e157fc7277d3da881aff4a2401ff18486cc091..b5fc4613c39146360c7c2ad83a833c621a0c1e25 100755 (executable)
@@ -24,8 +24,9 @@ namespace Tizen.NUI
     internal static class Version
     {
         //Lower than dali_1.2.85 : NUI internal API version 400
-        //dali_1.2.86 : NUI internal API version 401
-        public const int nuiAPIVer = 401;
+        //dali_1.2.86 ~ dali_1.2.89 : NUI internal API version 401
+        //dali_1.2.90 : NUI internal API version 402
+        public const int nuiAPIVer = 402;
         public const int reservedVer1 = 0;
         public const int reservedVer2 = 0;
 
index b3cfbaddaf107f31b6c47812b9804a719e62852b..ea292fd20927dddece94c113f3caf1cec7afe249 100755 (executable)
@@ -861,6 +861,36 @@ namespace Tizen.NUI
             return ret;
         }
 
+        /// <summary>
+        /// Sets keyboard repeat information.
+        /// </summary>
+        /// <param name="rate">The key repeat rate value in seconds</param>
+        /// <param name="delay">The key repeat delay value in seconds</param>
+        /// <returns>True if setting the keyboard repeat succeeds.</returns>
+        /// This will be released at Tizen.NET API Level 5, so currently this would be used as inhouse API.
+        [EditorBrowsable(EditorBrowsableState.Never)]
+        public bool SetKeyboardRepeatInfo(double rate, double delay)
+        {
+            bool ret = NDalicManualPINVOKE.SetKeyboardRepeatInfo(rate, delay);
+            if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+            return ret;
+        }
+
+        /// <summary>
+        /// Gets keyboard repeat information.
+        /// </summary>
+        /// <param name="rate">The key repeat rate value in seconds</param>
+        /// <param name="delay">The key repeat delay value in seconds</param>
+        /// <returns>True if setting the keyboard repeat succeeds.</returns>
+        /// This will be released at Tizen.NET API Level 5, so currently this would be used as inhouse API.
+        [EditorBrowsable(EditorBrowsableState.Never)]
+        public bool GetKeyboardRepeatInfo(out double rate, out double delay)
+        {
+            bool ret = NDalicManualPINVOKE.GetKeyboardRepeatInfo(out rate, out delay);
+            if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+            return ret;
+        }
+
         internal System.IntPtr GetNativeWindowHandler()
         {
             System.IntPtr ret = NDalicManualPINVOKE.GetNativeWindowHandler(HandleRef.ToIntPtr(this.swigCPtr));