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