[NUI] Add KeyboardRepeatInfo APIs to Window (#310)
authorSeoyeon2Kim <34738918+Seoyeon2Kim@users.noreply.github.com>
Tue, 3 Jul 2018 08:07:07 +0000 (17:07 +0900)
committerdongsug-song <35130733+dongsug-song@users.noreply.github.com>
Tue, 3 Jul 2018 08:07:07 +0000 (17:07 +0900)
Signed-off-by: Seoyeon Kim <seoyeon2.kim@samsung.com>
src/Tizen.NUI/src/internal/ManualPINVOKE.cs [changed mode: 0755->0644]
src/Tizen.NUI/src/public/Window.cs [changed mode: 0755->0644]

old mode 100755 (executable)
new mode 100644 (file)
index e07f4a9..24ccace
@@ -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 3748667..c8e975d
@@ -893,6 +893,34 @@ 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>
+        /// <since_tizen> 5 </since_tizen>
+        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>
+        /// <since_tizen> 5 </since_tizen>
+        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));