[Security] Fix PrivacyPrivilegeManager.RequestPermissions crash issue (#1651)
[platform/core/csapi/tizenfx.git] / internals / src / EflSharp / EflSharp / efl / efl_canvas_gesture_long_tap.eo.cs
old mode 100644 (file)
new mode 100755 (executable)
index 43a7ad5..7020052
@@ -1,3 +1,4 @@
+#define EFL_BETA
 #pragma warning disable CS1591
 using System;
 using System.Runtime.InteropServices;
@@ -9,16 +10,13 @@ namespace Efl {
 
 namespace Canvas {
 
-///<summary>Event argument wrapper for event <see cref="Efl.Canvas.GestureLongTap.GestureLongTapEvt"/>.</summary>
-public class GestureLongTapGestureLongTapEvt_Args : EventArgs {
-    ///<summary>Actual event payload.</summary>
-    public Efl.Canvas.Gesture arg { get; set; }
-}
 /// <summary>EFL Gesture Long Tap class</summary>
+/// <remarks>This is a <b>BETA</b> class. It can be modified or removed in the future. Do not use it for product development.</remarks>
 [Efl.Canvas.GestureLongTap.NativeMethods]
-public class GestureLongTap : Efl.Canvas.Gesture, Efl.Eo.IWrapper
+[Efl.Eo.BindingEntity]
+public class GestureLongTap : Efl.Canvas.Gesture
 {
-    ///<summary>Pointer to the native class description.</summary>
+    /// <summary>Pointer to the native class description.</summary>
     public override System.IntPtr NativeClass
     {
         get
@@ -39,109 +37,33 @@ public class GestureLongTap : Efl.Canvas.Gesture, Efl.Eo.IWrapper
     /// <summary>Initializes a new instance of the <see cref="GestureLongTap"/> class.</summary>
     /// <param name="parent">Parent instance.</param>
     public GestureLongTap(Efl.Object parent= null
-            ) : base(efl_canvas_gesture_long_tap_class_get(), typeof(GestureLongTap), parent)
+            ) : base(efl_canvas_gesture_long_tap_class_get(), parent)
     {
         FinishInstantiation();
     }
 
+    /// <summary>Subclasses should override this constructor if they are expected to be instantiated from native code.
+    /// Do not call this constructor directly.</summary>
+    /// <param name="ch">Tag struct storing the native handle of the object being constructed.</param>
+    protected GestureLongTap(ConstructingHandle ch) : base(ch)
+    {
+    }
+
     /// <summary>Initializes a new instance of the <see cref="GestureLongTap"/> class.
     /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly.</summary>
-    /// <param name="raw">The native pointer to be wrapped.</param>
-    protected GestureLongTap(System.IntPtr raw) : base(raw)
+    /// <param name="wh">The native pointer to be wrapped.</param>
+    protected GestureLongTap(Efl.Eo.Globals.WrappingHandle wh) : base(wh)
     {
-            }
+    }
 
     /// <summary>Initializes a new instance of the <see cref="GestureLongTap"/> class.
     /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly.</summary>
     /// <param name="baseKlass">The pointer to the base native Eo class.</param>
-    /// <param name="managedType">The managed type of the public constructor that originated this call.</param>
     /// <param name="parent">The Efl.Object parent of this instance.</param>
-    protected GestureLongTap(IntPtr baseKlass, System.Type managedType, Efl.Object parent) : base(baseKlass, managedType, parent)
-    {
-    }
-
-    /// <summary>Verifies if the given object is equal to this one.</summary>
-    /// <param name="instance">The object to compare to.</param>
-    /// <returns>True if both objects point to the same native object.</returns>
-    public override bool Equals(object instance)
-    {
-        var other = instance as Efl.Object;
-        if (other == null)
-        {
-            return false;
-        }
-        return this.NativeHandle == other.NativeHandle;
-    }
-
-    /// <summary>Gets the hash code for this object based on the native pointer it points to.</summary>
-    /// <returns>The value of the pointer, to be used as the hash code of this object.</returns>
-    public override int GetHashCode()
-    {
-        return this.NativeHandle.ToInt32();
-    }
-
-    /// <summary>Turns the native pointer into a string representation.</summary>
-    /// <returns>A string with the type and the native pointer for this object.</returns>
-    public override String ToString()
-    {
-        return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]";
-    }
-
-    /// <summary>Event for tap gesture</summary>
-    public event EventHandler<Efl.Canvas.GestureLongTapGestureLongTapEvt_Args> GestureLongTapEvt
+    protected GestureLongTap(IntPtr baseKlass, Efl.Object parent) : base(baseKlass, parent)
     {
-        add
-        {
-            lock (eventLock)
-            {
-                var wRef = new WeakReference(this);
-                Efl.EventCb callerCb = (IntPtr data, ref Efl.Event.NativeStruct evt) =>
-                {
-                    var obj = wRef.Target as Efl.Eo.IWrapper;
-                    if (obj != null)
-                    {
-                                                Efl.Canvas.GestureLongTapGestureLongTapEvt_Args args = new Efl.Canvas.GestureLongTapGestureLongTapEvt_Args();
-                        args.arg = (Efl.Eo.Globals.CreateWrapperFor(evt.Info) as Efl.Canvas.Gesture);
-                        try
-                        {
-                            value?.Invoke(obj, args);
-                        }
-                        catch (Exception e)
-                        {
-                            Eina.Log.Error(e.ToString());
-                            Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
-                        }
-                    }
-                };
-
-                string key = "_EFL_EVENT_GESTURE_LONG_TAP";
-                AddNativeEventHandler(efl.Libs.Evas, key, callerCb, value);
-            }
-        }
-
-        remove
-        {
-            lock (eventLock)
-            {
-                string key = "_EFL_EVENT_GESTURE_LONG_TAP";
-                RemoveNativeEventHandler(efl.Libs.Evas, key, value);
-            }
-        }
     }
-    ///<summary>Method to raise event GestureLongTapEvt.</summary>
-    public void OnGestureLongTapEvt(Efl.Canvas.GestureLongTapGestureLongTapEvt_Args e)
-    {
-        var key = "_EFL_EVENT_GESTURE_LONG_TAP";
-        IntPtr desc = Efl.EventDescription.GetNative(efl.Libs.Evas, key);
-        if (desc == IntPtr.Zero)
-        {
-            Eina.Log.Error($"Failed to get native event {key}");
-            return;
-        }
 
-        IntPtr info = e.arg.NativeHandle;
-        Efl.Eo.Globals.efl_event_callback_call(this.NativeHandle, desc, info);
-    }
     private static IntPtr GetEflClassStatic()
     {
         return Efl.Canvas.GestureLongTap.efl_canvas_gesture_long_tap_class_get();
@@ -165,9 +87,9 @@ public class GestureLongTap : Efl.Canvas.Gesture, Efl.Eo.IWrapper
             return Efl.Canvas.GestureLongTap.efl_canvas_gesture_long_tap_class_get();
         }
 
-        #pragma warning disable CA1707, SA1300, SA1600
+        #pragma warning disable CA1707, CS1591, SA1300, SA1600
 
-        #pragma warning restore CA1707, SA1300, SA1600
+        #pragma warning restore CA1707, CS1591, SA1300, SA1600
 
 }
 }
@@ -175,3 +97,9 @@ public class GestureLongTap : Efl.Canvas.Gesture, Efl.Eo.IWrapper
 
 }
 
+#if EFL_BETA
+#pragma warning disable CS1591
+public static class Efl_CanvasGestureLongTap_ExtensionMethods {
+}
+#pragma warning restore CS1591
+#endif