[EflSharp] Update Circle and efl cs files (#819)
[platform/core/csapi/tizenfx.git] / internals / src / EflSharp / EflSharp / efl / efl_cubic_bezier_interpolator.eo.cs
1 #pragma warning disable CS1591
2 using System;
3 using System.Runtime.InteropServices;
4 using System.Collections.Generic;
5 using System.Linq;
6 using System.Threading;
7 using System.ComponentModel;
8 namespace Efl {
9
10 /// <summary>Efl cubic_bezier interpolator class</summary>
11 [Efl.CubicBezierInterpolator.NativeMethods]
12 public class CubicBezierInterpolator : Efl.Object, Efl.Eo.IWrapper,Efl.IInterpolator
13 {
14     ///<summary>Pointer to the native class description.</summary>
15     public override System.IntPtr NativeClass
16     {
17         get
18         {
19             if (((object)this).GetType() == typeof(CubicBezierInterpolator))
20             {
21                 return GetEflClassStatic();
22             }
23             else
24             {
25                 return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()];
26             }
27         }
28     }
29
30     [System.Runtime.InteropServices.DllImport(efl.Libs.Ecore)] internal static extern System.IntPtr
31         efl_cubic_bezier_interpolator_class_get();
32     /// <summary>Initializes a new instance of the <see cref="CubicBezierInterpolator"/> class.</summary>
33     /// <param name="parent">Parent instance.</param>
34     public CubicBezierInterpolator(Efl.Object parent= null
35             ) : base(efl_cubic_bezier_interpolator_class_get(), typeof(CubicBezierInterpolator), parent)
36     {
37         FinishInstantiation();
38     }
39
40     /// <summary>Initializes a new instance of the <see cref="CubicBezierInterpolator"/> class.
41     /// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly.</summary>
42     /// <param name="raw">The native pointer to be wrapped.</param>
43     protected CubicBezierInterpolator(System.IntPtr raw) : base(raw)
44     {
45             }
46
47     /// <summary>Initializes a new instance of the <see cref="CubicBezierInterpolator"/> class.
48     /// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly.</summary>
49     /// <param name="baseKlass">The pointer to the base native Eo class.</param>
50     /// <param name="managedType">The managed type of the public constructor that originated this call.</param>
51     /// <param name="parent">The Efl.Object parent of this instance.</param>
52     protected CubicBezierInterpolator(IntPtr baseKlass, System.Type managedType, Efl.Object parent) : base(baseKlass, managedType, parent)
53     {
54     }
55
56     /// <summary>Verifies if the given object is equal to this one.</summary>
57     /// <param name="instance">The object to compare to.</param>
58     /// <returns>True if both objects point to the same native object.</returns>
59     public override bool Equals(object instance)
60     {
61         var other = instance as Efl.Object;
62         if (other == null)
63         {
64             return false;
65         }
66         return this.NativeHandle == other.NativeHandle;
67     }
68
69     /// <summary>Gets the hash code for this object based on the native pointer it points to.</summary>
70     /// <returns>The value of the pointer, to be used as the hash code of this object.</returns>
71     public override int GetHashCode()
72     {
73         return this.NativeHandle.ToInt32();
74     }
75
76     /// <summary>Turns the native pointer into a string representation.</summary>
77     /// <returns>A string with the type and the native pointer for this object.</returns>
78     public override String ToString()
79     {
80         return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]";
81     }
82
83     /// <summary>Factors property</summary>
84     /// <param name="factor1">First factor of the interpolation function.</param>
85     /// <param name="factor2">Second factor of the interpolation function.</param>
86     /// <param name="factor3">Third factor of the interpolation function.</param>
87     /// <param name="factor4">Fourth factor of the interpolation function.</param>
88     virtual public void GetFactors(out double factor1, out double factor2, out double factor3, out double factor4) {
89                                                                                                          Efl.CubicBezierInterpolator.NativeMethods.efl_cubic_bezier_interpolator_factors_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),out factor1, out factor2, out factor3, out factor4);
90         Eina.Error.RaiseIfUnhandledException();
91                                                                          }
92     /// <summary>Factors property</summary>
93     /// <param name="factor1">First factor of the interpolation function.</param>
94     /// <param name="factor2">Second factor of the interpolation function.</param>
95     /// <param name="factor3">Third factor of the interpolation function.</param>
96     /// <param name="factor4">Fourth factor of the interpolation function.</param>
97     virtual public void SetFactors(double factor1, double factor2, double factor3, double factor4) {
98                                                                                                          Efl.CubicBezierInterpolator.NativeMethods.efl_cubic_bezier_interpolator_factors_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),factor1, factor2, factor3, factor4);
99         Eina.Error.RaiseIfUnhandledException();
100                                                                          }
101     /// <summary>Interpolate the given value.</summary>
102     /// <param name="progress">Input value mapped from 0.0 to 1.0.</param>
103     /// <returns>Output value calculated by interpolating the input value.</returns>
104     virtual public double Interpolate(double progress) {
105                                  var _ret_var = Efl.IInterpolatorConcrete.NativeMethods.efl_interpolator_interpolate_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),progress);
106         Eina.Error.RaiseIfUnhandledException();
107                         return _ret_var;
108  }
109     private static IntPtr GetEflClassStatic()
110     {
111         return Efl.CubicBezierInterpolator.efl_cubic_bezier_interpolator_class_get();
112     }
113     /// <summary>Wrapper for native methods and virtual method delegates.
114     /// For internal use by generated code only.</summary>
115     public new class NativeMethods : Efl.Object.NativeMethods
116     {
117         private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule(    efl.Libs.Ecore);
118         /// <summary>Gets the list of Eo operations to override.</summary>
119         /// <returns>The list of Eo operations to be overload.</returns>
120         public override System.Collections.Generic.List<Efl_Op_Description> GetEoOps(System.Type type)
121         {
122             var descs = new System.Collections.Generic.List<Efl_Op_Description>();
123             var methods = Efl.Eo.Globals.GetUserMethods(type);
124
125             if (efl_cubic_bezier_interpolator_factors_get_static_delegate == null)
126             {
127                 efl_cubic_bezier_interpolator_factors_get_static_delegate = new efl_cubic_bezier_interpolator_factors_get_delegate(factors_get);
128             }
129
130             if (methods.FirstOrDefault(m => m.Name == "GetFactors") != null)
131             {
132                 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) });
133             }
134
135             if (efl_cubic_bezier_interpolator_factors_set_static_delegate == null)
136             {
137                 efl_cubic_bezier_interpolator_factors_set_static_delegate = new efl_cubic_bezier_interpolator_factors_set_delegate(factors_set);
138             }
139
140             if (methods.FirstOrDefault(m => m.Name == "SetFactors") != null)
141             {
142                 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) });
143             }
144
145             if (efl_interpolator_interpolate_static_delegate == null)
146             {
147                 efl_interpolator_interpolate_static_delegate = new efl_interpolator_interpolate_delegate(interpolate);
148             }
149
150             if (methods.FirstOrDefault(m => m.Name == "Interpolate") != null)
151             {
152                 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) });
153             }
154
155             descs.AddRange(base.GetEoOps(type));
156             return descs;
157         }
158         /// <summary>Returns the Eo class for the native methods of this class.</summary>
159         /// <returns>The native class pointer.</returns>
160         public override IntPtr GetEflClass()
161         {
162             return Efl.CubicBezierInterpolator.efl_cubic_bezier_interpolator_class_get();
163         }
164
165         #pragma warning disable CA1707, SA1300, SA1600
166
167         
168         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);
169
170         
171         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);
172
173         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");
174
175         private static void factors_get(System.IntPtr obj, System.IntPtr pd, out double factor1, out double factor2, out double factor3, out double factor4)
176         {
177             Eina.Log.Debug("function efl_cubic_bezier_interpolator_factors_get was called");
178             Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
179             if (wrapper != null)
180             {
181                                         factor1 = default(double);        factor2 = default(double);        factor3 = default(double);        factor4 = default(double);                                            
182                 try
183                 {
184                     ((CubicBezierInterpolator)wrapper).GetFactors(out factor1, out factor2, out factor3, out factor4);
185                 }
186                 catch (Exception e)
187                 {
188                     Eina.Log.Warning($"Callback error: {e.ToString()}");
189                     Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
190                 }
191
192                                                                         
193             }
194             else
195             {
196                 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);
197             }
198         }
199
200         private static efl_cubic_bezier_interpolator_factors_get_delegate efl_cubic_bezier_interpolator_factors_get_static_delegate;
201
202         
203         private delegate void efl_cubic_bezier_interpolator_factors_set_delegate(System.IntPtr obj, System.IntPtr pd,  double factor1,  double factor2,  double factor3,  double factor4);
204
205         
206         public delegate void efl_cubic_bezier_interpolator_factors_set_api_delegate(System.IntPtr obj,  double factor1,  double factor2,  double factor3,  double factor4);
207
208         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");
209
210         private static void factors_set(System.IntPtr obj, System.IntPtr pd, double factor1, double factor2, double factor3, double factor4)
211         {
212             Eina.Log.Debug("function efl_cubic_bezier_interpolator_factors_set was called");
213             Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
214             if (wrapper != null)
215             {
216                                                                                                             
217                 try
218                 {
219                     ((CubicBezierInterpolator)wrapper).SetFactors(factor1, factor2, factor3, factor4);
220                 }
221                 catch (Exception e)
222                 {
223                     Eina.Log.Warning($"Callback error: {e.ToString()}");
224                     Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
225                 }
226
227                                                                         
228             }
229             else
230             {
231                 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);
232             }
233         }
234
235         private static efl_cubic_bezier_interpolator_factors_set_delegate efl_cubic_bezier_interpolator_factors_set_static_delegate;
236
237         
238         private delegate double efl_interpolator_interpolate_delegate(System.IntPtr obj, System.IntPtr pd,  double progress);
239
240         
241         public delegate double efl_interpolator_interpolate_api_delegate(System.IntPtr obj,  double progress);
242
243         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");
244
245         private static double interpolate(System.IntPtr obj, System.IntPtr pd, double progress)
246         {
247             Eina.Log.Debug("function efl_interpolator_interpolate was called");
248             Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.PrivateDataGet(pd);
249             if (wrapper != null)
250             {
251                                     double _ret_var = default(double);
252                 try
253                 {
254                     _ret_var = ((CubicBezierInterpolator)wrapper).Interpolate(progress);
255                 }
256                 catch (Exception e)
257                 {
258                     Eina.Log.Warning($"Callback error: {e.ToString()}");
259                     Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
260                 }
261
262                         return _ret_var;
263
264             }
265             else
266             {
267                 return efl_interpolator_interpolate_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), progress);
268             }
269         }
270
271         private static efl_interpolator_interpolate_delegate efl_interpolator_interpolate_static_delegate;
272
273         #pragma warning restore CA1707, SA1300, SA1600
274
275 }
276 }
277 }
278