1 #pragma warning disable CS1591
3 using System.Runtime.InteropServices;
4 using System.Collections.Generic;
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
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 {
17 if (((object)this).GetType() == typeof (GradientRadial))
18 return Efl.Canvas.Vg.GradientRadialNativeInherit.GetEflClassStatic();
20 return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()];
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
29 base(efl_canvas_vg_gradient_radial_class_get(), typeof(GradientRadial), parent)
31 FinishInstantiation();
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)
36 register_event_proxies();
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)
44 throw new System.ArgumentNullException("obj");
45 return new GradientRadial(obj.NativeHandle);
47 ///<summary>Verifies if the given object is equal to this one.</summary>
48 public override bool Equals(object obj)
50 var other = obj as Efl.Object;
53 return this.NativeHandle == other.NativeHandle;
55 ///<summary>Gets the hash code for this object based on the native pointer it points to.</summary>
56 public override int GetHashCode()
58 return this.NativeHandle.ToInt32();
60 ///<summary>Turns the native pointer into a string representation.</summary>
61 public override String ToString()
63 return $"{this.GetType().Name}@[{this.NativeHandle.ToInt32():x}]";
65 protected override void register_event_proxies()
67 base.register_event_proxies();
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();
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();
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();
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();
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();
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();
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); }
121 private static new IntPtr GetEflClassStatic()
123 return Efl.Canvas.Vg.GradientRadial.efl_canvas_vg_gradient_radial_class_get();
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)
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));
152 public override IntPtr GetEflClass()
154 return Efl.Canvas.Vg.GradientRadial.efl_canvas_vg_gradient_radial_class_get();
156 public static new IntPtr GetEflClassStatic()
158 return Efl.Canvas.Vg.GradientRadial.efl_canvas_vg_gradient_radial_class_get();
162 private delegate void efl_gfx_gradient_radial_center_get_delegate(System.IntPtr obj, System.IntPtr pd, out double x, out double y);
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)
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);
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);
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);
183 private static efl_gfx_gradient_radial_center_get_delegate efl_gfx_gradient_radial_center_get_static_delegate;
186 private delegate void efl_gfx_gradient_radial_center_set_delegate(System.IntPtr obj, System.IntPtr pd, double x, double y);
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)
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) {
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);
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);
207 private static efl_gfx_gradient_radial_center_set_delegate efl_gfx_gradient_radial_center_set_static_delegate;
210 private delegate double efl_gfx_gradient_radial_radius_get_delegate(System.IntPtr obj, System.IntPtr pd);
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)
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);
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);
229 return efl_gfx_gradient_radial_radius_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)));
232 private static efl_gfx_gradient_radial_radius_get_delegate efl_gfx_gradient_radial_radius_get_static_delegate;
235 private delegate void efl_gfx_gradient_radial_radius_set_delegate(System.IntPtr obj, System.IntPtr pd, double r);
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)
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) {
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);
253 efl_gfx_gradient_radial_radius_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), r);
256 private static efl_gfx_gradient_radial_radius_set_delegate efl_gfx_gradient_radial_radius_set_static_delegate;
259 private delegate void efl_gfx_gradient_radial_focal_get_delegate(System.IntPtr obj, System.IntPtr pd, out double x, out double y);
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)
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);
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);
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);
280 private static efl_gfx_gradient_radial_focal_get_delegate efl_gfx_gradient_radial_focal_get_static_delegate;
283 private delegate void efl_gfx_gradient_radial_focal_set_delegate(System.IntPtr obj, System.IntPtr pd, double x, double y);
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)
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) {
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);
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);
304 private static efl_gfx_gradient_radial_focal_set_delegate efl_gfx_gradient_radial_focal_set_static_delegate;