#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 { /// Efl cubic_bezier interpolator class /// This is a BETA class. It can be modified or removed in the future. Do not use it for product development. [Efl.CubicBezierInterpolator.NativeMethods] [Efl.Eo.BindingEntity] public class CubicBezierInterpolator : Efl.Object, Efl.IInterpolator { /// Pointer to the native class description. public override System.IntPtr NativeClass { get { if (((object)this).GetType() == typeof(CubicBezierInterpolator)) { return GetEflClassStatic(); } else { return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()]; } } } [System.Runtime.InteropServices.DllImport(efl.Libs.Ecore)] internal static extern System.IntPtr efl_cubic_bezier_interpolator_class_get(); /// Initializes a new instance of the class. /// Parent instance. public CubicBezierInterpolator(Efl.Object parent= null ) : base(efl_cubic_bezier_interpolator_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 CubicBezierInterpolator(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 CubicBezierInterpolator(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 CubicBezierInterpolator(IntPtr baseKlass, Efl.Object parent) : base(baseKlass, parent) { } /// Factors property /// First factor of the interpolation function. /// Second factor of the interpolation function. /// Third factor of the interpolation function. /// Fourth factor of the interpolation function. virtual public void GetFactors(out double factor1, out double factor2, out double factor3, out double factor4) { Efl.CubicBezierInterpolator.NativeMethods.efl_cubic_bezier_interpolator_factors_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),out factor1, out factor2, out factor3, out factor4); Eina.Error.RaiseIfUnhandledException(); } /// Factors property /// First factor of the interpolation function. /// Second factor of the interpolation function. /// Third factor of the interpolation function. /// Fourth factor of the interpolation function. virtual public void SetFactors(double factor1, double factor2, double factor3, double factor4) { Efl.CubicBezierInterpolator.NativeMethods.efl_cubic_bezier_interpolator_factors_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),factor1, factor2, factor3, factor4); Eina.Error.RaiseIfUnhandledException(); } /// Interpolate the given value. /// Input value mapped from 0.0 to 1.0. /// Output value calculated by interpolating the input value. virtual public double Interpolate(double progress) { var _ret_var = Efl.IInterpolatorConcrete.NativeMethods.efl_interpolator_interpolate_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),progress); Eina.Error.RaiseIfUnhandledException(); return _ret_var; } /// Factors property /// First factor of the interpolation function. public (double, double, double, double) Factors { get { double _out_factor1 = default(double); double _out_factor2 = default(double); double _out_factor3 = default(double); double _out_factor4 = default(double); GetFactors(out _out_factor1,out _out_factor2,out _out_factor3,out _out_factor4); return (_out_factor1,_out_factor2,_out_factor3,_out_factor4); } set { SetFactors( value.Item1, value.Item2, value.Item3, value.Item4); } } private static IntPtr GetEflClassStatic() { return Efl.CubicBezierInterpolator.efl_cubic_bezier_interpolator_class_get(); } /// Wrapper for native methods and virtual method delegates. /// For internal use by generated code only. public new class NativeMethods : Efl.Object.NativeMethods { private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Ecore); /// 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_cubic_bezier_interpolator_factors_get_static_delegate == null) { efl_cubic_bezier_interpolator_factors_get_static_delegate = new efl_cubic_bezier_interpolator_factors_get_delegate(factors_get); } if (methods.FirstOrDefault(m => m.Name == "GetFactors") != null) { descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_cubic_bezier_interpolator_factors_get"), func = Marshal.GetFunctionPointerForDelegate(efl_cubic_bezier_interpolator_factors_get_static_delegate) }); } if (efl_cubic_bezier_interpolator_factors_set_static_delegate == null) { efl_cubic_bezier_interpolator_factors_set_static_delegate = new efl_cubic_bezier_interpolator_factors_set_delegate(factors_set); } if (methods.FirstOrDefault(m => m.Name == "SetFactors") != null) { descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_cubic_bezier_interpolator_factors_set"), func = Marshal.GetFunctionPointerForDelegate(efl_cubic_bezier_interpolator_factors_set_static_delegate) }); } if (efl_interpolator_interpolate_static_delegate == null) { efl_interpolator_interpolate_static_delegate = new efl_interpolator_interpolate_delegate(interpolate); } if (methods.FirstOrDefault(m => m.Name == "Interpolate") != null) { descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_interpolator_interpolate"), func = Marshal.GetFunctionPointerForDelegate(efl_interpolator_interpolate_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.CubicBezierInterpolator.efl_cubic_bezier_interpolator_class_get(); } #pragma warning disable CA1707, CS1591, SA1300, SA1600 private delegate void efl_cubic_bezier_interpolator_factors_get_delegate(System.IntPtr obj, System.IntPtr pd, out double factor1, out double factor2, out double factor3, out double factor4); public delegate void efl_cubic_bezier_interpolator_factors_get_api_delegate(System.IntPtr obj, out double factor1, out double factor2, out double factor3, out double factor4); public static Efl.Eo.FunctionWrapper efl_cubic_bezier_interpolator_factors_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_cubic_bezier_interpolator_factors_get"); private static void factors_get(System.IntPtr obj, System.IntPtr pd, out double factor1, out double factor2, out double factor3, out double factor4) { Eina.Log.Debug("function efl_cubic_bezier_interpolator_factors_get was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { factor1 = default(double); factor2 = default(double); factor3 = default(double); factor4 = default(double); try { ((CubicBezierInterpolator)ws.Target).GetFactors(out factor1, out factor2, out factor3, out factor4); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } } else { efl_cubic_bezier_interpolator_factors_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out factor1, out factor2, out factor3, out factor4); } } private static efl_cubic_bezier_interpolator_factors_get_delegate efl_cubic_bezier_interpolator_factors_get_static_delegate; private delegate void efl_cubic_bezier_interpolator_factors_set_delegate(System.IntPtr obj, System.IntPtr pd, double factor1, double factor2, double factor3, double factor4); public delegate void efl_cubic_bezier_interpolator_factors_set_api_delegate(System.IntPtr obj, double factor1, double factor2, double factor3, double factor4); public static Efl.Eo.FunctionWrapper efl_cubic_bezier_interpolator_factors_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_cubic_bezier_interpolator_factors_set"); private static void factors_set(System.IntPtr obj, System.IntPtr pd, double factor1, double factor2, double factor3, double factor4) { Eina.Log.Debug("function efl_cubic_bezier_interpolator_factors_set was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { try { ((CubicBezierInterpolator)ws.Target).SetFactors(factor1, factor2, factor3, factor4); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } } else { efl_cubic_bezier_interpolator_factors_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), factor1, factor2, factor3, factor4); } } private static efl_cubic_bezier_interpolator_factors_set_delegate efl_cubic_bezier_interpolator_factors_set_static_delegate; private delegate double efl_interpolator_interpolate_delegate(System.IntPtr obj, System.IntPtr pd, double progress); public delegate double efl_interpolator_interpolate_api_delegate(System.IntPtr obj, double progress); public static Efl.Eo.FunctionWrapper efl_interpolator_interpolate_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_interpolator_interpolate"); private static double interpolate(System.IntPtr obj, System.IntPtr pd, double progress) { Eina.Log.Debug("function efl_interpolator_interpolate was called"); var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj); if (ws != null) { double _ret_var = default(double); try { _ret_var = ((CubicBezierInterpolator)ws.Target).Interpolate(progress); } catch (Exception e) { Eina.Log.Warning($"Callback error: {e.ToString()}"); Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION); } return _ret_var; } else { return efl_interpolator_interpolate_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), progress); } } private static efl_interpolator_interpolate_delegate efl_interpolator_interpolate_static_delegate; #pragma warning restore CA1707, CS1591, SA1300, SA1600 } } } #if EFL_BETA #pragma warning disable CS1591 public static class EflCubicBezierInterpolator_ExtensionMethods { } #pragma warning restore CS1591 #endif