[EflSharp] Update Circle and efl cs files (#995)
[platform/core/csapi/tizenfx.git] / internals / src / EflSharp / EflSharp / efl / efl_canvas_animation_group.eo.cs
old mode 100644 (file)
new mode 100755 (executable)
index 688cf6e..10939a9
@@ -1,3 +1,4 @@
+#define EFL_BETA
 #pragma warning disable CS1591
 using System;
 using System.Runtime.InteropServices;
@@ -10,10 +11,12 @@ namespace Efl {
 namespace Canvas {
 
 /// <summary>Efl group animation abstract 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.AnimationGroup.NativeMethods]
-public abstract class AnimationGroup : Efl.Canvas.Animation, Efl.Eo.IWrapper
+[Efl.Eo.BindingEntity]
+public abstract class AnimationGroup : Efl.Canvas.Animation
 {
-    ///<summary>Pointer to the native class description.</summary>
+    /// <summary>Pointer to the native class description.</summary>
     public override System.IntPtr NativeClass
     {
         get
@@ -34,77 +37,56 @@ public abstract class AnimationGroup : Efl.Canvas.Animation, Efl.Eo.IWrapper
     /// <summary>Initializes a new instance of the <see cref="AnimationGroup"/> class.</summary>
     /// <param name="parent">Parent instance.</param>
     public AnimationGroup(Efl.Object parent= null
-            ) : base(efl_canvas_animation_group_class_get(), typeof(AnimationGroup), parent)
+            ) : base(efl_canvas_animation_group_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 AnimationGroup(ConstructingHandle ch) : base(ch)
+    {
+    }
+
     /// <summary>Initializes a new instance of the <see cref="AnimationGroup"/> 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 AnimationGroup(System.IntPtr raw) : base(raw)
+    /// <param name="wh">The native pointer to be wrapped.</param>
+    protected AnimationGroup(Efl.Eo.Globals.WrappingHandle wh) : base(wh)
     {
-            }
+    }
 
     [Efl.Eo.PrivateNativeClass]
     private class AnimationGroupRealized : AnimationGroup
     {
-        private AnimationGroupRealized(IntPtr ptr) : base(ptr)
+        private AnimationGroupRealized(Efl.Eo.Globals.WrappingHandle wh) : base(wh)
         {
         }
     }
     /// <summary>Initializes a new instance of the <see cref="AnimationGroup"/> 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 AnimationGroup(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()
+    protected AnimationGroup(IntPtr baseKlass, Efl.Object parent) : base(baseKlass, parent)
     {
-        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>Add the given animation to the animation group.</summary>
     /// <param name="animation">The animation which needs to be added to the animation group</param>
     virtual public void AddAnimation(Efl.Canvas.Animation animation) {
-                                 Efl.Canvas.AnimationGroup.NativeMethods.efl_animation_group_animation_add_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),animation);
+                                 Efl.Canvas.AnimationGroup.NativeMethods.efl_animation_group_animation_add_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),animation);
         Eina.Error.RaiseIfUnhandledException();
                          }
     /// <summary>Delete the given animation from the animation group.</summary>
     /// <param name="animation">The animation which needs to be deleted from the animation group</param>
     virtual public void DelAnimation(Efl.Canvas.Animation animation) {
-                                 Efl.Canvas.AnimationGroup.NativeMethods.efl_animation_group_animation_del_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),animation);
+                                 Efl.Canvas.AnimationGroup.NativeMethods.efl_animation_group_animation_del_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),animation);
         Eina.Error.RaiseIfUnhandledException();
                          }
     /// <summary>Get the animations of the animation group.</summary>
     /// <returns>The animations of the animation group</returns>
     virtual public Eina.List<Efl.Canvas.Animation> GetAnimations() {
-         var _ret_var = Efl.Canvas.AnimationGroup.NativeMethods.efl_animation_group_animations_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle));
+         var _ret_var = Efl.Canvas.AnimationGroup.NativeMethods.efl_animation_group_animations_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)));
         Eina.Error.RaiseIfUnhandledException();
         return new Eina.List<Efl.Canvas.Animation>(_ret_var, false, false);
  }
@@ -164,7 +146,7 @@ public abstract class AnimationGroup : Efl.Canvas.Animation, Efl.Eo.IWrapper
             return Efl.Canvas.AnimationGroup.efl_canvas_animation_group_class_get();
         }
 
-        #pragma warning disable CA1707, SA1300, SA1600
+        #pragma warning disable CA1707, CS1591, SA1300, SA1600
 
         
         private delegate void efl_animation_group_animation_add_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo<Efl.Eo.NonOwnTag>))] Efl.Canvas.Animation animation);
@@ -177,13 +159,13 @@ public abstract class AnimationGroup : Efl.Canvas.Animation, Efl.Eo.IWrapper
         private static void animation_add(System.IntPtr obj, System.IntPtr pd, Efl.Canvas.Animation animation)
         {
             Eina.Log.Debug("function efl_animation_group_animation_add was called");
-            Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
-            if (wrapper != null)
+            var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
+            if (ws != null)
             {
                                     
                 try
                 {
-                    ((AnimationGroup)wrapper).AddAnimation(animation);
+                    ((AnimationGroup)ws.Target).AddAnimation(animation);
                 }
                 catch (Exception e)
                 {
@@ -212,13 +194,13 @@ public abstract class AnimationGroup : Efl.Canvas.Animation, Efl.Eo.IWrapper
         private static void animation_del(System.IntPtr obj, System.IntPtr pd, Efl.Canvas.Animation animation)
         {
             Eina.Log.Debug("function efl_animation_group_animation_del was called");
-            Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
-            if (wrapper != null)
+            var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
+            if (ws != null)
             {
                                     
                 try
                 {
-                    ((AnimationGroup)wrapper).DelAnimation(animation);
+                    ((AnimationGroup)ws.Target).DelAnimation(animation);
                 }
                 catch (Exception e)
                 {
@@ -247,13 +229,13 @@ public abstract class AnimationGroup : Efl.Canvas.Animation, Efl.Eo.IWrapper
         private static System.IntPtr animations_get(System.IntPtr obj, System.IntPtr pd)
         {
             Eina.Log.Debug("function efl_animation_group_animations_get was called");
-            Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
-            if (wrapper != null)
+            var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
+            if (ws != null)
             {
             Eina.List<Efl.Canvas.Animation> _ret_var = default(Eina.List<Efl.Canvas.Animation>);
                 try
                 {
-                    _ret_var = ((AnimationGroup)wrapper).GetAnimations();
+                    _ret_var = ((AnimationGroup)ws.Target).GetAnimations();
                 }
                 catch (Exception e)
                 {
@@ -272,7 +254,7 @@ public abstract class AnimationGroup : Efl.Canvas.Animation, Efl.Eo.IWrapper
 
         private static efl_animation_group_animations_get_delegate efl_animation_group_animations_get_static_delegate;
 
-        #pragma warning restore CA1707, SA1300, SA1600
+        #pragma warning restore CA1707, CS1591, SA1300, SA1600
 
 }
 }
@@ -280,3 +262,9 @@ public abstract class AnimationGroup : Efl.Canvas.Animation, Efl.Eo.IWrapper
 
 }
 
+#if EFL_BETA
+#pragma warning disable CS1591
+public static class Efl_CanvasAnimationGroup_ExtensionMethods {
+}
+#pragma warning restore CS1591
+#endif