[EflSharp] Update Circle and efl cs files (#896)
[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.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>Factors property</summary>
57     /// <param name="factor1">First factor of the interpolation function.</param>
58     /// <param name="factor2">Second factor of the interpolation function.</param>
59     /// <param name="factor3">Third factor of the interpolation function.</param>
60     /// <param name="factor4">Fourth factor of the interpolation function.</param>
61     virtual public void GetFactors(out double factor1, out double factor2, out double factor3, out double factor4) {
62                                                                                                          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);
63         Eina.Error.RaiseIfUnhandledException();
64                                                                          }
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 SetFactors(double factor1, double factor2, double factor3, double factor4) {
71                                                                                                          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);
72         Eina.Error.RaiseIfUnhandledException();
73                                                                          }
74     /// <summary>Interpolate the given value.</summary>
75     /// <param name="progress">Input value mapped from 0.0 to 1.0.</param>
76     /// <returns>Output value calculated by interpolating the input value.</returns>
77     virtual public double Interpolate(double progress) {
78                                  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);
79         Eina.Error.RaiseIfUnhandledException();
80                         return _ret_var;
81  }
82     private static IntPtr GetEflClassStatic()
83     {
84         return Efl.CubicBezierInterpolator.efl_cubic_bezier_interpolator_class_get();
85     }
86     /// <summary>Wrapper for native methods and virtual method delegates.
87     /// For internal use by generated code only.</summary>
88     public new class NativeMethods : Efl.Object.NativeMethods
89     {
90         private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule(    efl.Libs.Ecore);
91         /// <summary>Gets the list of Eo operations to override.</summary>
92         /// <returns>The list of Eo operations to be overload.</returns>
93         public override System.Collections.Generic.List<Efl_Op_Description> GetEoOps(System.Type type)
94         {
95             var descs = new System.Collections.Generic.List<Efl_Op_Description>();
96             var methods = Efl.Eo.Globals.GetUserMethods(type);
97
98             if (efl_cubic_bezier_interpolator_factors_get_static_delegate == null)
99             {
100                 efl_cubic_bezier_interpolator_factors_get_static_delegate = new efl_cubic_bezier_interpolator_factors_get_delegate(factors_get);
101             }
102
103             if (methods.FirstOrDefault(m => m.Name == "GetFactors") != null)
104             {
105                 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) });
106             }
107
108             if (efl_cubic_bezier_interpolator_factors_set_static_delegate == null)
109             {
110                 efl_cubic_bezier_interpolator_factors_set_static_delegate = new efl_cubic_bezier_interpolator_factors_set_delegate(factors_set);
111             }
112
113             if (methods.FirstOrDefault(m => m.Name == "SetFactors") != null)
114             {
115                 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) });
116             }
117
118             if (efl_interpolator_interpolate_static_delegate == null)
119             {
120                 efl_interpolator_interpolate_static_delegate = new efl_interpolator_interpolate_delegate(interpolate);
121             }
122
123             if (methods.FirstOrDefault(m => m.Name == "Interpolate") != null)
124             {
125                 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) });
126             }
127
128             descs.AddRange(base.GetEoOps(type));
129             return descs;
130         }
131         /// <summary>Returns the Eo class for the native methods of this class.</summary>
132         /// <returns>The native class pointer.</returns>
133         public override IntPtr GetEflClass()
134         {
135             return Efl.CubicBezierInterpolator.efl_cubic_bezier_interpolator_class_get();
136         }
137
138         #pragma warning disable CA1707, CS1591, SA1300, SA1600
139
140         
141         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);
142
143         
144         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);
145
146         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");
147
148         private static void factors_get(System.IntPtr obj, System.IntPtr pd, out double factor1, out double factor2, out double factor3, out double factor4)
149         {
150             Eina.Log.Debug("function efl_cubic_bezier_interpolator_factors_get was called");
151             var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
152             if (ws != null)
153             {
154                                         factor1 = default(double);        factor2 = default(double);        factor3 = default(double);        factor4 = default(double);                                            
155                 try
156                 {
157                     ((CubicBezierInterpolator)ws.Target).GetFactors(out factor1, out factor2, out factor3, out factor4);
158                 }
159                 catch (Exception e)
160                 {
161                     Eina.Log.Warning($"Callback error: {e.ToString()}");
162                     Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
163                 }
164
165                                                                         
166             }
167             else
168             {
169                 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);
170             }
171         }
172
173         private static efl_cubic_bezier_interpolator_factors_get_delegate efl_cubic_bezier_interpolator_factors_get_static_delegate;
174
175         
176         private delegate void efl_cubic_bezier_interpolator_factors_set_delegate(System.IntPtr obj, System.IntPtr pd,  double factor1,  double factor2,  double factor3,  double factor4);
177
178         
179         public delegate void efl_cubic_bezier_interpolator_factors_set_api_delegate(System.IntPtr obj,  double factor1,  double factor2,  double factor3,  double factor4);
180
181         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");
182
183         private static void factors_set(System.IntPtr obj, System.IntPtr pd, double factor1, double factor2, double factor3, double factor4)
184         {
185             Eina.Log.Debug("function efl_cubic_bezier_interpolator_factors_set was called");
186             var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
187             if (ws != null)
188             {
189                                                                                                             
190                 try
191                 {
192                     ((CubicBezierInterpolator)ws.Target).SetFactors(factor1, factor2, factor3, factor4);
193                 }
194                 catch (Exception e)
195                 {
196                     Eina.Log.Warning($"Callback error: {e.ToString()}");
197                     Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
198                 }
199
200                                                                         
201             }
202             else
203             {
204                 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);
205             }
206         }
207
208         private static efl_cubic_bezier_interpolator_factors_set_delegate efl_cubic_bezier_interpolator_factors_set_static_delegate;
209
210         
211         private delegate double efl_interpolator_interpolate_delegate(System.IntPtr obj, System.IntPtr pd,  double progress);
212
213         
214         public delegate double efl_interpolator_interpolate_api_delegate(System.IntPtr obj,  double progress);
215
216         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");
217
218         private static double interpolate(System.IntPtr obj, System.IntPtr pd, double progress)
219         {
220             Eina.Log.Debug("function efl_interpolator_interpolate was called");
221             var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
222             if (ws != null)
223             {
224                                     double _ret_var = default(double);
225                 try
226                 {
227                     _ret_var = ((CubicBezierInterpolator)ws.Target).Interpolate(progress);
228                 }
229                 catch (Exception e)
230                 {
231                     Eina.Log.Warning($"Callback error: {e.ToString()}");
232                     Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
233                 }
234
235                         return _ret_var;
236
237             }
238             else
239             {
240                 return efl_interpolator_interpolate_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), progress);
241             }
242         }
243
244         private static efl_interpolator_interpolate_delegate efl_interpolator_interpolate_static_delegate;
245
246         #pragma warning restore CA1707, CS1591, SA1300, SA1600
247
248 }
249 }
250 }
251