2 #pragma warning disable CS1591
4 using System.Runtime.InteropServices;
5 using System.Collections.Generic;
7 using System.Threading;
8 using System.ComponentModel;
11 /// <summary>Efl cubic_bezier interpolator class</summary>
12 /// <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>
13 [Efl.CubicBezierInterpolator.NativeMethods]
14 [Efl.Eo.BindingEntity]
15 public class CubicBezierInterpolator : Efl.Object, Efl.IInterpolator
17 /// <summary>Pointer to the native class description.</summary>
18 public override System.IntPtr NativeClass
22 if (((object)this).GetType() == typeof(CubicBezierInterpolator))
24 return GetEflClassStatic();
28 return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()];
33 [System.Runtime.InteropServices.DllImport(efl.Libs.Ecore)] internal static extern System.IntPtr
34 efl_cubic_bezier_interpolator_class_get();
35 /// <summary>Initializes a new instance of the <see cref="CubicBezierInterpolator"/> class.</summary>
36 /// <param name="parent">Parent instance.</param>
37 public CubicBezierInterpolator(Efl.Object parent= null
38 ) : base(efl_cubic_bezier_interpolator_class_get(), parent)
40 FinishInstantiation();
43 /// <summary>Subclasses should override this constructor if they are expected to be instantiated from native code.
44 /// Do not call this constructor directly.</summary>
45 /// <param name="ch">Tag struct storing the native handle of the object being constructed.</param>
46 protected CubicBezierInterpolator(ConstructingHandle ch) : base(ch)
50 /// <summary>Initializes a new instance of the <see cref="CubicBezierInterpolator"/> class.
51 /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly.</summary>
52 /// <param name="wh">The native pointer to be wrapped.</param>
53 protected CubicBezierInterpolator(Efl.Eo.Globals.WrappingHandle wh) : base(wh)
57 /// <summary>Initializes a new instance of the <see cref="CubicBezierInterpolator"/> class.
58 /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly.</summary>
59 /// <param name="baseKlass">The pointer to the base native Eo class.</param>
60 /// <param name="parent">The Efl.Object parent of this instance.</param>
61 protected CubicBezierInterpolator(IntPtr baseKlass, Efl.Object parent) : base(baseKlass, parent)
65 /// <summary>Factors property</summary>
66 /// <param name="factor1">First factor of the interpolation function.</param>
67 /// <param name="factor2">Second factor of the interpolation function.</param>
68 /// <param name="factor3">Third factor of the interpolation function.</param>
69 /// <param name="factor4">Fourth factor of the interpolation function.</param>
70 virtual public void GetFactors(out double factor1, out double factor2, out double factor3, out double factor4) {
71 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);
72 Eina.Error.RaiseIfUnhandledException();
74 /// <summary>Factors property</summary>
75 /// <param name="factor1">First factor of the interpolation function.</param>
76 /// <param name="factor2">Second factor of the interpolation function.</param>
77 /// <param name="factor3">Third factor of the interpolation function.</param>
78 /// <param name="factor4">Fourth factor of the interpolation function.</param>
79 virtual public void SetFactors(double factor1, double factor2, double factor3, double factor4) {
80 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);
81 Eina.Error.RaiseIfUnhandledException();
83 /// <summary>Interpolate the given value.</summary>
84 /// <param name="progress">Input value mapped from 0.0 to 1.0.</param>
85 /// <returns>Output value calculated by interpolating the input value.</returns>
86 virtual public double Interpolate(double progress) {
87 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);
88 Eina.Error.RaiseIfUnhandledException();
91 /// <summary>Factors property</summary>
92 /// <value>First factor of the interpolation function.</value>
93 public (double, double, double, double) Factors {
95 double _out_factor1 = default(double);
96 double _out_factor2 = default(double);
97 double _out_factor3 = default(double);
98 double _out_factor4 = default(double);
99 GetFactors(out _out_factor1,out _out_factor2,out _out_factor3,out _out_factor4);
100 return (_out_factor1,_out_factor2,_out_factor3,_out_factor4);
102 set { SetFactors( value.Item1, value.Item2, value.Item3, value.Item4); }
104 private static IntPtr GetEflClassStatic()
106 return Efl.CubicBezierInterpolator.efl_cubic_bezier_interpolator_class_get();
108 /// <summary>Wrapper for native methods and virtual method delegates.
109 /// For internal use by generated code only.</summary>
110 public new class NativeMethods : Efl.Object.NativeMethods
112 private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Ecore);
113 /// <summary>Gets the list of Eo operations to override.</summary>
114 /// <returns>The list of Eo operations to be overload.</returns>
115 public override System.Collections.Generic.List<Efl_Op_Description> GetEoOps(System.Type type)
117 var descs = new System.Collections.Generic.List<Efl_Op_Description>();
118 var methods = Efl.Eo.Globals.GetUserMethods(type);
120 if (efl_cubic_bezier_interpolator_factors_get_static_delegate == null)
122 efl_cubic_bezier_interpolator_factors_get_static_delegate = new efl_cubic_bezier_interpolator_factors_get_delegate(factors_get);
125 if (methods.FirstOrDefault(m => m.Name == "GetFactors") != null)
127 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) });
130 if (efl_cubic_bezier_interpolator_factors_set_static_delegate == null)
132 efl_cubic_bezier_interpolator_factors_set_static_delegate = new efl_cubic_bezier_interpolator_factors_set_delegate(factors_set);
135 if (methods.FirstOrDefault(m => m.Name == "SetFactors") != null)
137 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) });
140 if (efl_interpolator_interpolate_static_delegate == null)
142 efl_interpolator_interpolate_static_delegate = new efl_interpolator_interpolate_delegate(interpolate);
145 if (methods.FirstOrDefault(m => m.Name == "Interpolate") != null)
147 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) });
150 descs.AddRange(base.GetEoOps(type));
153 /// <summary>Returns the Eo class for the native methods of this class.</summary>
154 /// <returns>The native class pointer.</returns>
155 public override IntPtr GetEflClass()
157 return Efl.CubicBezierInterpolator.efl_cubic_bezier_interpolator_class_get();
160 #pragma warning disable CA1707, CS1591, SA1300, SA1600
163 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);
166 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);
168 public static Efl.Eo.FunctionWrapper<efl_cubic_bezier_interpolator_factors_get_api_delegate> efl_cubic_bezier_interpolator_factors_get_ptr = new Efl.Eo.FunctionWrapper<efl_cubic_bezier_interpolator_factors_get_api_delegate>(Module, "efl_cubic_bezier_interpolator_factors_get");
170 private static void factors_get(System.IntPtr obj, System.IntPtr pd, out double factor1, out double factor2, out double factor3, out double factor4)
172 Eina.Log.Debug("function efl_cubic_bezier_interpolator_factors_get was called");
173 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
176 factor1 = default(double); factor2 = default(double); factor3 = default(double); factor4 = default(double);
179 ((CubicBezierInterpolator)ws.Target).GetFactors(out factor1, out factor2, out factor3, out factor4);
183 Eina.Log.Warning($"Callback error: {e.ToString()}");
184 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
191 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);
195 private static efl_cubic_bezier_interpolator_factors_get_delegate efl_cubic_bezier_interpolator_factors_get_static_delegate;
198 private delegate void efl_cubic_bezier_interpolator_factors_set_delegate(System.IntPtr obj, System.IntPtr pd, double factor1, double factor2, double factor3, double factor4);
201 public delegate void efl_cubic_bezier_interpolator_factors_set_api_delegate(System.IntPtr obj, double factor1, double factor2, double factor3, double factor4);
203 public static Efl.Eo.FunctionWrapper<efl_cubic_bezier_interpolator_factors_set_api_delegate> efl_cubic_bezier_interpolator_factors_set_ptr = new Efl.Eo.FunctionWrapper<efl_cubic_bezier_interpolator_factors_set_api_delegate>(Module, "efl_cubic_bezier_interpolator_factors_set");
205 private static void factors_set(System.IntPtr obj, System.IntPtr pd, double factor1, double factor2, double factor3, double factor4)
207 Eina.Log.Debug("function efl_cubic_bezier_interpolator_factors_set was called");
208 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
214 ((CubicBezierInterpolator)ws.Target).SetFactors(factor1, factor2, factor3, factor4);
218 Eina.Log.Warning($"Callback error: {e.ToString()}");
219 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
226 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);
230 private static efl_cubic_bezier_interpolator_factors_set_delegate efl_cubic_bezier_interpolator_factors_set_static_delegate;
233 private delegate double efl_interpolator_interpolate_delegate(System.IntPtr obj, System.IntPtr pd, double progress);
236 public delegate double efl_interpolator_interpolate_api_delegate(System.IntPtr obj, double progress);
238 public static Efl.Eo.FunctionWrapper<efl_interpolator_interpolate_api_delegate> efl_interpolator_interpolate_ptr = new Efl.Eo.FunctionWrapper<efl_interpolator_interpolate_api_delegate>(Module, "efl_interpolator_interpolate");
240 private static double interpolate(System.IntPtr obj, System.IntPtr pd, double progress)
242 Eina.Log.Debug("function efl_interpolator_interpolate was called");
243 var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
246 double _ret_var = default(double);
249 _ret_var = ((CubicBezierInterpolator)ws.Target).Interpolate(progress);
253 Eina.Log.Warning($"Callback error: {e.ToString()}");
254 Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
262 return efl_interpolator_interpolate_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), progress);
266 private static efl_interpolator_interpolate_delegate efl_interpolator_interpolate_static_delegate;
268 #pragma warning restore CA1707, CS1591, SA1300, SA1600
275 #pragma warning disable CS1591
276 public static class EflCubicBezierInterpolator_ExtensionMethods {
279 #pragma warning restore CS1591