[NUI] Add KeyboardRepeatInfo APIs to Window (#274)
authorSeoyeon2Kim <34738918+Seoyeon2Kim@users.noreply.github.com>
Tue, 12 Jun 2018 07:54:36 +0000 (16:54 +0900)
committerdongsug-song <35130733+dongsug-song@users.noreply.github.com>
Tue, 12 Jun 2018 07:54:36 +0000 (16:54 +0900)
* [NUI] Add KeyboardRepeatInfo APIs to Window

- Added Set / Get KeyboardRepeatInfo to Window class

Signed-off-by: Seoyeon Kim <seoyeon2.kim@samsung.com>
* Fixed Typo error

- Fixed typo : infomation -> information
- Added the unit of the parameter description

* [NUI] Update NUI internal API version

Signed-off-by: Seoyeon Kim <seoyeon2.kim@samsung.com>
packaging/version.txt
src/Tizen.NUI/src/internal/ManualPINVOKE.cs [changed mode: 0755->0644]
src/Tizen.NUI/src/internal/VersionCheck.cs [changed mode: 0755->0644]
src/Tizen.NUI/src/public/Window.cs [changed mode: 0755->0644]

index 21b0bc7..1f947fb 100755 (executable)
@@ -7,4 +7,4 @@ NUGET_VERSION=4.0.1-preview1-99999
 INTERNAL_NUGET_VERSION=4.0.1.999
 
 # RPM Version Suffix
-RPM_VERSION_SUFFIX=nui401
+RPM_VERSION_SUFFIX=nui402
old mode 100755 (executable)
new mode 100644 (file)
index f4bc28d..e97b61b
@@ -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);
 
old mode 100755 (executable)
new mode 100644 (file)
index a6e157f..b5fc461
@@ -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;
 
old mode 100755 (executable)
new mode 100644 (file)
index b3cfbad..ea292fd
@@ -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));