688cf6ef4e2b707361d2ee77d75fe70594d4156a
[platform/core/csapi/tizenfx.git] / internals / src / EflSharp / EflSharp / efl / efl_canvas_animation_group.eo.cs
1 #pragma warning disable CS1591
2 using System;
3 using System.Runtime.InteropServices;
4 using System.Collections.Generic;
5 using System.Linq;
6 using System.Threading;
7 using System.ComponentModel;
8 namespace Efl {
9
10 namespace Canvas {
11
12 /// <summary>Efl group animation abstract class</summary>
13 [Efl.Canvas.AnimationGroup.NativeMethods]
14 public abstract class AnimationGroup : Efl.Canvas.Animation, Efl.Eo.IWrapper
15 {
16     ///<summary>Pointer to the native class description.</summary>
17     public override System.IntPtr NativeClass
18     {
19         get
20         {
21             if (((object)this).GetType() == typeof(AnimationGroup))
22             {
23                 return GetEflClassStatic();
24             }
25             else
26             {
27                 return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()];
28             }
29         }
30     }
31
32     [System.Runtime.InteropServices.DllImport(efl.Libs.Evas)] internal static extern System.IntPtr
33         efl_canvas_animation_group_class_get();
34     /// <summary>Initializes a new instance of the <see cref="AnimationGroup"/> class.</summary>
35     /// <param name="parent">Parent instance.</param>
36     public AnimationGroup(Efl.Object parent= null
37             ) : base(efl_canvas_animation_group_class_get(), typeof(AnimationGroup), parent)
38     {
39         FinishInstantiation();
40     }
41
42     /// <summary>Initializes a new instance of the <see cref="AnimationGroup"/> class.
43     /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly.</summary>
44     /// <param name="raw">The native pointer to be wrapped.</param>
45     protected AnimationGroup(System.IntPtr raw) : base(raw)
46     {
47             }
48
49     [Efl.Eo.PrivateNativeClass]
50     private class AnimationGroupRealized : AnimationGroup
51     {
52         private AnimationGroupRealized(IntPtr ptr) : base(ptr)
53         {
54         }
55     }
56     /// <summary>Initializes a new instance of the <see cref="AnimationGroup"/> class.
57     /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly.</summary>
58     /// <param name="baseKlass">The pointer to the base native Eo class.</param>
59     /// <param name="managedType">The managed type of the public constructor that originated this call.</param>
60     /// <param name="parent">The Efl.Object parent of this instance.</param>
61     protected AnimationGroup(IntPtr baseKlass, System.Type managedType, Efl.Object parent) : base(baseKlass, managedType, parent)
62     {
63     }
64
65     /// <summary>Verifies if the given object is equal to this one.</summary>
66     /// <param name="instance">The object to compare to.</param>
67     /// <returns>True if both objects point to the same native object.</returns>
68     public override bool Equals(object instance)
69     {
70         var other = instance as Efl.Object;
71         if (other == null)
72         {
73             return false;
74         }
75         return this.NativeHandle == other.NativeHandle;
76     }
77
78     /// <summary>Gets the hash code for this object based on the native pointer it points to.</summary>
79     /// <returns>The value of the pointer, to be used as the hash code of this object.</returns>
80     public override int GetHashCode()
81     {
82         return this.NativeHandle.ToInt32();
83     }
84
85     /// <summary>Turns the native pointer into a string representation.</summary>
86     /// <returns>A string with the type and the native pointer for this object.</returns>
87     public override String ToString()
88     {
89         return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]";
90     }
91
92     /// <summary>Add the given animation to the animation group.</summary>
93     /// <param name="animation">The animation which needs to be added to the animation group</param>
94     virtual public void AddAnimation(Efl.Canvas.Animation animation) {
95                                  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);
96         Eina.Error.RaiseIfUnhandledException();
97                          }
98     /// <summary>Delete the given animation from the animation group.</summary>
99     /// <param name="animation">The animation which needs to be deleted from the animation group</param>
100     virtual public void DelAnimation(Efl.Canvas.Animation animation) {
101                                  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);
102         Eina.Error.RaiseIfUnhandledException();
103                          }
104     /// <summary>Get the animations of the animation group.</summary>
105     /// <returns>The animations of the animation group</returns>
106     virtual public Eina.List<Efl.Canvas.Animation> GetAnimations() {
107          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));
108         Eina.Error.RaiseIfUnhandledException();
109         return new Eina.List<Efl.Canvas.Animation>(_ret_var, false, false);
110  }
111     private static IntPtr GetEflClassStatic()
112     {
113         return Efl.Canvas.AnimationGroup.efl_canvas_animation_group_class_get();
114     }
115     /// <summary>Wrapper for native methods and virtual method delegates.
116     /// For internal use by generated code only.</summary>
117     public new class NativeMethods : Efl.Canvas.Animation.NativeMethods
118     {
119         private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule(    efl.Libs.Evas);
120         /// <summary>Gets the list of Eo operations to override.</summary>
121         /// <returns>The list of Eo operations to be overload.</returns>
122         public override System.Collections.Generic.List<Efl_Op_Description> GetEoOps(System.Type type)
123         {
124             var descs = new System.Collections.Generic.List<Efl_Op_Description>();
125             var methods = Efl.Eo.Globals.GetUserMethods(type);
126
127             if (efl_animation_group_animation_add_static_delegate == null)
128             {
129                 efl_animation_group_animation_add_static_delegate = new efl_animation_group_animation_add_delegate(animation_add);
130             }
131
132             if (methods.FirstOrDefault(m => m.Name == "AddAnimation") != null)
133             {
134                 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_animation_group_animation_add"), func = Marshal.GetFunctionPointerForDelegate(efl_animation_group_animation_add_static_delegate) });
135             }
136
137             if (efl_animation_group_animation_del_static_delegate == null)
138             {
139                 efl_animation_group_animation_del_static_delegate = new efl_animation_group_animation_del_delegate(animation_del);
140             }
141
142             if (methods.FirstOrDefault(m => m.Name == "DelAnimation") != null)
143             {
144                 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_animation_group_animation_del"), func = Marshal.GetFunctionPointerForDelegate(efl_animation_group_animation_del_static_delegate) });
145             }
146
147             if (efl_animation_group_animations_get_static_delegate == null)
148             {
149                 efl_animation_group_animations_get_static_delegate = new efl_animation_group_animations_get_delegate(animations_get);
150             }
151
152             if (methods.FirstOrDefault(m => m.Name == "GetAnimations") != null)
153             {
154                 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_animation_group_animations_get"), func = Marshal.GetFunctionPointerForDelegate(efl_animation_group_animations_get_static_delegate) });
155             }
156
157             descs.AddRange(base.GetEoOps(type));
158             return descs;
159         }
160         /// <summary>Returns the Eo class for the native methods of this class.</summary>
161         /// <returns>The native class pointer.</returns>
162         public override IntPtr GetEflClass()
163         {
164             return Efl.Canvas.AnimationGroup.efl_canvas_animation_group_class_get();
165         }
166
167         #pragma warning disable CA1707, SA1300, SA1600
168
169         
170         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);
171
172         
173         public delegate void efl_animation_group_animation_add_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo<Efl.Eo.NonOwnTag>))] Efl.Canvas.Animation animation);
174
175         public static Efl.Eo.FunctionWrapper<efl_animation_group_animation_add_api_delegate> efl_animation_group_animation_add_ptr = new Efl.Eo.FunctionWrapper<efl_animation_group_animation_add_api_delegate>(Module, "efl_animation_group_animation_add");
176
177         private static void animation_add(System.IntPtr obj, System.IntPtr pd, Efl.Canvas.Animation animation)
178         {
179             Eina.Log.Debug("function efl_animation_group_animation_add was called");
180             Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
181             if (wrapper != null)
182             {
183                                     
184                 try
185                 {
186                     ((AnimationGroup)wrapper).AddAnimation(animation);
187                 }
188                 catch (Exception e)
189                 {
190                     Eina.Log.Warning($"Callback error: {e.ToString()}");
191                     Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
192                 }
193
194                         
195             }
196             else
197             {
198                 efl_animation_group_animation_add_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), animation);
199             }
200         }
201
202         private static efl_animation_group_animation_add_delegate efl_animation_group_animation_add_static_delegate;
203
204         
205         private delegate void efl_animation_group_animation_del_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo<Efl.Eo.NonOwnTag>))] Efl.Canvas.Animation animation);
206
207         
208         public delegate void efl_animation_group_animation_del_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo<Efl.Eo.NonOwnTag>))] Efl.Canvas.Animation animation);
209
210         public static Efl.Eo.FunctionWrapper<efl_animation_group_animation_del_api_delegate> efl_animation_group_animation_del_ptr = new Efl.Eo.FunctionWrapper<efl_animation_group_animation_del_api_delegate>(Module, "efl_animation_group_animation_del");
211
212         private static void animation_del(System.IntPtr obj, System.IntPtr pd, Efl.Canvas.Animation animation)
213         {
214             Eina.Log.Debug("function efl_animation_group_animation_del was called");
215             Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
216             if (wrapper != null)
217             {
218                                     
219                 try
220                 {
221                     ((AnimationGroup)wrapper).DelAnimation(animation);
222                 }
223                 catch (Exception e)
224                 {
225                     Eina.Log.Warning($"Callback error: {e.ToString()}");
226                     Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
227                 }
228
229                         
230             }
231             else
232             {
233                 efl_animation_group_animation_del_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), animation);
234             }
235         }
236
237         private static efl_animation_group_animation_del_delegate efl_animation_group_animation_del_static_delegate;
238
239         
240         private delegate System.IntPtr efl_animation_group_animations_get_delegate(System.IntPtr obj, System.IntPtr pd);
241
242         
243         public delegate System.IntPtr efl_animation_group_animations_get_api_delegate(System.IntPtr obj);
244
245         public static Efl.Eo.FunctionWrapper<efl_animation_group_animations_get_api_delegate> efl_animation_group_animations_get_ptr = new Efl.Eo.FunctionWrapper<efl_animation_group_animations_get_api_delegate>(Module, "efl_animation_group_animations_get");
246
247         private static System.IntPtr animations_get(System.IntPtr obj, System.IntPtr pd)
248         {
249             Eina.Log.Debug("function efl_animation_group_animations_get was called");
250             Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
251             if (wrapper != null)
252             {
253             Eina.List<Efl.Canvas.Animation> _ret_var = default(Eina.List<Efl.Canvas.Animation>);
254                 try
255                 {
256                     _ret_var = ((AnimationGroup)wrapper).GetAnimations();
257                 }
258                 catch (Exception e)
259                 {
260                     Eina.Log.Warning($"Callback error: {e.ToString()}");
261                     Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
262                 }
263
264         return _ret_var.Handle;
265
266             }
267             else
268             {
269                 return efl_animation_group_animations_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
270             }
271         }
272
273         private static efl_animation_group_animations_get_delegate efl_animation_group_animations_get_static_delegate;
274
275         #pragma warning restore CA1707, SA1300, SA1600
276
277 }
278 }
279 }
280
281 }
282