[NUI] Add SetTime in Touch
authorjoogab.yun <joogab.yun@samsung.com>
Mon, 1 Apr 2024 08:17:26 +0000 (17:17 +0900)
committerJoogabYun <40262755+JoogabYun@users.noreply.github.com>
Wed, 3 Apr 2024 01:40:07 +0000 (10:40 +0900)
refer:
https://review.tizen.org/gerrit/#/c/platform/core/uifw/dali-core/+/308797/
https://review.tizen.org/gerrit/#/c/platform/core/uifw/dali-csharp-binder/+/308798/

src/Tizen.NUI/src/internal/Interop/Interop.Touch.cs
src/Tizen.NUI/src/public/Events/Touch.cs

index 8a4771f..b845b19 100755 (executable)
@@ -36,6 +36,9 @@ namespace Tizen.NUI
             [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_Touch_GetTime")]
             public static extern uint GetTime(global::System.Runtime.InteropServices.HandleRef jarg1);
 
+            [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_Touch_SetTime")]
+            public static extern void SetTime(global::System.Runtime.InteropServices.HandleRef touchEvent, ulong time);
+
             [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_Touch_GetPointCount")]
             public static extern uint GetPointCount(global::System.Runtime.InteropServices.HandleRef jarg1);
 
index 3ca9831..69168ff 100755 (executable)
@@ -235,6 +235,16 @@ namespace Tizen.NUI
             return (DeviceSubClassType)ret;
         }
 
+        /// <summary>
+        /// sets the time (in ms) that the touch event occurred.
+        /// </summary>
+        /// <param name="time">The time (in ms)</param>
+        [EditorBrowsable(EditorBrowsableState.Never)]
+        public void SetTime(uint time)
+        {
+            Interop.Touch.SetTime(SwigCPtr, time);
+            if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
+        }
 
         internal static Touch GetTouchFromPtr(global::System.IntPtr cPtr)
         {