[NUI] TCSACR-226 code change (#1032)
[platform/core/csapi/tizenfx.git] / internals / src / EflSharp / EflSharp / efl / efl_bounce_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 bounce 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.BounceInterpolator.NativeMethods]
14 [Efl.Eo.BindingEntity]
15 public class BounceInterpolator : 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(BounceInterpolator))
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_bounce_interpolator_class_get();
35     /// <summary>Initializes a new instance of the <see cref="BounceInterpolator"/> class.</summary>
36     /// <param name="parent">Parent instance.</param>
37     public BounceInterpolator(Efl.Object parent= null
38             ) : base(efl_bounce_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 BounceInterpolator(ConstructingHandle ch) : base(ch)
47     {
48     }
49
50     /// <summary>Initializes a new instance of the <see cref="BounceInterpolator"/> 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 BounceInterpolator(Efl.Eo.Globals.WrappingHandle wh) : base(wh)
54     {
55     }
56
57     /// <summary>Initializes a new instance of the <see cref="BounceInterpolator"/> 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 BounceInterpolator(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     virtual public void GetFactors(out double factor1, out double factor2) {
69                                                          Efl.BounceInterpolator.NativeMethods.efl_bounce_interpolator_factors_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),out factor1, out factor2);
70         Eina.Error.RaiseIfUnhandledException();
71                                          }
72     /// <summary>Factors property</summary>
73     /// <param name="factor1">First factor of the interpolation function.</param>
74     /// <param name="factor2">Second factor of the interpolation function.</param>
75     virtual public void SetFactors(double factor1, double factor2) {
76                                                          Efl.BounceInterpolator.NativeMethods.efl_bounce_interpolator_factors_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),factor1, factor2);
77         Eina.Error.RaiseIfUnhandledException();
78                                          }
79     /// <summary>Interpolate the given value.</summary>
80     /// <param name="progress">Input value mapped from 0.0 to 1.0.</param>
81     /// <returns>Output value calculated by interpolating the input value.</returns>
82     virtual public double Interpolate(double progress) {
83                                  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);
84         Eina.Error.RaiseIfUnhandledException();
85                         return _ret_var;
86  }
87     /// <summary>Factors property</summary>
88     /// <value>First factor of the interpolation function.</value>
89     public (double, double) Factors {
90         get {
91             double _out_factor1 = default(double);
92             double _out_factor2 = default(double);
93             GetFactors(out _out_factor1,out _out_factor2);
94             return (_out_factor1,_out_factor2);
95         }
96         set { SetFactors( value.Item1,  value.Item2); }
97     }
98     private static IntPtr GetEflClassStatic()
99     {
100         return Efl.BounceInterpolator.efl_bounce_interpolator_class_get();
101     }
102     /// <summary>Wrapper for native methods and virtual method delegates.
103     /// For internal use by generated code only.</summary>
104     public new class NativeMethods : Efl.Object.NativeMethods
105     {
106         private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule(    efl.Libs.Ecore);
107         /// <summary>Gets the list of Eo operations to override.</summary>
108         /// <returns>The list of Eo operations to be overload.</returns>
109         public override System.Collections.Generic.List<Efl_Op_Description> GetEoOps(System.Type type)
110         {
111             var descs = new System.Collections.Generic.List<Efl_Op_Description>();
112             var methods = Efl.Eo.Globals.GetUserMethods(type);
113
114             if (efl_bounce_interpolator_factors_get_static_delegate == null)
115             {
116                 efl_bounce_interpolator_factors_get_static_delegate = new efl_bounce_interpolator_factors_get_delegate(factors_get);
117             }
118
119             if (methods.FirstOrDefault(m => m.Name == "GetFactors") != null)
120             {
121                 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_bounce_interpolator_factors_get"), func = Marshal.GetFunctionPointerForDelegate(efl_bounce_interpolator_factors_get_static_delegate) });
122             }
123
124             if (efl_bounce_interpolator_factors_set_static_delegate == null)
125             {
126                 efl_bounce_interpolator_factors_set_static_delegate = new efl_bounce_interpolator_factors_set_delegate(factors_set);
127             }
128
129             if (methods.FirstOrDefault(m => m.Name == "SetFactors") != null)
130             {
131                 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_bounce_interpolator_factors_set"), func = Marshal.GetFunctionPointerForDelegate(efl_bounce_interpolator_factors_set_static_delegate) });
132             }
133
134             if (efl_interpolator_interpolate_static_delegate == null)
135             {
136                 efl_interpolator_interpolate_static_delegate = new efl_interpolator_interpolate_delegate(interpolate);
137             }
138
139             if (methods.FirstOrDefault(m => m.Name == "Interpolate") != null)
140             {
141                 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) });
142             }
143
144             descs.AddRange(base.GetEoOps(type));
145             return descs;
146         }
147         /// <summary>Returns the Eo class for the native methods of this class.</summary>
148         /// <returns>The native class pointer.</returns>
149         public override IntPtr GetEflClass()
150         {
151             return Efl.BounceInterpolator.efl_bounce_interpolator_class_get();
152         }
153
154         #pragma warning disable CA1707, CS1591, SA1300, SA1600
155
156         
157         private delegate void efl_bounce_interpolator_factors_get_delegate(System.IntPtr obj, System.IntPtr pd,  out double factor1,  out double factor2);
158
159         
160         public delegate void efl_bounce_interpolator_factors_get_api_delegate(System.IntPtr obj,  out double factor1,  out double factor2);
161
162         public static Efl.Eo.FunctionWrapper<efl_bounce_interpolator_factors_get_api_delegate> efl_bounce_interpolator_factors_get_ptr = new Efl.Eo.FunctionWrapper<efl_bounce_interpolator_factors_get_api_delegate>(Module, "efl_bounce_interpolator_factors_get");
163
164         private static void factors_get(System.IntPtr obj, System.IntPtr pd, out double factor1, out double factor2)
165         {
166             Eina.Log.Debug("function efl_bounce_interpolator_factors_get was called");
167             var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
168             if (ws != null)
169             {
170                         factor1 = default(double);        factor2 = default(double);                            
171                 try
172                 {
173                     ((BounceInterpolator)ws.Target).GetFactors(out factor1, out factor2);
174                 }
175                 catch (Exception e)
176                 {
177                     Eina.Log.Warning($"Callback error: {e.ToString()}");
178                     Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
179                 }
180
181                                         
182             }
183             else
184             {
185                 efl_bounce_interpolator_factors_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out factor1, out factor2);
186             }
187         }
188
189         private static efl_bounce_interpolator_factors_get_delegate efl_bounce_interpolator_factors_get_static_delegate;
190
191         
192         private delegate void efl_bounce_interpolator_factors_set_delegate(System.IntPtr obj, System.IntPtr pd,  double factor1,  double factor2);
193
194         
195         public delegate void efl_bounce_interpolator_factors_set_api_delegate(System.IntPtr obj,  double factor1,  double factor2);
196
197         public static Efl.Eo.FunctionWrapper<efl_bounce_interpolator_factors_set_api_delegate> efl_bounce_interpolator_factors_set_ptr = new Efl.Eo.FunctionWrapper<efl_bounce_interpolator_factors_set_api_delegate>(Module, "efl_bounce_interpolator_factors_set");
198
199         private static void factors_set(System.IntPtr obj, System.IntPtr pd, double factor1, double factor2)
200         {
201             Eina.Log.Debug("function efl_bounce_interpolator_factors_set was called");
202             var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
203             if (ws != null)
204             {
205                                                             
206                 try
207                 {
208                     ((BounceInterpolator)ws.Target).SetFactors(factor1, factor2);
209                 }
210                 catch (Exception e)
211                 {
212                     Eina.Log.Warning($"Callback error: {e.ToString()}");
213                     Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
214                 }
215
216                                         
217             }
218             else
219             {
220                 efl_bounce_interpolator_factors_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), factor1, factor2);
221             }
222         }
223
224         private static efl_bounce_interpolator_factors_set_delegate efl_bounce_interpolator_factors_set_static_delegate;
225
226         
227         private delegate double efl_interpolator_interpolate_delegate(System.IntPtr obj, System.IntPtr pd,  double progress);
228
229         
230         public delegate double efl_interpolator_interpolate_api_delegate(System.IntPtr obj,  double progress);
231
232         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");
233
234         private static double interpolate(System.IntPtr obj, System.IntPtr pd, double progress)
235         {
236             Eina.Log.Debug("function efl_interpolator_interpolate was called");
237             var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
238             if (ws != null)
239             {
240                                     double _ret_var = default(double);
241                 try
242                 {
243                     _ret_var = ((BounceInterpolator)ws.Target).Interpolate(progress);
244                 }
245                 catch (Exception e)
246                 {
247                     Eina.Log.Warning($"Callback error: {e.ToString()}");
248                     Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
249                 }
250
251                         return _ret_var;
252
253             }
254             else
255             {
256                 return efl_interpolator_interpolate_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), progress);
257             }
258         }
259
260         private static efl_interpolator_interpolate_delegate efl_interpolator_interpolate_static_delegate;
261
262         #pragma warning restore CA1707, CS1591, SA1300, SA1600
263
264 }
265 }
266 }
267
268 #if EFL_BETA
269 #pragma warning disable CS1591
270 public static class EflBounceInterpolator_ExtensionMethods {
271     
272 }
273 #pragma warning restore CS1591
274 #endif