4f8532612ff8cf66ecd2004964db0f7e7bbdd5ec
[platform/core/csapi/tizenfx.git] / internals / src / EflSharp / EflSharp / efl_canvas_vg_gradient_radial.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 { namespace Canvas { namespace Vg { 
8 /// <summary>Efl vector graphics gradient radial class</summary>
9 [GradientRadialNativeInherit]
10 public class GradientRadial : Efl.Canvas.Vg.Gradient, Efl.Eo.IWrapper,Efl.Gfx.GradientRadial
11 {
12    public new static System.IntPtr klass = System.IntPtr.Zero;
13    public new static Efl.Canvas.Vg.GradientRadialNativeInherit nativeInherit = new Efl.Canvas.Vg.GradientRadialNativeInherit();
14    ///<summary>Pointer to the native class description.</summary>
15    public override System.IntPtr NativeClass {
16       get {
17          if (((object)this).GetType() == typeof (GradientRadial))
18             return Efl.Canvas.Vg.GradientRadialNativeInherit.GetEflClassStatic();
19          else
20             return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()];
21       }
22    }
23    [System.Runtime.InteropServices.DllImport(efl.Libs.Evas)] internal static extern System.IntPtr
24       efl_canvas_vg_gradient_radial_class_get();
25    ///<summary>Creates a new instance.</summary>
26    ///<param name="parent">Parent instance.</param>
27    public GradientRadial(Efl.Object parent= null
28          ) :
29       base(efl_canvas_vg_gradient_radial_class_get(), typeof(GradientRadial), 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 GradientRadial(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 GradientRadial(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 GradientRadial static_cast(Efl.Object obj)
42    {
43       if (obj == null)
44          throw new System.ArgumentNullException("obj");
45       return new GradientRadial(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>Gets the center of this radial gradient.</summary>
70    /// <param name="x">X co-ordinate of center point</param>
71    /// <param name="y">Y co-ordinate of center point</param>
72    /// <returns></returns>
73    virtual public  void GetCenter( out double x,  out double y) {
74                                            Efl.Gfx.GradientRadialNativeInherit.efl_gfx_gradient_radial_center_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), out x,  out y);
75       Eina.Error.RaiseIfUnhandledException();
76                                }
77    /// <summary>Sets the center of this radial gradient.</summary>
78    /// <param name="x">X co-ordinate of center point</param>
79    /// <param name="y">Y co-ordinate of center point</param>
80    /// <returns></returns>
81    virtual public  void SetCenter( double x,  double y) {
82                                            Efl.Gfx.GradientRadialNativeInherit.efl_gfx_gradient_radial_center_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), x,  y);
83       Eina.Error.RaiseIfUnhandledException();
84                                }
85    /// <summary>Gets the center radius of this radial gradient.</summary>
86    /// <returns>Center radius</returns>
87    virtual public double GetRadius() {
88        var _ret_var = Efl.Gfx.GradientRadialNativeInherit.efl_gfx_gradient_radial_radius_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle));
89       Eina.Error.RaiseIfUnhandledException();
90       return _ret_var;
91  }
92    /// <summary>Sets the center radius of this radial gradient.</summary>
93    /// <param name="r">Center radius</param>
94    /// <returns></returns>
95    virtual public  void SetRadius( double r) {
96                          Efl.Gfx.GradientRadialNativeInherit.efl_gfx_gradient_radial_radius_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), r);
97       Eina.Error.RaiseIfUnhandledException();
98                    }
99    /// <summary>Gets the focal point of this radial gradient.</summary>
100    /// <param name="x">X co-ordinate of focal point</param>
101    /// <param name="y">Y co-ordinate of focal point</param>
102    /// <returns></returns>
103    virtual public  void GetFocal( out double x,  out double y) {
104                                            Efl.Gfx.GradientRadialNativeInherit.efl_gfx_gradient_radial_focal_get_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), out x,  out y);
105       Eina.Error.RaiseIfUnhandledException();
106                                }
107    /// <summary>Sets the focal point of this radial gradient.</summary>
108    /// <param name="x">X co-ordinate of focal point</param>
109    /// <param name="y">Y co-ordinate of focal point</param>
110    /// <returns></returns>
111    virtual public  void SetFocal( double x,  double y) {
112                                            Efl.Gfx.GradientRadialNativeInherit.efl_gfx_gradient_radial_focal_set_ptr.Value.Delegate((inherited ? Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass) : this.NativeHandle), x,  y);
113       Eina.Error.RaiseIfUnhandledException();
114                                }
115    /// <summary>Gets the center radius of this radial gradient.</summary>
116 /// <value>Center radius</value>
117    public double Radius {
118       get { return GetRadius(); }
119       set { SetRadius( value); }
120    }
121    private static new  IntPtr GetEflClassStatic()
122    {
123       return Efl.Canvas.Vg.GradientRadial.efl_canvas_vg_gradient_radial_class_get();
124    }
125 }
126 public class GradientRadialNativeInherit : Efl.Canvas.Vg.GradientNativeInherit{
127    public new  static Efl.Eo.NativeModule _Module = new Efl.Eo.NativeModule(efl.Libs.Evas);
128    public override System.Collections.Generic.List<Efl_Op_Description> GetEoOps(System.Type type)
129    {
130       var descs = new System.Collections.Generic.List<Efl_Op_Description>();
131       if (efl_gfx_gradient_radial_center_get_static_delegate == null)
132       efl_gfx_gradient_radial_center_get_static_delegate = new efl_gfx_gradient_radial_center_get_delegate(center_get);
133       descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_gradient_radial_center_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_gradient_radial_center_get_static_delegate)});
134       if (efl_gfx_gradient_radial_center_set_static_delegate == null)
135       efl_gfx_gradient_radial_center_set_static_delegate = new efl_gfx_gradient_radial_center_set_delegate(center_set);
136       descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_gradient_radial_center_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_gradient_radial_center_set_static_delegate)});
137       if (efl_gfx_gradient_radial_radius_get_static_delegate == null)
138       efl_gfx_gradient_radial_radius_get_static_delegate = new efl_gfx_gradient_radial_radius_get_delegate(radius_get);
139       descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_gradient_radial_radius_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_gradient_radial_radius_get_static_delegate)});
140       if (efl_gfx_gradient_radial_radius_set_static_delegate == null)
141       efl_gfx_gradient_radial_radius_set_static_delegate = new efl_gfx_gradient_radial_radius_set_delegate(radius_set);
142       descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_gradient_radial_radius_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_gradient_radial_radius_set_static_delegate)});
143       if (efl_gfx_gradient_radial_focal_get_static_delegate == null)
144       efl_gfx_gradient_radial_focal_get_static_delegate = new efl_gfx_gradient_radial_focal_get_delegate(focal_get);
145       descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_gradient_radial_focal_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_gradient_radial_focal_get_static_delegate)});
146       if (efl_gfx_gradient_radial_focal_set_static_delegate == null)
147       efl_gfx_gradient_radial_focal_set_static_delegate = new efl_gfx_gradient_radial_focal_set_delegate(focal_set);
148       descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(_Module.Module, "efl_gfx_gradient_radial_focal_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_gradient_radial_focal_set_static_delegate)});
149       descs.AddRange(base.GetEoOps(type));
150       return descs;
151    }
152    public override IntPtr GetEflClass()
153    {
154       return Efl.Canvas.Vg.GradientRadial.efl_canvas_vg_gradient_radial_class_get();
155    }
156    public static new  IntPtr GetEflClassStatic()
157    {
158       return Efl.Canvas.Vg.GradientRadial.efl_canvas_vg_gradient_radial_class_get();
159    }
160
161
162     private delegate  void efl_gfx_gradient_radial_center_get_delegate(System.IntPtr obj, System.IntPtr pd,   out double x,   out double y);
163
164
165     public delegate  void efl_gfx_gradient_radial_center_get_api_delegate(System.IntPtr obj,   out double x,   out double y);
166     public static Efl.Eo.FunctionWrapper<efl_gfx_gradient_radial_center_get_api_delegate> efl_gfx_gradient_radial_center_get_ptr = new Efl.Eo.FunctionWrapper<efl_gfx_gradient_radial_center_get_api_delegate>(_Module, "efl_gfx_gradient_radial_center_get");
167     private static  void center_get(System.IntPtr obj, System.IntPtr pd,  out double x,  out double y)
168    {
169       Eina.Log.Debug("function efl_gfx_gradient_radial_center_get was called");
170       Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.data_get(pd);
171       if(wrapper != null) {
172                            x = default(double);      y = default(double);                     
173          try {
174             ((GradientRadial)wrapper).GetCenter( out x,  out y);
175          } catch (Exception e) {
176             Eina.Log.Warning($"Callback error: {e.ToString()}");
177             Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
178          }
179                                     } else {
180          efl_gfx_gradient_radial_center_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)),  out x,  out y);
181       }
182    }
183    private static efl_gfx_gradient_radial_center_get_delegate efl_gfx_gradient_radial_center_get_static_delegate;
184
185
186     private delegate  void efl_gfx_gradient_radial_center_set_delegate(System.IntPtr obj, System.IntPtr pd,   double x,   double y);
187
188
189     public delegate  void efl_gfx_gradient_radial_center_set_api_delegate(System.IntPtr obj,   double x,   double y);
190     public static Efl.Eo.FunctionWrapper<efl_gfx_gradient_radial_center_set_api_delegate> efl_gfx_gradient_radial_center_set_ptr = new Efl.Eo.FunctionWrapper<efl_gfx_gradient_radial_center_set_api_delegate>(_Module, "efl_gfx_gradient_radial_center_set");
191     private static  void center_set(System.IntPtr obj, System.IntPtr pd,  double x,  double y)
192    {
193       Eina.Log.Debug("function efl_gfx_gradient_radial_center_set was called");
194       Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.data_get(pd);
195       if(wrapper != null) {
196                                                       
197          try {
198             ((GradientRadial)wrapper).SetCenter( x,  y);
199          } catch (Exception e) {
200             Eina.Log.Warning($"Callback error: {e.ToString()}");
201             Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
202          }
203                                     } else {
204          efl_gfx_gradient_radial_center_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)),  x,  y);
205       }
206    }
207    private static efl_gfx_gradient_radial_center_set_delegate efl_gfx_gradient_radial_center_set_static_delegate;
208
209
210     private delegate double efl_gfx_gradient_radial_radius_get_delegate(System.IntPtr obj, System.IntPtr pd);
211
212
213     public delegate double efl_gfx_gradient_radial_radius_get_api_delegate(System.IntPtr obj);
214     public static Efl.Eo.FunctionWrapper<efl_gfx_gradient_radial_radius_get_api_delegate> efl_gfx_gradient_radial_radius_get_ptr = new Efl.Eo.FunctionWrapper<efl_gfx_gradient_radial_radius_get_api_delegate>(_Module, "efl_gfx_gradient_radial_radius_get");
215     private static double radius_get(System.IntPtr obj, System.IntPtr pd)
216    {
217       Eina.Log.Debug("function efl_gfx_gradient_radial_radius_get was called");
218       Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.data_get(pd);
219       if(wrapper != null) {
220                   double _ret_var = default(double);
221          try {
222             _ret_var = ((GradientRadial)wrapper).GetRadius();
223          } catch (Exception e) {
224             Eina.Log.Warning($"Callback error: {e.ToString()}");
225             Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
226          }
227       return _ret_var;
228       } else {
229          return efl_gfx_gradient_radial_radius_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
230       }
231    }
232    private static efl_gfx_gradient_radial_radius_get_delegate efl_gfx_gradient_radial_radius_get_static_delegate;
233
234
235     private delegate  void efl_gfx_gradient_radial_radius_set_delegate(System.IntPtr obj, System.IntPtr pd,   double r);
236
237
238     public delegate  void efl_gfx_gradient_radial_radius_set_api_delegate(System.IntPtr obj,   double r);
239     public static Efl.Eo.FunctionWrapper<efl_gfx_gradient_radial_radius_set_api_delegate> efl_gfx_gradient_radial_radius_set_ptr = new Efl.Eo.FunctionWrapper<efl_gfx_gradient_radial_radius_set_api_delegate>(_Module, "efl_gfx_gradient_radial_radius_set");
240     private static  void radius_set(System.IntPtr obj, System.IntPtr pd,  double r)
241    {
242       Eina.Log.Debug("function efl_gfx_gradient_radial_radius_set was called");
243       Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.data_get(pd);
244       if(wrapper != null) {
245                                     
246          try {
247             ((GradientRadial)wrapper).SetRadius( r);
248          } catch (Exception e) {
249             Eina.Log.Warning($"Callback error: {e.ToString()}");
250             Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
251          }
252                         } else {
253          efl_gfx_gradient_radial_radius_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)),  r);
254       }
255    }
256    private static efl_gfx_gradient_radial_radius_set_delegate efl_gfx_gradient_radial_radius_set_static_delegate;
257
258
259     private delegate  void efl_gfx_gradient_radial_focal_get_delegate(System.IntPtr obj, System.IntPtr pd,   out double x,   out double y);
260
261
262     public delegate  void efl_gfx_gradient_radial_focal_get_api_delegate(System.IntPtr obj,   out double x,   out double y);
263     public static Efl.Eo.FunctionWrapper<efl_gfx_gradient_radial_focal_get_api_delegate> efl_gfx_gradient_radial_focal_get_ptr = new Efl.Eo.FunctionWrapper<efl_gfx_gradient_radial_focal_get_api_delegate>(_Module, "efl_gfx_gradient_radial_focal_get");
264     private static  void focal_get(System.IntPtr obj, System.IntPtr pd,  out double x,  out double y)
265    {
266       Eina.Log.Debug("function efl_gfx_gradient_radial_focal_get was called");
267       Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.data_get(pd);
268       if(wrapper != null) {
269                            x = default(double);      y = default(double);                     
270          try {
271             ((GradientRadial)wrapper).GetFocal( out x,  out y);
272          } catch (Exception e) {
273             Eina.Log.Warning($"Callback error: {e.ToString()}");
274             Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
275          }
276                                     } else {
277          efl_gfx_gradient_radial_focal_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)),  out x,  out y);
278       }
279    }
280    private static efl_gfx_gradient_radial_focal_get_delegate efl_gfx_gradient_radial_focal_get_static_delegate;
281
282
283     private delegate  void efl_gfx_gradient_radial_focal_set_delegate(System.IntPtr obj, System.IntPtr pd,   double x,   double y);
284
285
286     public delegate  void efl_gfx_gradient_radial_focal_set_api_delegate(System.IntPtr obj,   double x,   double y);
287     public static Efl.Eo.FunctionWrapper<efl_gfx_gradient_radial_focal_set_api_delegate> efl_gfx_gradient_radial_focal_set_ptr = new Efl.Eo.FunctionWrapper<efl_gfx_gradient_radial_focal_set_api_delegate>(_Module, "efl_gfx_gradient_radial_focal_set");
288     private static  void focal_set(System.IntPtr obj, System.IntPtr pd,  double x,  double y)
289    {
290       Eina.Log.Debug("function efl_gfx_gradient_radial_focal_set was called");
291       Efl.Eo.IWrapper wrapper = Efl.Eo.Globals.data_get(pd);
292       if(wrapper != null) {
293                                                       
294          try {
295             ((GradientRadial)wrapper).SetFocal( x,  y);
296          } catch (Exception e) {
297             Eina.Log.Warning($"Callback error: {e.ToString()}");
298             Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
299          }
300                                     } else {
301          efl_gfx_gradient_radial_focal_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)),  x,  y);
302       }
303    }
304    private static efl_gfx_gradient_radial_focal_set_delegate efl_gfx_gradient_radial_focal_set_static_delegate;
305 }
306 } } }