From 9a8e29f722f4a6900eb26781700b4ec1ea6ad85c Mon Sep 17 00:00:00 2001 From: Seoyeon2Kim <34738918+Seoyeon2Kim@users.noreply.github.com> Date: Wed, 2 Jun 2021 12:28:21 +0900 Subject: [PATCH] [NUI] Change the type of Consumed property for GestureInfo (#3121) - 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 --- .../src/internal/Accessibility/AccessibilityDoGestureSignal.cs | 6 +++--- src/Tizen.NUI/src/internal/Interop/Interop.DoGestureSignal.cs | 4 ++-- src/Tizen.NUI/src/public/BaseComponents/ViewAccessibilityEvent.cs | 4 ++-- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/Tizen.NUI/src/internal/Accessibility/AccessibilityDoGestureSignal.cs b/src/Tizen.NUI/src/internal/Accessibility/AccessibilityDoGestureSignal.cs index bb3f872..77bdde1 100755 --- a/src/Tizen.NUI/src/internal/Accessibility/AccessibilityDoGestureSignal.cs +++ b/src/Tizen.NUI/src/internal/Accessibility/AccessibilityDoGestureSignal.cs @@ -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(); diff --git a/src/Tizen.NUI/src/internal/Interop/Interop.DoGestureSignal.cs b/src/Tizen.NUI/src/internal/Interop/Interop.DoGestureSignal.cs index d53fc2d..aad9724 100755 --- a/src/Tizen.NUI/src/internal/Interop/Interop.DoGestureSignal.cs +++ b/src/Tizen.NUI/src/internal/Interop/Interop.DoGestureSignal.cs @@ -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); } } } diff --git a/src/Tizen.NUI/src/public/BaseComponents/ViewAccessibilityEvent.cs b/src/Tizen.NUI/src/public/BaseComponents/ViewAccessibilityEvent.cs index 5843bb8..89ca54e 100755 --- a/src/Tizen.NUI/src/public/BaseComponents/ViewAccessibilityEvent.cs +++ b/src/Tizen.NUI/src/public/BaseComponents/ViewAccessibilityEvent.cs @@ -161,7 +161,7 @@ namespace Tizen.NUI.BaseComponents /// True if the event is consumed. /// [EditorBrowsable(EditorBrowsableState.Never)] - public int Consumed { get; set; } + public bool Consumed { get; set; } } /// @@ -256,7 +256,7 @@ namespace Tizen.NUI.BaseComponents }; gestureInfoHandler?.Invoke(this, arg); - AccessibilityDoGestureSignal.SetResult(data, Convert.ToInt32(arg.Consumed)); + AccessibilityDoGestureSignal.SetResult(data, arg.Consumed); } /// -- 2.7.4