[EflSharp] Update Circle and efl cs files (#995)
[platform/core/csapi/tizenfx.git] / internals / src / EflSharp / EflSharp / efl / efl_cubic_bezier_interpolator.eo.cs
1 #define EFL_BETA
2 #pragma warning disable CS1591
3 using System;
4 using System.Runtime.InteropServices;
5 using System.Collections.Generic;
6 using System.Linq;
7 using System.Threading;
8 using System.ComponentModel;
9 namespace Efl {
10
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
16 {
17     /// <summary>Pointer to the native class description.</summary>
18     public override System.IntPtr NativeClass
19     {
20         get
21         {
22             if (((object)this).GetType() == typeof(CubicBezierInterpolator))
23             {
24                 return GetEflClassStatic();
25             }
26             else
27             {
28                 return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()];
29             }
30         }
31     }
32
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)
39     {
40         FinishInstantiation();
41     }
42
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)
47     {
48     }
49
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)
54     {
55     }
56
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)
62     {
63     }
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 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();
73                                                                          }
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();
82                                                                          }
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();
89                         return _ret_var;
90  }
91     /// <summary>Factors property</summary>
92     /// <value>First factor of the interpolation function.</value>
93     public (double, double, double, double) Factors {
94         get {
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);
101         }
102         set { SetFactors( value.Item1,  value.Item2,  value.Item3,  value.Item4); }
103     }
104     private static IntPtr GetEflClassStatic()
105     {
106         return Efl.CubicBezierInterpolator.efl_cubic_bezier_interpolator_class_get();
107     }
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
111     {
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)
116         {
117             var descs = new System.Collections.Generic.List<Efl_Op_Description>();
118             var methods = Efl.Eo.Globals.GetUserMethods(type);
119
120             if (efl_cubic_bezier_interpolator_factors_get_static_delegate == null)
121             {
122                 efl_cubic_bezier_interpolator_factors_get_static_delegate = new efl_cubic_bezier_interpolator_factors_get_delegate(factors_get);
123             }
124
125             if (methods.FirstOrDefault(m => m.Name == "GetFactors") != null)
126             {
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) });
128             }
129
130             if (efl_cubic_bezier_interpolator_factors_set_static_delegate == null)
131             {
132                 efl_cubic_bezier_interpolator_factors_set_static_delegate = new efl_cubic_bezier_interpolator_factors_set_delegate(factors_set);
133             }
134
135             if (methods.FirstOrDefault(m => m.Name == "SetFactors") != null)
136             {
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) });
138             }
139
140             if (efl_interpolator_interpolate_static_delegate == null)
141             {
142                 efl_interpolator_interpolate_static_delegate = new efl_interpolator_interpolate_delegate(interpolate);
143             }
144
145             if (methods.FirstOrDefault(m => m.Name == "Interpolate") != null)
146             {
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) });
148             }
149
150             descs.AddRange(base.GetEoOps(type));
151             return descs;
152         }
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()
156         {
157             return Efl.CubicBezierInterpolator.efl_cubic_bezier_interpolator_class_get();
158         }
159
160         #pragma warning disable CA1707, CS1591, SA1300, SA1600
161
162         
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);
164
165         
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);
167
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");
169
170         private static void factors_get(System.IntPtr obj, System.IntPtr pd, out double factor1, out double factor2, out double factor3, out double factor4)
171         {
172             Eina.Log.Debug("function efl_cubic_bezier_interpolator_factors_get was called");
173             var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
174             if (ws != null)
175             {
176                                         factor1 = default(double);        factor2 = default(double);        factor3 = default(double);        factor4 = default(double);                                            
177                 try
178                 {
179                     ((CubicBezierInterpolator)ws.Target).GetFactors(out factor1, out factor2, out factor3, out factor4);
180                 }
181                 catch (Exception e)
182                 {
183                     Eina.Log.Warning($"Callback error: {e.ToString()}");
184                     Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
185                 }
186
187                                                                         
188             }
189             else
190             {
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);
192             }
193         }
194
195         private static efl_cubic_bezier_interpolator_factors_get_delegate efl_cubic_bezier_interpolator_factors_get_static_delegate;
196
197         
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);
199
200         
201         public delegate void efl_cubic_bezier_interpolator_factors_set_api_delegate(System.IntPtr obj,  double factor1,  double factor2,  double factor3,  double factor4);
202
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");
204
205         private static void factors_set(System.IntPtr obj, System.IntPtr pd, double factor1, double factor2, double factor3, double factor4)
206         {
207             Eina.Log.Debug("function efl_cubic_bezier_interpolator_factors_set was called");
208             var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
209             if (ws != null)
210             {
211                                                                                                             
212                 try
213                 {
214                     ((CubicBezierInterpolator)ws.Target).SetFactors(factor1, factor2, factor3, factor4);
215                 }
216                 catch (Exception e)
217                 {
218                     Eina.Log.Warning($"Callback error: {e.ToString()}");
219                     Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
220                 }
221
222                                                                         
223             }
224             else
225             {
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);
227             }
228         }
229
230         private static efl_cubic_bezier_interpolator_factors_set_delegate efl_cubic_bezier_interpolator_factors_set_static_delegate;
231
232         
233         private delegate double efl_interpolator_interpolate_delegate(System.IntPtr obj, System.IntPtr pd,  double progress);
234
235         
236         public delegate double efl_interpolator_interpolate_api_delegate(System.IntPtr obj,  double progress);
237
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");
239
240         private static double interpolate(System.IntPtr obj, System.IntPtr pd, double progress)
241         {
242             Eina.Log.Debug("function efl_interpolator_interpolate was called");
243             var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
244             if (ws != null)
245             {
246                                     double _ret_var = default(double);
247                 try
248                 {
249                     _ret_var = ((CubicBezierInterpolator)ws.Target).Interpolate(progress);
250                 }
251                 catch (Exception e)
252                 {
253                     Eina.Log.Warning($"Callback error: {e.ToString()}");
254                     Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
255                 }
256
257                         return _ret_var;
258
259             }
260             else
261             {
262                 return efl_interpolator_interpolate_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), progress);
263             }
264         }
265
266         private static efl_interpolator_interpolate_delegate efl_interpolator_interpolate_static_delegate;
267
268         #pragma warning restore CA1707, CS1591, SA1300, SA1600
269
270 }
271 }
272 }
273
274 #if EFL_BETA
275 #pragma warning disable CS1591
276 public static class EflCubicBezierInterpolator_ExtensionMethods {
277     
278 }
279 #pragma warning restore CS1591
280 #endif