[EflSharp] Update Circle and efl cs files (#896)
[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
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>Add the given animation to the animation group.</summary>
66     /// <param name="animation">The animation which needs to be added to the animation group</param>
67     virtual public void AddAnimation(Efl.Canvas.Animation animation) {
68                                  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);
69         Eina.Error.RaiseIfUnhandledException();
70                          }
71     /// <summary>Delete the given animation from the animation group.</summary>
72     /// <param name="animation">The animation which needs to be deleted from the animation group</param>
73     virtual public void DelAnimation(Efl.Canvas.Animation animation) {
74                                  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);
75         Eina.Error.RaiseIfUnhandledException();
76                          }
77     /// <summary>Get the animations of the animation group.</summary>
78     /// <returns>The animations of the animation group</returns>
79     virtual public Eina.List<Efl.Canvas.Animation> GetAnimations() {
80          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));
81         Eina.Error.RaiseIfUnhandledException();
82         return new Eina.List<Efl.Canvas.Animation>(_ret_var, false, false);
83  }
84     private static IntPtr GetEflClassStatic()
85     {
86         return Efl.Canvas.AnimationGroup.efl_canvas_animation_group_class_get();
87     }
88     /// <summary>Wrapper for native methods and virtual method delegates.
89     /// For internal use by generated code only.</summary>
90     public new class NativeMethods : Efl.Canvas.Animation.NativeMethods
91     {
92         private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule(    efl.Libs.Evas);
93         /// <summary>Gets the list of Eo operations to override.</summary>
94         /// <returns>The list of Eo operations to be overload.</returns>
95         public override System.Collections.Generic.List<Efl_Op_Description> GetEoOps(System.Type type)
96         {
97             var descs = new System.Collections.Generic.List<Efl_Op_Description>();
98             var methods = Efl.Eo.Globals.GetUserMethods(type);
99
100             if (efl_animation_group_animation_add_static_delegate == null)
101             {
102                 efl_animation_group_animation_add_static_delegate = new efl_animation_group_animation_add_delegate(animation_add);
103             }
104
105             if (methods.FirstOrDefault(m => m.Name == "AddAnimation") != null)
106             {
107                 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) });
108             }
109
110             if (efl_animation_group_animation_del_static_delegate == null)
111             {
112                 efl_animation_group_animation_del_static_delegate = new efl_animation_group_animation_del_delegate(animation_del);
113             }
114
115             if (methods.FirstOrDefault(m => m.Name == "DelAnimation") != null)
116             {
117                 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) });
118             }
119
120             if (efl_animation_group_animations_get_static_delegate == null)
121             {
122                 efl_animation_group_animations_get_static_delegate = new efl_animation_group_animations_get_delegate(animations_get);
123             }
124
125             if (methods.FirstOrDefault(m => m.Name == "GetAnimations") != null)
126             {
127                 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) });
128             }
129
130             descs.AddRange(base.GetEoOps(type));
131             return descs;
132         }
133         /// <summary>Returns the Eo class for the native methods of this class.</summary>
134         /// <returns>The native class pointer.</returns>
135         public override IntPtr GetEflClass()
136         {
137             return Efl.Canvas.AnimationGroup.efl_canvas_animation_group_class_get();
138         }
139
140         #pragma warning disable CA1707, CS1591, SA1300, SA1600
141
142         
143         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);
144
145         
146         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);
147
148         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");
149
150         private static void animation_add(System.IntPtr obj, System.IntPtr pd, Efl.Canvas.Animation animation)
151         {
152             Eina.Log.Debug("function efl_animation_group_animation_add was called");
153             var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
154             if (ws != null)
155             {
156                                     
157                 try
158                 {
159                     ((AnimationGroup)ws.Target).AddAnimation(animation);
160                 }
161                 catch (Exception e)
162                 {
163                     Eina.Log.Warning($"Callback error: {e.ToString()}");
164                     Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
165                 }
166
167                         
168             }
169             else
170             {
171                 efl_animation_group_animation_add_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), animation);
172             }
173         }
174
175         private static efl_animation_group_animation_add_delegate efl_animation_group_animation_add_static_delegate;
176
177         
178         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);
179
180         
181         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);
182
183         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");
184
185         private static void animation_del(System.IntPtr obj, System.IntPtr pd, Efl.Canvas.Animation animation)
186         {
187             Eina.Log.Debug("function efl_animation_group_animation_del was called");
188             var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
189             if (ws != null)
190             {
191                                     
192                 try
193                 {
194                     ((AnimationGroup)ws.Target).DelAnimation(animation);
195                 }
196                 catch (Exception e)
197                 {
198                     Eina.Log.Warning($"Callback error: {e.ToString()}");
199                     Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
200                 }
201
202                         
203             }
204             else
205             {
206                 efl_animation_group_animation_del_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), animation);
207             }
208         }
209
210         private static efl_animation_group_animation_del_delegate efl_animation_group_animation_del_static_delegate;
211
212         
213         private delegate System.IntPtr efl_animation_group_animations_get_delegate(System.IntPtr obj, System.IntPtr pd);
214
215         
216         public delegate System.IntPtr efl_animation_group_animations_get_api_delegate(System.IntPtr obj);
217
218         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");
219
220         private static System.IntPtr animations_get(System.IntPtr obj, System.IntPtr pd)
221         {
222             Eina.Log.Debug("function efl_animation_group_animations_get was called");
223             var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
224             if (ws != null)
225             {
226             Eina.List<Efl.Canvas.Animation> _ret_var = default(Eina.List<Efl.Canvas.Animation>);
227                 try
228                 {
229                     _ret_var = ((AnimationGroup)ws.Target).GetAnimations();
230                 }
231                 catch (Exception e)
232                 {
233                     Eina.Log.Warning($"Callback error: {e.ToString()}");
234                     Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
235                 }
236
237         return _ret_var.Handle;
238
239             }
240             else
241             {
242                 return efl_animation_group_animations_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
243             }
244         }
245
246         private static efl_animation_group_animations_get_delegate efl_animation_group_animations_get_static_delegate;
247
248         #pragma warning restore CA1707, CS1591, SA1300, SA1600
249
250 }
251 }
252 }
253
254 }
255