Revert "Revert "[NUI] Add CAPTURE_ALL_TOUCH_AFTER_START property (#1852)" (#1868...
authorJoogabYun <40262755+JoogabYun@users.noreply.github.com>
Wed, 5 Aug 2020 01:47:20 +0000 (10:47 +0900)
committerGitHub <noreply@github.com>
Wed, 5 Aug 2020 01:47:20 +0000 (10:47 +0900)
This reverts commit 4bddf6f2de84375eee9f6bdadf221262cd891a3a.

src/Tizen.NUI/src/internal/Interop/Interop.ActorProperty.cs
src/Tizen.NUI/src/public/BaseComponents/View.cs
src/Tizen.NUI/src/public/BaseComponents/ViewEnum.cs

index ca9b1a7..ec56de3 100755 (executable)
@@ -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();
 
index b27d7f3..0df2242 100755 (executable)
@@ -2294,6 +2294,26 @@ namespace Tizen.NUI.BaseComponents
             }
         }
 
+         /// <summary>
+        /// Whether the actor grab all touches even if touch leaves its boundary.
+        /// </summary>
+        /// <returns>true, if it grab all touch after start</returns>
+        [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();
+            }
+        }
+
         /// <summary>
         /// Get Style, it is abstract function and must be override.
         /// </summary>
index 5360849..bdd95d9 100755 (executable)
@@ -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();
         }
     }
 }