[EflSharp] Introduce EflSharp project (#749)
[platform/core/csapi/tizenfx.git] / internals / src / EflSharp / EflSharp / 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.ComponentModel;
7 namespace Efl { 
8 /// <summary>Efl cubic_bezier interpolator class</summary>
9 [CubicBezierInterpolatorNativeInherit]
10 public class CubicBezierInterpolator : Efl.Object, Efl.Eo.IWrapper,Efl.Interpolator
11 {
12    public new static System.IntPtr klass = System.IntPtr.Zero;
13    public new static Efl.CubicBezierInterpolatorNativeInherit nativeInherit = new Efl.CubicBezierInterpolatorNativeInherit();
14    ///<summary>Pointer to the native class description.</summary>
15    public override System.IntPtr NativeClass {
16       get {
17          if (((object)this).GetType() == typeof (CubicBezierInterpolator))
18             return Efl.CubicBezierInterpolatorNativeInherit.GetEflClassStatic();
19          else
20             return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()];
21       }
22    }
23    [System.Runtime.InteropServices.DllImport(efl.Libs.Ecore)] internal static extern System.IntPtr
24       efl_cubic_bezier_interpolator_class_get();
25    ///<summary>Creates a new instance.</summary>
26    ///<param name="parent">Parent instance.</param>
27    public CubicBezierInterpolator(Efl.Object parent= null
28          ) :
29       base(efl_cubic_bezier_interpolator_class_get(), typeof(CubicBezierInterpolator), parent)
30    {
31       FinishInstantiation();
32    }
33    ///<summary>Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly.</summary>
34    public CubicBezierInterpolator(System.IntPtr raw) : base(raw)
35    {
36             register_event_proxies();
37    }
38    ///<summary>Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly.</summary>
39    protected CubicBezierInterpolator(IntPtr base_klass, System.Type managed_type, Efl.Object parent) : base(base_klass, managed_type, parent) {}
40    ///<summary>Casts obj into an instance of this type.</summary>
41    public new static CubicBezierInterpolator static_cast(Efl.Object obj)
42    {
43       if (obj == null)
44          throw new System.ArgumentNullException("obj");
45       return new CubicBezierInterpolator(obj.NativeHandle);
46    }
47    ///<summary>Verifies if the given object is equal to this one.</summary>
48    public override bool Equals(object obj)
49    {
50       var other = obj as Efl.Object;
51       if (other == null)
52          return false;
53       return this.NativeHandle == other.NativeHandle;
54    }
55    ///<summary>Gets the hash code for this object based on the native pointer it points to.</summary>
56    public override int GetHashCode()
57    {
58       return this.NativeHandle.ToInt32();
59    }
60    ///<summary>Turns the native pointer into a string representation.</summary>
61    public override String ToString()
62    {
63       return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]";
64    }
65    protected override void register_event_proxies()
66    {
67       base.register_event_proxies();
68    }
69    /// <summary>Factors property</summary>
70    /// <param name="factor1">First factor of the interpolation function.</param>
71    /// <param name="factor2">Second factor of the interpolation function.</param>
72    /// <param name="factor3">Third factor of the interpolation function.</param>
73    /// <param name="factor4">Fourth factor of the interpolation function.</param>
74    /// <returns></returns>
75    virtual public  void GetFactors( out double factor1,  out double factor2,  out double factor3,  out double factor4) {
76                                                                                Efl.CubicBezierInterpolatorNativeInherit.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);
77       Eina.Error.RaiseIfUnhandledException();
78                                                        }
79    /// <summary>Factors property</summary>
80    /// <param name="factor1">First factor of the interpolation function.</param>
81    /// <param name="factor2">Second factor of the interpolation function.</param>
82    /// <param name="factor3">Third factor of the interpolation function.</param>
83    /// <param name="factor4">Fourth factor of the interpolation function.</param>
84    /// <returns></returns>
85    virtual public  void SetFactors( double factor1,  double factor2,  double factor3,  double factor4) {
86                                                                                Efl.CubicBezierInterpolatorNativeInherit.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);
87       Eina.Error.RaiseIfUnhandledException();
88                                                        }
89    /// <summary>Interpolate the given value.</summary>
90    /// <param name="progress">Input value mapped from 0.0 to 1.0.</param>
91    /// <returns>Output value calculated by interpolating the input value.</returns>
92    virtual public double Interpolate( double progress) {
93                          var _ret_var = Efl.InterpolatorNativeInherit.efl_interpolator_interpolate_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), progress);
94       Eina.Error.RaiseIfUnhandledException();
95                   return _ret_var;
96  }
97    private static new  IntPtr GetEflClassStatic()
98    {
99       return Efl.CubicBezierInterpolator.efl_cubic_bezier_interpolator_class_get();
100    }
101 }
102 public class CubicBezierInterpolatorNativeInherit : Efl.ObjectNativeInherit{
103    public new  static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Ecore);
104    public override System.Collections.Generic.List<Efl_Op_Description> GetEoOps(System.Type type)
105    {
106       var descs = new System.Collections.Generic.List<Efl_Op_Description>();
107       if (efl_cubic_bezier_interpolator_factors_get_static_delegate == null)
108       efl_cubic_bezier_interpolator_factors_get_static_delegate = new efl_cubic_bezier_interpolator_factors_get_delegate(factors_get);
109       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)});
110       if (efl_cubic_bezier_interpolator_factors_set_static_delegate == null)
111       efl_cubic_bezier_interpolator_factors_set_static_delegate = new efl_cubic_bezier_interpolator_factors_set_delegate(factors_set);
112       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)});
113       if (efl_interpolator_interpolate_static_delegate == null)
114       efl_interpolator_interpolate_static_delegate = new efl_interpolator_interpolate_delegate(interpolate);
115       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)});
116       descs.AddRange(base.GetEoOps(type));
117       return descs;
118    }
119    public override IntPtr GetEflClass()
120    {
121       return Efl.CubicBezierInterpolator.efl_cubic_bezier_interpolator_class_get();
122    }
123    public static new  IntPtr GetEflClassStatic()
124    {
125       return Efl.CubicBezierInterpolator.efl_cubic_bezier_interpolator_class_get();
126    }
127
128
129     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);
130
131
132     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);
133     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");
134     private static  void factors_get(System.IntPtr obj, System.IntPtr pd,  out double factor1,  out double factor2,  out double factor3,  out double factor4)
135    {
136       Eina.Log.Debug("function efl_cubic_bezier_interpolator_factors_get was called");
137       Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.data_get(pd);
138       if(wrapper != null) {
139                                        factor1 = default(double);      factor2 = default(double);      factor3 = default(double);      factor4 = default(double);                                 
140          try {
141             ((CubicBezierInterpolator)wrapper).GetFactors( out factor1,  out factor2,  out factor3,  out factor4);
142          } catch (Exception e) {
143             Eina.Log.Warning($"Callback error: {e.ToString()}");
144             Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
145          }
146                                                             } else {
147          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);
148       }
149    }
150    private static efl_cubic_bezier_interpolator_factors_get_delegate efl_cubic_bezier_interpolator_factors_get_static_delegate;
151
152
153     private delegate  void efl_cubic_bezier_interpolator_factors_set_delegate(System.IntPtr obj, System.IntPtr pd,   double factor1,   double factor2,   double factor3,   double factor4);
154
155
156     public delegate  void efl_cubic_bezier_interpolator_factors_set_api_delegate(System.IntPtr obj,   double factor1,   double factor2,   double factor3,   double factor4);
157     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");
158     private static  void factors_set(System.IntPtr obj, System.IntPtr pd,  double factor1,  double factor2,  double factor3,  double factor4)
159    {
160       Eina.Log.Debug("function efl_cubic_bezier_interpolator_factors_set was called");
161       Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.data_get(pd);
162       if(wrapper != null) {
163                                                                                           
164          try {
165             ((CubicBezierInterpolator)wrapper).SetFactors( factor1,  factor2,  factor3,  factor4);
166          } catch (Exception e) {
167             Eina.Log.Warning($"Callback error: {e.ToString()}");
168             Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
169          }
170                                                             } else {
171          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);
172       }
173    }
174    private static efl_cubic_bezier_interpolator_factors_set_delegate efl_cubic_bezier_interpolator_factors_set_static_delegate;
175
176
177     private delegate double efl_interpolator_interpolate_delegate(System.IntPtr obj, System.IntPtr pd,   double progress);
178
179
180     public delegate double efl_interpolator_interpolate_api_delegate(System.IntPtr obj,   double progress);
181     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");
182     private static double interpolate(System.IntPtr obj, System.IntPtr pd,  double progress)
183    {
184       Eina.Log.Debug("function efl_interpolator_interpolate was called");
185       Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.data_get(pd);
186       if(wrapper != null) {
187                                     double _ret_var = default(double);
188          try {
189             _ret_var = ((CubicBezierInterpolator)wrapper).Interpolate( progress);
190          } catch (Exception e) {
191             Eina.Log.Warning($"Callback error: {e.ToString()}");
192             Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
193          }
194                   return _ret_var;
195       } else {
196          return efl_interpolator_interpolate_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)),  progress);
197       }
198    }
199    private static efl_interpolator_interpolate_delegate efl_interpolator_interpolate_static_delegate;
200 }
201