1 #pragma warning disable CS1591
3 using System.Runtime.InteropServices;
4 using System.Collections.Generic;
6 using System.Threading;
7 using System.ComponentModel;
12 /// <summary>Efl group animation abstract class</summary>
13 [Efl.Canvas.AnimationGroup.NativeMethods]
14 public abstract class AnimationGroup : Efl.Canvas.Animation
16 ///<summary>Pointer to the native class description.</summary>
17 public override System.IntPtr NativeClass
21 if (((object)this).GetType() == typeof(AnimationGroup))
23 return GetEflClassStatic();
27 return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()];
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)
39 FinishInstantiation();
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)
49 [Efl.Eo.PrivateNativeClass]
50 private class AnimationGroupRealized : AnimationGroup
52 private AnimationGroupRealized(IntPtr ptr) : base(ptr)
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)
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();
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();
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);
84 private static IntPtr GetEflClassStatic()
86 return Efl.Canvas.AnimationGroup.efl_canvas_animation_group_class_get();
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
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)
97 var descs = new System.Collections.Generic.List<Efl_Op_Description>();
98 var methods = Efl.Eo.Globals.GetUserMethods(type);
100 if (efl_animation_group_animation_add_static_delegate == null)
102 efl_animation_group_animation_add_static_delegate = new efl_animation_group_animation_add_delegate(animation_add);
105 if (methods.FirstOrDefault(m => m.Name == "AddAnimation") != null)
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) });
110 if (efl_animation_group_animation_del_static_delegate == null)
112 efl_animation_group_animation_del_static_delegate = new efl_animation_group_animation_del_delegate(animation_del);
115 if (methods.FirstOrDefault(m => m.Name == "DelAnimation") != null)
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) });
120 if (efl_animation_group_animations_get_static_delegate == null)
122 efl_animation_group_animations_get_static_delegate = new efl_animation_group_animations_get_delegate(animations_get);
125 if (methods.FirstOrDefault(m => m.Name == "GetAnimations") != null)
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) });
130 descs.AddRange(base.GetEoOps(type));
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()
137 return Efl.Canvas.AnimationGroup.efl_canvas_animation_group_class_get();
140 #pragma warning disable CA1707, CS1591, SA1300, SA1600
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);
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);
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");
150 private static void animation_add(System.IntPtr obj, System.IntPtr pd, Efl.Canvas.Animation animation)
152 Eina.Log.Debug("function efl_animation_group_animation_add was called");
153 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
159 ((AnimationGroup)ws.Target).AddAnimation(animation);
163 Eina.Log.Warning($"Callback error: {e.ToString()}");
164 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
171 efl_animation_group_animation_add_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), animation);
175 private static efl_animation_group_animation_add_delegate efl_animation_group_animation_add_static_delegate;
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);
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);
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");
185 private static void animation_del(System.IntPtr obj, System.IntPtr pd, Efl.Canvas.Animation animation)
187 Eina.Log.Debug("function efl_animation_group_animation_del was called");
188 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
194 ((AnimationGroup)ws.Target).DelAnimation(animation);
198 Eina.Log.Warning($"Callback error: {e.ToString()}");
199 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
206 efl_animation_group_animation_del_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), animation);
210 private static efl_animation_group_animation_del_delegate efl_animation_group_animation_del_static_delegate;
213 private delegate System.IntPtr efl_animation_group_animations_get_delegate(System.IntPtr obj, System.IntPtr pd);
216 public delegate System.IntPtr efl_animation_group_animations_get_api_delegate(System.IntPtr obj);
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");
220 private static System.IntPtr animations_get(System.IntPtr obj, System.IntPtr pd)
222 Eina.Log.Debug("function efl_animation_group_animations_get was called");
223 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
226 Eina.List<Efl.Canvas.Animation> _ret_var = default(Eina.List<Efl.Canvas.Animation>);
229 _ret_var = ((AnimationGroup)ws.Target).GetAnimations();
233 Eina.Log.Warning($"Callback error: {e.ToString()}");
234 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
237 return _ret_var.Handle;
242 return efl_animation_group_animations_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
246 private static efl_animation_group_animations_get_delegate efl_animation_group_animations_get_static_delegate;
248 #pragma warning restore CA1707, CS1591, SA1300, SA1600