#define EFL_BETA #pragma warning disable CS1591 using System; using System.Runtime.InteropServices; using System.Collections.Generic; using System.Linq; using System.Threading; using System.ComponentModel; namespace Efl { namespace Canvas { /// Efl group animation abstract class /// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.Canvas.AnimationGroup.NativeMethods] [Efl.Eo.BindingEntity] public abstract class AnimationGroup : Efl.Canvas.Animation { /// Pointer to the native class description. public override System.IntPtr NativeClass { get { if (((object)this).GetType() == typeof(AnimationGroup)) { return GetEflClassStatic(); } else { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; } } } [System.Runtime.InteropServices.DllImport(efl.Libs.Evas)] internal static extern System.IntPtr efl_canvas_animation_group_class_get(); /// Initializes a new instance of the class. /// Parent instance. public AnimationGroup(Efl.Object parent= null ) : base(efl_canvas_animation_group_class_get(), parent) { FinishInstantiation(); } /// Subclasses should override this constructor if they are expected to be instantiated from native code. /// Do not call this constructor directly. /// Tag struct storing the native handle of the object being constructed. protected AnimationGroup(ConstructingHandle ch) : base(ch) { } /// Initializes a new instance of the class. /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly. /// The native pointer to be wrapped. protected AnimationGroup(Efl.Eo.Globals.WrappingHandle wh) : base(wh) { } [Efl.Eo.PrivateNativeClass] private class AnimationGroupRealized : AnimationGroup { private AnimationGroupRealized(Efl.Eo.Globals.WrappingHandle wh) : base(wh) { } } /// Initializes a new instance of the class. /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly. /// The pointer to the base native Eo class. /// The Efl.Object parent of this instance. protected AnimationGroup(IntPtr baseKlass, Efl.Object parent) : base(baseKlass, parent) { } /// Add the given animation to the animation group. /// The animation which needs to be added to the animation group virtual public void AddAnimation(Efl.Canvas.Animation animation) { 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); Eina.Error.RaiseIfUnhandledException(); } /// Delete the given animation from the animation group. /// The animation which needs to be deleted from the animation group virtual public void DelAnimation(Efl.Canvas.Animation animation) { 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); Eina.Error.RaiseIfUnhandledException(); } /// Get the animations of the animation group. /// The animations of the animation group virtual public Eina.List GetAnimations() { 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))); Eina.Error.RaiseIfUnhandledException(); return new Eina.List(_ret_var, false, false); } private static IntPtr GetEflClassStatic() { return Efl.Canvas.AnimationGroup.efl_canvas_animation_group_class_get(); } /// Wrapper for native methods and virtual method delegates. /// For internal use by generated code only. public new class NativeMethods : Efl.Canvas.Animation.NativeMethods { private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Evas); /// Gets the list of Eo operations to override. /// The list of Eo operations to be overload. public override System.Collections.Generic.List GetEoOps(System.Type type) { var descs = new System.Collections.Generic.List(); var methods = Efl.Eo.Globals.GetUserMethods(type); if (efl_animation_group_animation_add_static_delegate == null) { efl_animation_group_animation_add_static_delegate = new efl_animation_group_animation_add_delegate(animation_add); } if (methods.FirstOrDefault(m => m.Name == "AddAnimation") != null) { 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) }); } if (efl_animation_group_animation_del_static_delegate == null) { efl_animation_group_animation_del_static_delegate = new efl_animation_group_animation_del_delegate(animation_del); } if (methods.FirstOrDefault(m => m.Name == "DelAnimation") != null) { 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) }); } if (efl_animation_group_animations_get_static_delegate == null) { efl_animation_group_animations_get_static_delegate = new efl_animation_group_animations_get_delegate(animations_get); } if (methods.FirstOrDefault(m => m.Name == "GetAnimations") != null) { 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) }); } descs.AddRange(base.GetEoOps(type)); return descs; } /// Returns the Eo class for the native methods of this class. /// The native class pointer. public override IntPtr GetEflClass() { return Efl.Canvas.AnimationGroup.efl_canvas_animation_group_class_get(); } #pragma warning disable CA1707, CS1591, SA1300, SA1600 private delegate void efl_animation_group_animation_add_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Canvas.Animation animation); public delegate void efl_animation_group_animation_add_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Canvas.Animation animation); public static Efl.Eo.FunctionWrapper efl_animation_group_animation_add_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_animation_group_animation_add"); private static void animation_add(System.IntPtr obj, System.IntPtr pd, Efl.Canvas.Animation animation) { Eina.Log.Debug("function efl_animation_group_animation_add was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { try { ((AnimationGroup)ws.Target).AddAnimation(animation); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } } else { efl_animation_group_animation_add_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), animation); } } private static efl_animation_group_animation_add_delegate efl_animation_group_animation_add_static_delegate; private delegate void efl_animation_group_animation_del_delegate(System.IntPtr obj, System.IntPtr pd, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Canvas.Animation animation); public delegate void efl_animation_group_animation_del_api_delegate(System.IntPtr obj, [MarshalAs(UnmanagedType.CustomMarshaler, MarshalTypeRef=typeof(Efl.Eo.MarshalEo))] Efl.Canvas.Animation animation); public static Efl.Eo.FunctionWrapper efl_animation_group_animation_del_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_animation_group_animation_del"); private static void animation_del(System.IntPtr obj, System.IntPtr pd, Efl.Canvas.Animation animation) { Eina.Log.Debug("function efl_animation_group_animation_del was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { try { ((AnimationGroup)ws.Target).DelAnimation(animation); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } } else { efl_animation_group_animation_del_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), animation); } } private static efl_animation_group_animation_del_delegate efl_animation_group_animation_del_static_delegate; private delegate System.IntPtr efl_animation_group_animations_get_delegate(System.IntPtr obj, System.IntPtr pd); public delegate System.IntPtr efl_animation_group_animations_get_api_delegate(System.IntPtr obj); public static Efl.Eo.FunctionWrapper efl_animation_group_animations_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_animation_group_animations_get"); private static System.IntPtr animations_get(System.IntPtr obj, System.IntPtr pd) { Eina.Log.Debug("function efl_animation_group_animations_get was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { Eina.List _ret_var = default(Eina.List); try { _ret_var = ((AnimationGroup)ws.Target).GetAnimations(); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } return _ret_var.Handle; } else { return efl_animation_group_animations_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj))); } } private static efl_animation_group_animations_get_delegate efl_animation_group_animations_get_static_delegate; #pragma warning restore CA1707, CS1591, SA1300, SA1600 } } } } #if EFL_BETA #pragma warning disable CS1591 public static class Efl_CanvasAnimationGroup_ExtensionMethods { } #pragma warning restore CS1591 #endif