2 #pragma warning disable CS1591
4 using System.Runtime.InteropServices;
5 using System.Collections.Generic;
7 using System.Threading;
8 using System.ComponentModel;
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
19 /// <summary>Pointer to the native class description.</summary>
20 public override System.IntPtr NativeClass
24 if (((object)this).GetType() == typeof(AnimationGroup))
26 return GetEflClassStatic();
30 return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()];
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)
42 FinishInstantiation();
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)
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)
59 [Efl.Eo.PrivateNativeClass]
60 private class AnimationGroupRealized : AnimationGroup
62 private AnimationGroupRealized(Efl.Eo.Globals.WrappingHandle wh) : base(wh)
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)
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();
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();
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);
93 private static IntPtr GetEflClassStatic()
95 return Efl.Canvas.AnimationGroup.efl_canvas_animation_group_class_get();
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
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)
106 var descs = new System.Collections.Generic.List<Efl_Op_Description>();
107 var methods = Efl.Eo.Globals.GetUserMethods(type);
109 if (efl_animation_group_animation_add_static_delegate == null)
111 efl_animation_group_animation_add_static_delegate = new efl_animation_group_animation_add_delegate(animation_add);
114 if (methods.FirstOrDefault(m => m.Name == "AddAnimation") != null)
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) });
119 if (efl_animation_group_animation_del_static_delegate == null)
121 efl_animation_group_animation_del_static_delegate = new efl_animation_group_animation_del_delegate(animation_del);
124 if (methods.FirstOrDefault(m => m.Name == "DelAnimation") != null)
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) });
129 if (efl_animation_group_animations_get_static_delegate == null)
131 efl_animation_group_animations_get_static_delegate = new efl_animation_group_animations_get_delegate(animations_get);
134 if (methods.FirstOrDefault(m => m.Name == "GetAnimations") != null)
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) });
139 descs.AddRange(base.GetEoOps(type));
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()
146 return Efl.Canvas.AnimationGroup.efl_canvas_animation_group_class_get();
149 #pragma warning disable CA1707, CS1591, SA1300, SA1600
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);
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);
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");
159 private static void animation_add(System.IntPtr obj, System.IntPtr pd, Efl.Canvas.Animation animation)
161 Eina.Log.Debug("function efl_animation_group_animation_add was called");
162 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
168 ((AnimationGroup)ws.Target).AddAnimation(animation);
172 Eina.Log.Warning($"Callback error: {e.ToString()}");
173 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
180 efl_animation_group_animation_add_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), animation);
184 private static efl_animation_group_animation_add_delegate efl_animation_group_animation_add_static_delegate;
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);
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);
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");
194 private static void animation_del(System.IntPtr obj, System.IntPtr pd, Efl.Canvas.Animation animation)
196 Eina.Log.Debug("function efl_animation_group_animation_del was called");
197 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
203 ((AnimationGroup)ws.Target).DelAnimation(animation);
207 Eina.Log.Warning($"Callback error: {e.ToString()}");
208 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
215 efl_animation_group_animation_del_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), animation);
219 private static efl_animation_group_animation_del_delegate efl_animation_group_animation_del_static_delegate;
222 private delegate System.IntPtr efl_animation_group_animations_get_delegate(System.IntPtr obj, System.IntPtr pd);
225 public delegate System.IntPtr efl_animation_group_animations_get_api_delegate(System.IntPtr obj);
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");
229 private static System.IntPtr animations_get(System.IntPtr obj, System.IntPtr pd)
231 Eina.Log.Debug("function efl_animation_group_animations_get was called");
232 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
235 Eina.List<Efl.Canvas.Animation> _ret_var = default(Eina.List<Efl.Canvas.Animation>);
238 _ret_var = ((AnimationGroup)ws.Target).GetAnimations();
242 Eina.Log.Warning($"Callback error: {e.ToString()}");
243 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
246 return _ret_var.Handle;
251 return efl_animation_group_animations_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
255 private static efl_animation_group_animations_get_delegate efl_animation_group_animations_get_static_delegate;
257 #pragma warning restore CA1707, CS1591, SA1300, SA1600
266 #pragma warning disable CS1591
267 public static class Efl_CanvasAnimationGroup_ExtensionMethods {
269 #pragma warning restore CS1591