#define EFL_BETA
#pragma warning disable CS1591
using System;
using System.Runtime.InteropServices;
using System.Collections.Generic;
using System.Linq;
using System.Threading;
using System.ComponentModel;
namespace Efl {
namespace Canvas {
namespace Vg {
/// Efl vector graphics gradient linear class
/// This is a BETA class. It can be modified or removed in the future. Do not use it for product development.
[Efl.Canvas.Vg.GradientLinear.NativeMethods]
[Efl.Eo.BindingEntity]
public class GradientLinear : Efl.Canvas.Vg.Gradient, Efl.Gfx.IGradientLinear
{
/// Pointer to the native class description.
public override System.IntPtr NativeClass
{
get
{
if (((object)this).GetType() == typeof(GradientLinear))
{
return GetEflClassStatic();
}
else
{
return Efl.Eo.ClassRegister.klassFromType[((object)this).GetType()];
}
}
}
[System.Runtime.InteropServices.DllImport(efl.Libs.Evas)] internal static extern System.IntPtr
efl_canvas_vg_gradient_linear_class_get();
/// Initializes a new instance of the class.
/// Parent instance.
public GradientLinear(Efl.Object parent= null
) : base(efl_canvas_vg_gradient_linear_class_get(), parent)
{
FinishInstantiation();
}
/// Subclasses should override this constructor if they are expected to be instantiated from native code.
/// Do not call this constructor directly.
/// Tag struct storing the native handle of the object being constructed.
protected GradientLinear(ConstructingHandle ch) : base(ch)
{
}
/// Initializes a new instance of the class.
/// Internal usage: Constructs an instance from a native pointer. This is used when interacting with C code and should not be used directly.
/// The native pointer to be wrapped.
protected GradientLinear(Efl.Eo.Globals.WrappingHandle wh) : base(wh)
{
}
/// Initializes a new instance of the class.
/// Internal usage: Constructor to forward the wrapper initialization to the root class that interfaces with native code. Should not be used directly.
/// The pointer to the base native Eo class.
/// The Efl.Object parent of this instance.
protected GradientLinear(IntPtr baseKlass, Efl.Object parent) : base(baseKlass, parent)
{
}
/// Gets the start point of this linear gradient.
/// X co-ordinate of start point
/// Y co-ordinate of start point
virtual public void GetStart(out double x, out double y) {
Efl.Gfx.IGradientLinearConcrete.NativeMethods.efl_gfx_gradient_linear_start_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),out x, out y);
Eina.Error.RaiseIfUnhandledException();
}
/// Sets the start point of this linear gradient.
/// X co-ordinate of start point
/// Y co-ordinate of start point
virtual public void SetStart(double x, double y) {
Efl.Gfx.IGradientLinearConcrete.NativeMethods.efl_gfx_gradient_linear_start_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),x, y);
Eina.Error.RaiseIfUnhandledException();
}
/// Gets the end point of this linear gradient.
/// X co-ordinate of end point
/// Y co-ordinate of end point
virtual public void GetEnd(out double x, out double y) {
Efl.Gfx.IGradientLinearConcrete.NativeMethods.efl_gfx_gradient_linear_end_get_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),out x, out y);
Eina.Error.RaiseIfUnhandledException();
}
/// Sets the end point of this linear gradient.
/// X co-ordinate of end point
/// Y co-ordinate of end point
virtual public void SetEnd(double x, double y) {
Efl.Gfx.IGradientLinearConcrete.NativeMethods.efl_gfx_gradient_linear_end_set_ptr.Value.Delegate((IsGeneratedBindingClass ? this.NativeHandle : Efl.Eo.Globals.efl_super(this.NativeHandle, this.NativeClass)),x, y);
Eina.Error.RaiseIfUnhandledException();
}
/// Gets the start point of this linear gradient.
/// X co-ordinate of start point
public (double, double) Start {
get {
double _out_x = default(double);
double _out_y = default(double);
GetStart(out _out_x,out _out_y);
return (_out_x,_out_y);
}
set { SetStart( value.Item1, value.Item2); }
}
/// Gets the end point of this linear gradient.
/// X co-ordinate of end point
public (double, double) End {
get {
double _out_x = default(double);
double _out_y = default(double);
GetEnd(out _out_x,out _out_y);
return (_out_x,_out_y);
}
set { SetEnd( value.Item1, value.Item2); }
}
private static IntPtr GetEflClassStatic()
{
return Efl.Canvas.Vg.GradientLinear.efl_canvas_vg_gradient_linear_class_get();
}
/// Wrapper for native methods and virtual method delegates.
/// For internal use by generated code only.
public new class NativeMethods : Efl.Canvas.Vg.Gradient.NativeMethods
{
private static Efl.Eo.NativeModule Module = new Efl.Eo.NativeModule( efl.Libs.Evas);
/// Gets the list of Eo operations to override.
/// The list of Eo operations to be overload.
public override System.Collections.Generic.List GetEoOps(System.Type type)
{
var descs = new System.Collections.Generic.List();
var methods = Efl.Eo.Globals.GetUserMethods(type);
if (efl_gfx_gradient_linear_start_get_static_delegate == null)
{
efl_gfx_gradient_linear_start_get_static_delegate = new efl_gfx_gradient_linear_start_get_delegate(start_get);
}
if (methods.FirstOrDefault(m => m.Name == "GetStart") != null)
{
descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_gradient_linear_start_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_gradient_linear_start_get_static_delegate) });
}
if (efl_gfx_gradient_linear_start_set_static_delegate == null)
{
efl_gfx_gradient_linear_start_set_static_delegate = new efl_gfx_gradient_linear_start_set_delegate(start_set);
}
if (methods.FirstOrDefault(m => m.Name == "SetStart") != null)
{
descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_gradient_linear_start_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_gradient_linear_start_set_static_delegate) });
}
if (efl_gfx_gradient_linear_end_get_static_delegate == null)
{
efl_gfx_gradient_linear_end_get_static_delegate = new efl_gfx_gradient_linear_end_get_delegate(end_get);
}
if (methods.FirstOrDefault(m => m.Name == "GetEnd") != null)
{
descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_gradient_linear_end_get"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_gradient_linear_end_get_static_delegate) });
}
if (efl_gfx_gradient_linear_end_set_static_delegate == null)
{
efl_gfx_gradient_linear_end_set_static_delegate = new efl_gfx_gradient_linear_end_set_delegate(end_set);
}
if (methods.FirstOrDefault(m => m.Name == "SetEnd") != null)
{
descs.Add(new Efl_Op_Description() {api_func = Efl.Eo.FunctionInterop.LoadFunctionPointer(Module.Module, "efl_gfx_gradient_linear_end_set"), func = Marshal.GetFunctionPointerForDelegate(efl_gfx_gradient_linear_end_set_static_delegate) });
}
descs.AddRange(base.GetEoOps(type));
return descs;
}
/// Returns the Eo class for the native methods of this class.
/// The native class pointer.
public override IntPtr GetEflClass()
{
return Efl.Canvas.Vg.GradientLinear.efl_canvas_vg_gradient_linear_class_get();
}
#pragma warning disable CA1707, CS1591, SA1300, SA1600
private delegate void efl_gfx_gradient_linear_start_get_delegate(System.IntPtr obj, System.IntPtr pd, out double x, out double y);
public delegate void efl_gfx_gradient_linear_start_get_api_delegate(System.IntPtr obj, out double x, out double y);
public static Efl.Eo.FunctionWrapper efl_gfx_gradient_linear_start_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_gradient_linear_start_get");
private static void start_get(System.IntPtr obj, System.IntPtr pd, out double x, out double y)
{
Eina.Log.Debug("function efl_gfx_gradient_linear_start_get was called");
var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
if (ws != null)
{
x = default(double); y = default(double);
try
{
((GradientLinear)ws.Target).GetStart(out x, out y);
}
catch (Exception e)
{
Eina.Log.Warning($"Callback error: {e.ToString()}");
Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
}
}
else
{
efl_gfx_gradient_linear_start_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out x, out y);
}
}
private static efl_gfx_gradient_linear_start_get_delegate efl_gfx_gradient_linear_start_get_static_delegate;
private delegate void efl_gfx_gradient_linear_start_set_delegate(System.IntPtr obj, System.IntPtr pd, double x, double y);
public delegate void efl_gfx_gradient_linear_start_set_api_delegate(System.IntPtr obj, double x, double y);
public static Efl.Eo.FunctionWrapper efl_gfx_gradient_linear_start_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_gradient_linear_start_set");
private static void start_set(System.IntPtr obj, System.IntPtr pd, double x, double y)
{
Eina.Log.Debug("function efl_gfx_gradient_linear_start_set was called");
var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
if (ws != null)
{
try
{
((GradientLinear)ws.Target).SetStart(x, y);
}
catch (Exception e)
{
Eina.Log.Warning($"Callback error: {e.ToString()}");
Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
}
}
else
{
efl_gfx_gradient_linear_start_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), x, y);
}
}
private static efl_gfx_gradient_linear_start_set_delegate efl_gfx_gradient_linear_start_set_static_delegate;
private delegate void efl_gfx_gradient_linear_end_get_delegate(System.IntPtr obj, System.IntPtr pd, out double x, out double y);
public delegate void efl_gfx_gradient_linear_end_get_api_delegate(System.IntPtr obj, out double x, out double y);
public static Efl.Eo.FunctionWrapper efl_gfx_gradient_linear_end_get_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_gradient_linear_end_get");
private static void end_get(System.IntPtr obj, System.IntPtr pd, out double x, out double y)
{
Eina.Log.Debug("function efl_gfx_gradient_linear_end_get was called");
var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
if (ws != null)
{
x = default(double); y = default(double);
try
{
((GradientLinear)ws.Target).GetEnd(out x, out y);
}
catch (Exception e)
{
Eina.Log.Warning($"Callback error: {e.ToString()}");
Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
}
}
else
{
efl_gfx_gradient_linear_end_get_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), out x, out y);
}
}
private static efl_gfx_gradient_linear_end_get_delegate efl_gfx_gradient_linear_end_get_static_delegate;
private delegate void efl_gfx_gradient_linear_end_set_delegate(System.IntPtr obj, System.IntPtr pd, double x, double y);
public delegate void efl_gfx_gradient_linear_end_set_api_delegate(System.IntPtr obj, double x, double y);
public static Efl.Eo.FunctionWrapper efl_gfx_gradient_linear_end_set_ptr = new Efl.Eo.FunctionWrapper(Module, "efl_gfx_gradient_linear_end_set");
private static void end_set(System.IntPtr obj, System.IntPtr pd, double x, double y)
{
Eina.Log.Debug("function efl_gfx_gradient_linear_end_set was called");
var ws = Efl.Eo.Globals.GetWrapperSupervisor(obj);
if (ws != null)
{
try
{
((GradientLinear)ws.Target).SetEnd(x, y);
}
catch (Exception e)
{
Eina.Log.Warning($"Callback error: {e.ToString()}");
Eina.Error.Set(Eina.Error.UNHANDLED_EXCEPTION);
}
}
else
{
efl_gfx_gradient_linear_end_set_ptr.Value.Delegate(Efl.Eo.Globals.efl_super(obj, Efl.Eo.Globals.efl_class_get(obj)), x, y);
}
}
private static efl_gfx_gradient_linear_end_set_delegate efl_gfx_gradient_linear_end_set_static_delegate;
#pragma warning restore CA1707, CS1591, SA1300, SA1600
}
}
}
}
}
#if EFL_BETA
#pragma warning disable CS1591
public static class Efl_Canvas_VgGradientLinear_ExtensionMethods {
}
#pragma warning restore CS1591
#endif