03e20bd9aa09d307a9121b525c800bb05ff2175f
[platform/core/csapi/tizenfx.git] / internals / src / EflSharp / EflSharp / efl / efl_spring_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 spring interpolator class</summary>
11 [Efl.SpringInterpolator.NativeMethods]
12 public class SpringInterpolator : 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(SpringInterpolator))
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_spring_interpolator_class_get();
32     /// <summary>Initializes a new instance of the <see cref="SpringInterpolator"/> class.</summary>
33     /// <param name="parent">Parent instance.</param>
34     public SpringInterpolator(Efl.Object parent= null
35             ) : base(efl_spring_interpolator_class_get(), typeof(SpringInterpolator), parent)
36     {
37         FinishInstantiation();
38     }
39
40     /// <summary>Initializes a new instance of the <see cref="SpringInterpolator"/> 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 SpringInterpolator(System.IntPtr raw) : base(raw)
44     {
45     }
46
47     /// <summary>Initializes a new instance of the <see cref="SpringInterpolator"/> 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 SpringInterpolator(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     virtual public void GetFactors(out double factor1, out double factor2) {
60                                                          Efl.SpringInterpolator.NativeMethods.efl_spring_interpolator_factors_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),out factor1, out factor2);
61         Eina.Error.RaiseIfUnhandledException();
62                                          }
63     /// <summary>Factors property</summary>
64     /// <param name="factor1">First factor of the interpolation function.</param>
65     /// <param name="factor2">Second factor of the interpolation function.</param>
66     virtual public void SetFactors(double factor1, double factor2) {
67                                                          Efl.SpringInterpolator.NativeMethods.efl_spring_interpolator_factors_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle),factor1, factor2);
68         Eina.Error.RaiseIfUnhandledException();
69                                          }
70     /// <summary>Interpolate the given value.</summary>
71     /// <param name="progress">Input value mapped from 0.0 to 1.0.</param>
72     /// <returns>Output value calculated by interpolating the input value.</returns>
73     virtual public double Interpolate(double progress) {
74                                  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);
75         Eina.Error.RaiseIfUnhandledException();
76                         return _ret_var;
77  }
78     private static IntPtr GetEflClassStatic()
79     {
80         return Efl.SpringInterpolator.efl_spring_interpolator_class_get();
81     }
82     /// <summary>Wrapper for native methods and virtual method delegates.
83     /// For internal use by generated code only.</summary>
84     public new class NativeMethods : Efl.Object.NativeMethods
85     {
86         private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule(    efl.Libs.Ecore);
87         /// <summary>Gets the list of Eo operations to override.</summary>
88         /// <returns>The list of Eo operations to be overload.</returns>
89         public override System.Collections.Generic.List<Efl_Op_Description> GetEoOps(System.Type type)
90         {
91             var descs = new System.Collections.Generic.List<Efl_Op_Description>();
92             var methods = Efl.Eo.Globals.GetUserMethods(type);
93
94             if (efl_spring_interpolator_factors_get_static_delegate == null)
95             {
96                 efl_spring_interpolator_factors_get_static_delegate = new efl_spring_interpolator_factors_get_delegate(factors_get);
97             }
98
99             if (methods.FirstOrDefault(m => m.Name == "GetFactors") != null)
100             {
101                 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_spring_interpolator_factors_get"), func = Marshal.GetFunctionPointerForDelegate(efl_spring_interpolator_factors_get_static_delegate) });
102             }
103
104             if (efl_spring_interpolator_factors_set_static_delegate == null)
105             {
106                 efl_spring_interpolator_factors_set_static_delegate = new efl_spring_interpolator_factors_set_delegate(factors_set);
107             }
108
109             if (methods.FirstOrDefault(m => m.Name == "SetFactors") != null)
110             {
111                 descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_spring_interpolator_factors_set"), func = Marshal.GetFunctionPointerForDelegate(efl_spring_interpolator_factors_set_static_delegate) });
112             }
113
114             if (efl_interpolator_interpolate_static_delegate == null)
115             {
116                 efl_interpolator_interpolate_static_delegate = new efl_interpolator_interpolate_delegate(interpolate);
117             }
118
119             if (methods.FirstOrDefault(m => m.Name == "Interpolate") != null)
120             {
121                 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) });
122             }
123
124             descs.AddRange(base.GetEoOps(type));
125             return descs;
126         }
127         /// <summary>Returns the Eo class for the native methods of this class.</summary>
128         /// <returns>The native class pointer.</returns>
129         public override IntPtr GetEflClass()
130         {
131             return Efl.SpringInterpolator.efl_spring_interpolator_class_get();
132         }
133
134         #pragma warning disable CA1707, CS1591, SA1300, SA1600
135
136         
137         private delegate void efl_spring_interpolator_factors_get_delegate(System.IntPtr obj, System.IntPtr pd,  out double factor1,  out double factor2);
138
139         
140         public delegate void efl_spring_interpolator_factors_get_api_delegate(System.IntPtr obj,  out double factor1,  out double factor2);
141
142         public static Efl.Eo.FunctionWrapper<efl_spring_interpolator_factors_get_api_delegate> efl_spring_interpolator_factors_get_ptr = new Efl.Eo.FunctionWrapper<efl_spring_interpolator_factors_get_api_delegate>(Module, "efl_spring_interpolator_factors_get");
143
144         private static void factors_get(System.IntPtr obj, System.IntPtr pd, out double factor1, out double factor2)
145         {
146             Eina.Log.Debug("function efl_spring_interpolator_factors_get was called");
147             var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
148             if (ws != null)
149             {
150                         factor1 = default(double);        factor2 = default(double);                            
151                 try
152                 {
153                     ((SpringInterpolator)ws.Target).GetFactors(out factor1, out factor2);
154                 }
155                 catch (Exception e)
156                 {
157                     Eina.Log.Warning($"Callback error: {e.ToString()}");
158                     Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
159                 }
160
161                                         
162             }
163             else
164             {
165                 efl_spring_interpolator_factors_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out factor1, out factor2);
166             }
167         }
168
169         private static efl_spring_interpolator_factors_get_delegate efl_spring_interpolator_factors_get_static_delegate;
170
171         
172         private delegate void efl_spring_interpolator_factors_set_delegate(System.IntPtr obj, System.IntPtr pd,  double factor1,  double factor2);
173
174         
175         public delegate void efl_spring_interpolator_factors_set_api_delegate(System.IntPtr obj,  double factor1,  double factor2);
176
177         public static Efl.Eo.FunctionWrapper<efl_spring_interpolator_factors_set_api_delegate> efl_spring_interpolator_factors_set_ptr = new Efl.Eo.FunctionWrapper<efl_spring_interpolator_factors_set_api_delegate>(Module, "efl_spring_interpolator_factors_set");
178
179         private static void factors_set(System.IntPtr obj, System.IntPtr pd, double factor1, double factor2)
180         {
181             Eina.Log.Debug("function efl_spring_interpolator_factors_set was called");
182             var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
183             if (ws != null)
184             {
185                                                             
186                 try
187                 {
188                     ((SpringInterpolator)ws.Target).SetFactors(factor1, factor2);
189                 }
190                 catch (Exception e)
191                 {
192                     Eina.Log.Warning($"Callback error: {e.ToString()}");
193                     Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
194                 }
195
196                                         
197             }
198             else
199             {
200                 efl_spring_interpolator_factors_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), factor1, factor2);
201             }
202         }
203
204         private static efl_spring_interpolator_factors_set_delegate efl_spring_interpolator_factors_set_static_delegate;
205
206         
207         private delegate double efl_interpolator_interpolate_delegate(System.IntPtr obj, System.IntPtr pd,  double progress);
208
209         
210         public delegate double efl_interpolator_interpolate_api_delegate(System.IntPtr obj,  double progress);
211
212         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");
213
214         private static double interpolate(System.IntPtr obj, System.IntPtr pd, double progress)
215         {
216             Eina.Log.Debug("function efl_interpolator_interpolate was called");
217             var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
218             if (ws != null)
219             {
220                                     double _ret_var = default(double);
221                 try
222                 {
223                     _ret_var = ((SpringInterpolator)ws.Target).Interpolate(progress);
224                 }
225                 catch (Exception e)
226                 {
227                     Eina.Log.Warning($"Callback error: {e.ToString()}");
228                     Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
229                 }
230
231                         return _ret_var;
232
233             }
234             else
235             {
236                 return efl_interpolator_interpolate_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), progress);
237             }
238         }
239
240         private static efl_interpolator_interpolate_delegate efl_interpolator_interpolate_static_delegate;
241
242         #pragma warning restore CA1707, CS1591, SA1300, SA1600
243
244 }
245 }
246 }
247