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