[NUI] Change the type of Consumed property for GestureInfo (#3121)
authorSeoyeon2Kim <34738918+Seoyeon2Kim@users.noreply.github.com>
Wed, 2 Jun 2021 03:28:21 +0000 (12:28 +0900)
committerdongsug-song <35130733+dongsug-song@users.noreply.github.com>
Tue, 8 Jun 2021 05:35:32 +0000 (14:35 +0900)
- In dali, the property is originally bool type.
- So. `Consumed` property should be bool value, just same as dali.
 Changed the type and its binding.

Signed-off-by: Seoyeon Kim <seoyeon2.kim@samsung.com>
src/Tizen.NUI/src/internal/Accessibility/AccessibilityDoGestureSignal.cs
src/Tizen.NUI/src/internal/Interop/Interop.DoGestureSignal.cs
src/Tizen.NUI/src/public/BaseComponents/ViewAccessibilityEvent.cs

index bb3f872..77bdde1 100755 (executable)
@@ -43,15 +43,15 @@ namespace Tizen.NUI
         }
 
         [EditorBrowsable(EditorBrowsableState.Never)]
-        static internal int GetResult(global::System.IntPtr data)
+        static internal bool GetResult(global::System.IntPtr data)
         {
-            int ret = Interop.DoGestureSignal.GetResult(data);
+            bool ret = Interop.DoGestureSignal.GetResult(data);
             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
             return ret;
         }
 
         [EditorBrowsable(EditorBrowsableState.Never)]
-        static internal void SetResult(global::System.IntPtr data, int res)
+        static internal void SetResult(global::System.IntPtr data, bool res)
         {
             Interop.DoGestureSignal.SetResult(data, res);
             if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve();
index d53fc2d..aad9724 100755 (executable)
@@ -49,10 +49,10 @@ namespace Tizen.NUI
             public static extern uint GetSizeOfGestureInfo();
 
             [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_Signal_GesturePairToVoid_GetResult")]
-            public static extern int GetResult(global::System.IntPtr jarg1);
+            public static extern bool GetResult(global::System.IntPtr jarg1);
 
             [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_Signal_GesturePairToVoid_SetResult")]
-            public static extern void SetResult(global::System.IntPtr jarg1, int result);
+            public static extern void SetResult(global::System.IntPtr jarg1, bool result);
         }
     }
 }
index 5843bb8..89ca54e 100755 (executable)
@@ -161,7 +161,7 @@ namespace Tizen.NUI.BaseComponents
         /// True if the event is consumed.
         /// </summary>
         [EditorBrowsable(EditorBrowsableState.Never)]
-        public int Consumed { get; set; }
+        public bool Consumed { get; set; }
     }
 
     /// <summary>
@@ -256,7 +256,7 @@ namespace Tizen.NUI.BaseComponents
             };
             gestureInfoHandler?.Invoke(this, arg);
 
-            AccessibilityDoGestureSignal.SetResult(data, Convert.ToInt32(arg.Consumed));
+            AccessibilityDoGestureSignal.SetResult(data, arg.Consumed);
         }
 
         /// <summary>