From 44638c8717f71c947a43fcbf273f728b0a820017 Mon Sep 17 00:00:00 2001 From: JoogabYun <40262755+JoogabYun@users.noreply.github.com> Date: Tue, 28 Jul 2020 11:42:49 +0900 Subject: [PATCH] [NUI] Add CAPTURE_ALL_TOUCH_AFTER_START property (#1852) --- .../src/internal/Interop/Interop.ActorProperty.cs | 3 +++ src/Tizen.NUI/src/public/BaseComponents/View.cs | 20 ++++++++++++++++++++ src/Tizen.NUI/src/public/BaseComponents/ViewEnum.cs | 1 + 3 files changed, 24 insertions(+) diff --git a/src/Tizen.NUI/src/internal/Interop/Interop.ActorProperty.cs b/src/Tizen.NUI/src/internal/Interop/Interop.ActorProperty.cs index ca9b1a7..ec56de3 100755 --- a/src/Tizen.NUI/src/internal/Interop/Interop.ActorProperty.cs +++ b/src/Tizen.NUI/src/internal/Interop/Interop.ActorProperty.cs @@ -185,6 +185,9 @@ namespace Tizen.NUI [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_Actor_Property_CLIPPING_MODE_get")] public static extern int Actor_Property_CLIPPING_MODE_get(); + [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Actor_Property_CAPTURE_ALL_TOUCH_AFTER_START_get")] + public static extern int ActorPropertyCaptureAllTouchAfterStartGet(); + [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_new_Actor_Property")] public static extern global::System.IntPtr new_Actor_Property(); diff --git a/src/Tizen.NUI/src/public/BaseComponents/View.cs b/src/Tizen.NUI/src/public/BaseComponents/View.cs index 3f80c68..6f08f7b 100755 --- a/src/Tizen.NUI/src/public/BaseComponents/View.cs +++ b/src/Tizen.NUI/src/public/BaseComponents/View.cs @@ -2291,6 +2291,26 @@ namespace Tizen.NUI.BaseComponents } } + /// + /// Whether the actor grab all touches even if touch leaves its boundary. + /// + /// true, if it grab all touch after start + [EditorBrowsable(EditorBrowsableState.Never)] + public bool GrabTouchAfterLeave + { + get + { + bool temp = false; + GetProperty(View.Property.CaptureAllTouchAfterStart).Get(out temp); + return temp; + } + set + { + SetProperty(View.Property.CaptureAllTouchAfterStart, new Tizen.NUI.PropertyValue(value)); + NotifyPropertyChanged(); + } + } + /// /// Get Style, it is abstract function and must be override. /// diff --git a/src/Tizen.NUI/src/public/BaseComponents/ViewEnum.cs b/src/Tizen.NUI/src/public/BaseComponents/ViewEnum.cs index 5360849..bdd95d9 100755 --- a/src/Tizen.NUI/src/public/BaseComponents/ViewEnum.cs +++ b/src/Tizen.NUI/src/public/BaseComponents/ViewEnum.cs @@ -206,6 +206,7 @@ namespace Tizen.NUI.BaseComponents internal static readonly int MARGIN = Interop.ViewProperty.View_Property_MARGIN_get(); internal static readonly int PADDING = Interop.ViewProperty.View_Property_PADDING_get(); internal static readonly int SHADOW = Interop.ViewProperty.View_Property_SHADOW_get(); + internal static readonly int CaptureAllTouchAfterStart = Interop.ActorProperty.ActorPropertyCaptureAllTouchAfterStartGet(); } } } -- 2.7.4